Creating an array of paintable attributes

Creating an array of paintable attributes

jmreinhart
Advisor Advisor
488 Views
1 Reply
Message 1 of 2

Creating an array of paintable attributes

jmreinhart
Advisor
Advisor

I am creating a deformer which has an array of paintable attributes. I have been following Chad Vernons tutorial to try and get it working. I understand how he is using a callback to swap out the values into a single paintable attribute. However he has his weights as an array of float-array type attributes while mine is an array of arrays of floats. He is able to copy the whole weight map using . asMObject and .setMObject but .asMObject returns kInvalid for me. Is there another way I can easily copy the weights? Should I switch to storing the weights the way he does? Is there a practical difference between the storage methods.

0 Likes
Accepted solutions (1)
489 Views
1 Reply
Reply (1)
Message 2 of 2

jmreinhart
Advisor
Advisor
Accepted solution

Just adding the conclusion to this old question of mine:

 

asMObject only works if your attribute is an array not a multi.

For a multi you unfortunately need to go element by element.

0 Likes