Correct. You cannot change the structure of an existing compound attribute.
However, you can convert the attributes of interested to be an array and
that should get you the flexibility you need. If you need to the compound
attribute to be an array type, that will work as well, so each item in the
array would actually be your compound structure.


On Sat, Jan 12, 2013 at 11:11 AM, Christopher Evans
<[email protected]>wrote:

> Hi guys, if I have a compound attr with sub-compound attrs and those have
> lots of message node connections goin out.
>
> To add a child, am I right in thinking I need to store all the hierarchy
> and connections, then delete and re-add the compound attr with a new number
> of children, re add them all and reconnect everything?
>
> The addAttr command's numberOfChildren only seems to have create and query
> flags, no edit.
>
> This is a little frustrating, I guess it's because the compound attr
> ceases to exist when there is a number of children set, but not all filled
> (?)
>
> --
> CE
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to