Announcement

Collapse
No announcement yet.

Accessing PyMel function during VRAY Post Translate Python causes render failure

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

  • Accessing PyMel function during VRAY Post Translate Python causes render failure

    Hi,

    We've been experiencing an issue on our render farm when trying to access PyMel functions from within the VRAY Post Translate Python script. The problem only seems to occur when Maya is running in non-gui mode. Everything seems fine in the log but then:

    Code:
    [2012/Mar/9|12:41:43] V-Ray error: There was a fatal error rendering the scene.
    Error: There was a fatal error rendering the scene.
    If I don't use PyMel everything renders fine. Is this a known issue? Is there a workaround?

  • #2
    Which V-Ray version is this?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Maya 2012 x64, Windows 7, Build 19371 Stable

      Comment


      • #4
        Ok then; can you get me more specific reproduction steps? V-Ray seems to run fine through pymel in general; not sure about the post-translate python callback though - what kind of code do you try to execute there?

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          To reproduce the issue you just need to make any simple Vray test scene. Put the following code in the post-translate python box:

          Code:
          import pymel.core as pm
          
          AllObjects = pm.ls("*")
          
          print AllObjects
          and then render the scene using render.exe

          The pymel code will run perfectly fine, but the render fails in the manner described:

          Code:
          V-Ray error: There was a fatal error rendering the scene.

          Comment


          • #6
            Thanks, looking into it now.

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              Hello, this has been fixed in revision 20375.

              Best,
              Emil
              Last edited by emil.kirichev; 03-04-2012, 09:23 AM.
              V-Ray for Maya developer

              Comment

              Working...
              X