Resize an ArrayAttribute dynamically when another ArrayAttribute changes length

Resize an ArrayAttribute dynamically when another ArrayAttribute changes length

Anonymous
Not applicable
427 Views
0 Replies
Message 1 of 1

Resize an ArrayAttribute dynamically when another ArrayAttribute changes length

Anonymous
Not applicable

What is the best way to resize an Array Attribute in an MPxNode when another Attribute is modified.

 

For instance, given an MPxNode with an inputArray and outputArray, if the inputArray is resized I would like the outputArray to match the number of elements of the inputArray.

 

In what method (compute, setDependentsDirty, etc..) should this be done if possible? 

 

Thanks!

0 Likes
428 Views
0 Replies
Replies (0)