jackinoob
07-07-2006, 04:42 AM
Hi all,
I have a node which has a typedAttribute of type stringArray.
I can access the entire attribute as a whole in Maya, but I can not access the individual components of the array. I have to assign my typedAttribute to a string array in MEL, then access each component.
Also, to modify a/any component of my typedAttribute stringArray, I need to create an array in Mel, then assign the components of the MEL array, one by one, to my typedAttribute array, such as:
setAttr node.featureArray -type stringArray 3 $rr[0] $rr[1] $rr[2];
where $rr is just a MEL string array.
Is there a way to access and manipulate custom node attributes directly?
Much thanks!
I have a node which has a typedAttribute of type stringArray.
I can access the entire attribute as a whole in Maya, but I can not access the individual components of the array. I have to assign my typedAttribute to a string array in MEL, then access each component.
Also, to modify a/any component of my typedAttribute stringArray, I need to create an array in Mel, then assign the components of the MEL array, one by one, to my typedAttribute array, such as:
setAttr node.featureArray -type stringArray 3 $rr[0] $rr[1] $rr[2];
where $rr is just a MEL string array.
Is there a way to access and manipulate custom node attributes directly?
Much thanks!
