vray is centrally installed, as are most of our plugins, and we have a tool 
for supervisors to customize the maya.env for the folks are their show, so 
everyone on the show is using the same versions of the same plugins.  One 
of our in-house tools exports the current frame to a .vrscene file to be 
rendered on a separate thread via vray standalone.  For a number of bad 
reasons, the path to vray.exe was hard coded into this tool, and at 3am 
Saturday, I quickly updated it to get the write one from the maya.env as 
such:

        mayaVersion = maya.cmds.about(version=True)[0:4]
        vrayPath = os.environ.get('VRAY_FOR_MAYA%s_MAIN_x64'%mayaVersion)
        vrayPath = vrayPath.replace('/','\\')
        
        command = '%s\\bin\\vray.exe'%vrayPath

I feel this is dirty, so wondering if there's a better way to do this.

Thanks,

-ctj

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9746ec32-9634-4046-a1a2-7d16c736b00d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to