Announcement

Collapse
No announcement yet.

vrayCreateProxy does not return name of created node

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

  • vrayCreateProxy does not return name of created node

    Hi,

    I'm using vrayCreateProxy (MEL wrapped in Python) and I provide the node name as well as the filepath when executing this command:
    Code:
    response = mel.eval('vrayCreateProxy -dir "'+DATA_DIR+'" -fname "'+ vrmesh_filename +'" -overwrite -ignoreHiddenObjects -createProxyNode -node "'+ proxy_node_name + '" -exportType 1')
    A couple of problems I have run into:

    - If I provide -node "myProxy1", a new node called "myProxy11" will be created (even if myProxy1 does not already exist in the scene). This feels like a bug to me.
    - There does not seem to be any way of retrieving the name of the proxy node which gets created from the command (or does it?) - since that node name may have been taken already. <---- SCRATCH THAT... the object is selected after creation... so you can figure out its name!
    Last edited by Fredrik Averpil; 22-05-2015, 05:49 AM.
    Best Regards,
    Fredrik
Working...
X