Vray scene export not working from maya standalone
We wrote our own export script for vray. We launch mayapy, import maya, import pymel, load a scene ( that has vray) and do a little processing on it. When we use the vrend commmand to render we dont get a vrscene out. Vray 33 doesnt report any progress (even on large scenes). It completes with out an error, but there is no vrscene file.
The same script will work in a gui version of maya with vray33.
The script will work in both command and gui mode with vray 31.
i’m including a link to a sample bat script and python file to show what we’re doing.
The bat file uses mayapy and gives all the args to the python script. The python script should export a vray scene from the beauty renderLayer and from the camera RENDER into the directory. I’ve setup it up to work from the directory “C:\vray_33_export_python”
When it works with vray 31, it exports : “C:\vray_33_export_python\ball_beauty.vrscene”
here is a link to a zip file with a working example, uzip to your c drive or change the mappings:
I am using the standard python syntax in ‘mayaRL_toVrscene.py’ ,
Line 92 = pm.vrend(‘-camera’,renderCamera, ‘-layer’, renderLayer)
it works with vray 3.1, but when I install 3.3 it doesnt report failure, but I dont get a vrayscene and there is not progress reports even with larger scenes.
No, you don’t. You get an error message and I wrote you how to fix it. The 3.1 syntax is wrong, because we didn’t register it properly and you have to pass flags as arguments.
Ah I see now. I didnt catch the syntax change in your message. That fixed it and I appreciate your help.
I didnt see any mention of this in the vray4maya changelog, is there someplace else I should look if I run into problems like this again in other versions?
Again, thank you. I wouldnt have figured it out myself.
Actually, this was supposed to be just a fix so Maya recognizes vrend’s flags. It’s in the change log, but it seems it had unintentional consequences, since vrend now can’t recognize the old style flags :). Sorry for the inconvenience, but it was best to fix it.