Is it possible to export the .vrscene file using a certain export command?
Just like you’re able to return the revision build number with MEL code vray build or Python code maya.mel(‘vray build’), I’m thinking something along the lines of:
vray export "c:/export/hello.vrscene'
By the way, I keep asking a lot of these questions regarding what vray commands there are… isn’t there a API/dictionary somewhere?
I don’t think a special command is needed. You can make a 3 line script to turn off your rendering, turn on vrscene export and render (with vrend).
Yeah that’s what I’m doing at the moment. Just wanted to check if this was the preferred method.
By the way, I had to google up ‘vrend’. Is there some kind of documentation somewhere which explains which arguments vrend might have?
Thanks.
It’s probably better since such command will not do something that you can’t even in more obvious way. We will make a note to add documentation for vrend. Here is another thread how to export vrscene without starting Maya in GUI mode
http://www.chaosgroup.com/forums/vbulletin/showthread.php?54004-vrend-command-flag-for-vrscene-location&highlight=vrend