Hi,
I'd like to be able to create proxies on the fly in batch mode (when in Maya standalone mode, to be precise). However, I have noticed that after having exported the .vrmesh and after having created the proxy node in Maya, V-Ray gets ready to create the "VRay Mesh Material" node and connect the shader(s) to it. Here's where I get an error:
So, it seems this is a limitation on Maya's side, where the hypershade command can not be executed without running the Maya GUI. I am now exploring if I can create the VRayMeshMaterial without the hypershade, e.g. with the createNode command, and hook up all necessary connections manually (by code). But when doing this, the resulting node is missing basically everything which I would expect from a VRayMeshMaterial node:
Are you aware of any other way that I could create the VRayMeshMaterial node, without resorting to being in Maya GUI mode?
I'm using Maya 2014 64-bit with V-Ray for Maya 2.30, build 23002, official release.
I'd like to be able to create proxies on the fly in batch mode (when in Maya standalone mode, to be precise). However, I have noticed that after having exported the .vrmesh and after having created the proxy node in Maya, V-Ray gets ready to create the "VRay Mesh Material" node and connect the shader(s) to it. Here's where I get an error:
Code:
[2013/Oct/17|10:38:17] V-Ray: Mesh successfully subdivided to file "//server/share/blah/blah/file.mb.vrmesh" Result: Connected file_mb_vraymeshmtl.outColor to file_mb_vraymeshmtlSG.surfaceShader. Error: line 1: hyperShade command not supported in batch mode [2013/Oct/17|10:38:17] V-Ray warning: Proxy export completed ! Warning: Proxy export completed !
Code:
cmds.createNode( 'testNode', n='VRayMeshMaterial' ) # Python code
I'm using Maya 2014 64-bit with V-Ray for Maya 2.30, build 23002, official release.
Comment