Maya export script for Octane [OLD / SUPERSEDED]

Post, discuss and share handy resources like textures, models and HDRI maps in this forum.
Forum rules
Please do not post any material that is copyrighted or restricted from public use in any way. OTOY NZ LTD and it's forum members are not liable for any copyright infringements on material in this forum. Please contact us if this is the case and we will remove the material in question.
cgbeige
Licensed Customer
Posts: 127
Joined: Sun Apr 04, 2010 5:30 pm

I made a simple shelf command that I thought people might like:

Code: Select all

string $currentSceneName = `file -q -sn -shn`;

file -force -options "(groups=1;ptgroups=1;materials=1;smoothing=0;normals=1" 
	 -typ "OBJexport" -pr 
	 -es (("/Volumes/HOME_RAID/temps/GoO/" + $currentSceneName) + (".obj"));
Change the path "/Volumes/HOME_RAID/temps/GoO/" to wherever you want the OBJ files stored and you've got a MEL script that exports all selected geometry to the directory with your scene name, with materials.

Windows users, use Unix style path settings (/, not \ for slashes)
vanlicht
Licensed Customer
Posts: 139
Joined: Fri Feb 26, 2010 8:19 am
Location: Los Angeles

Cool, thanks for writing this. Will try and see how it works.
Best,
Windows 7 64bit | Maya 2010 64 bit (main) | Maya 2011 | Intel i7-920 | Nvidia Quadro FX1800 | Nvidia GTX480
vanlicht
Licensed Customer
Posts: 139
Joined: Fri Feb 26, 2010 8:19 am
Location: Los Angeles

I found there's an OBJ sequence exporter from ZbufferStudios.
It is working great!
[url]http://scripts.zbufferstudios.com/
[/url]
Windows 7 64bit | Maya 2010 64 bit (main) | Maya 2011 | Intel i7-920 | Nvidia Quadro FX1800 | Nvidia GTX480
cgbeige
Licensed Customer
Posts: 127
Joined: Sun Apr 04, 2010 5:30 pm

cool - thanks.

I'm just working on the script a little to be more production-quality, instead of just hammering one file every time.

Code: Select all

string $currentSceneName = `file -q -sn -shn`;
string $currentWorkingSpace = `workspace -q -fullName`;

file -force -options "(groups=1;ptgroups=1;materials=1;smoothing=0;normals=1" 
	 -typ "OBJexport" -pr 
	 -es (($currentWorkingSpace + "/octane/") + ($currentSceneName));

That newer script will put the scene name in the obj and put the obj in a project directory called "octane". You have to create this folder or the script will fail. If you want to avoid having redundant textures, just change the "/octane/" part to be the directory where you keep your texture files ("/sourceimages/", for example). Anyway, I'm finding this quite handy:

http://grab.by/444p

save a copy to your shelf and click it any time you want to make an Octane-ready OBJ folder.
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

cgbeige my friend, im making a script with GUI for synchronizing camera from maya->octane ;)

stay tuned...
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
vanlicht
Licensed Customer
Posts: 139
Joined: Fri Feb 26, 2010 8:19 am
Location: Los Angeles

Bazuka, cgbeige,
awesome! Great to see tech-savvy Maya users here.
Windows 7 64bit | Maya 2010 64 bit (main) | Maya 2011 | Intel i7-920 | Nvidia Quadro FX1800 | Nvidia GTX480
cgbeige
Licensed Customer
Posts: 127
Joined: Sun Apr 04, 2010 5:30 pm

bazuka! So funny how you run into the same people on different forums. Looking forward to the camera matching script - that's the main problem I'm having with Maya>octane workflow and I'm no programmer so I'd be hopeless at writing a MEL/Python > octane XML thing. Glad to see someone is doing it. Can't wait
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

yeah i know ;) small world :D

i hope ill be able to finish it till next week...
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
cgbeige
Licensed Customer
Posts: 127
Joined: Sun Apr 04, 2010 5:30 pm

if you want a tester, email me at daveg at can-con (dot) ca
User avatar
[gk]
Licensed Customer
Posts: 574
Joined: Sat Jan 16, 2010 12:48 pm
Location: Denmark

you should contact radiance and get info on how to layout a predefined User interface. If you do so and the script can do -exactly - what they want it to do ( not what you think would be nice ) there is a good chance it will be a part of the software package at one level or another.

http://www.refractivesoftware.com/forum ... =21&t=1455
Amiga 1000 with 2mb memory card
Locked

Return to “Resources and Sharing”