Announcement

Collapse
No announcement yet.

Vray Scene export from Maya Standalone not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Vray Scene export from Maya Standalone not working

    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:

    https://drive.google.com/file/d/0B-u...ew?usp=sharing

    let me know if you have any questions

  • #2
    In V-Ray for Maya 3.3, you must use the standard Python syntax when calling vrend:

    Code:
    pm.vrend(camera=renderCamera, layer=renderLayer)
    V-Ray/PhoenixFD for Maya developer

    Comment


    • #3
      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.

      Comment


      • #4
        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.
        V-Ray/PhoenixFD for Maya developer

        Comment


        • #5
          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.

          Comment


          • #6
            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.
            V-Ray/PhoenixFD for Maya developer

            Comment

            Working...
            X