Is there a way to name the vray object properties node on creation?
I want a way to mel script this so that I can create VrobProp (Vray object properties) nodes based on the selected object they are attached to.
Like if pPlane1 is selected and I apply a VrobProp setup with the right attributes checked for it to be a shadow catcher. So essentially making a little button that is "Make Vray Shadow catcher"
Then the pPlane1 name is applied to the VrobProp when created. This way when i have multiple vrayobject properties nodes in the outliner they don't just appear as
vrayobjectproperties
vrayobjectproperties1
vrayobjectproperties2
vrayobjectproperties3
But rather how I want to see them so they are associated with the objects/groups connected
VrobProp_pPlane1
VrobProp_pSphere1
VrobProp_pPlane2
VrobProp_Wheels_Group
Then I can easily see that the wheels_group will have the motion blur override
The planes are shadow catchers...
.. and the sphere is matte zero.
Even though I would have to click through them at least I can tell at a glance what I attached them to.
Currently I just rename them manually but I wanted a way of naming on creation so that the mel script is easy to track.
I mean I could always
Then rename the vrayobjectProperties node. Maybe do a check to see if vrayobjectproperties1,2,3 etc exists.
But.. Is there a flag for naming the vrayobjectproperties on creation?
I want a way to mel script this so that I can create VrobProp (Vray object properties) nodes based on the selected object they are attached to.
Like if pPlane1 is selected and I apply a VrobProp setup with the right attributes checked for it to be a shadow catcher. So essentially making a little button that is "Make Vray Shadow catcher"
Then the pPlane1 name is applied to the VrobProp when created. This way when i have multiple vrayobject properties nodes in the outliner they don't just appear as
vrayobjectproperties
vrayobjectproperties1
vrayobjectproperties2
vrayobjectproperties3
But rather how I want to see them so they are associated with the objects/groups connected
VrobProp_pPlane1
VrobProp_pSphere1
VrobProp_pPlane2
VrobProp_Wheels_Group
Then I can easily see that the wheels_group will have the motion blur override
The planes are shadow catchers...
.. and the sphere is matte zero.
Even though I would have to click through them at least I can tell at a glance what I attached them to.
Currently I just rename them manually but I wanted a way of naming on creation so that the mel script is easy to track.
I mean I could always
Code:
vray objectProperties add_single; connectAttr vrayobjectproperties1.outConnect vraySettings.vray_nodes_connect -nextAvailable;
But.. Is there a flag for naming the vrayobjectproperties on creation?
Comment