Page 1 of 4
Maya export script for Octane [OLD / SUPERSEDED]
Posted: Mon Apr 19, 2010 4:56 am
by cgbeige
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)
Re: Maya export script for Octane
Posted: Sun Apr 25, 2010 8:38 am
by vanlicht
Cool, thanks for writing this. Will try and see how it works.
Best,
Re: Maya export script for Octane
Posted: Sun Apr 25, 2010 11:15 pm
by vanlicht
I found there's an OBJ sequence exporter from ZbufferStudios.
It is working great!
[url]http://scripts.zbufferstudios.com/
[/url]
Re: Maya export script for Octane
Posted: Wed Apr 28, 2010 4:00 pm
by cgbeige
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.
Re: Maya export script for Octane
Posted: Thu Apr 29, 2010 11:03 am
by bazuka
cgbeige my friend, im making a script with GUI for synchronizing camera from maya->octane
stay tuned...
Re: Maya export script for Octane
Posted: Thu Apr 29, 2010 9:23 pm
by vanlicht
Bazuka, cgbeige,
awesome! Great to see tech-savvy Maya users here.
Re: Maya export script for Octane
Posted: Fri Apr 30, 2010 5:02 am
by cgbeige
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
Re: Maya export script for Octane
Posted: Sat May 01, 2010 6:53 pm
by bazuka
yeah i know

small world
i hope ill be able to finish it till next week...
Re: Maya export script for Octane
Posted: Sat May 01, 2010 8:02 pm
by cgbeige
if you want a tester, email me at daveg at can-con (dot) ca
Re: Maya export script for Octane
Posted: Sat May 01, 2010 8:46 pm
by [gk]
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