AlexRideout
Hello,

I am currently trying to get arrayExpression nodes to be driven by attributes on a control object. Primarily I am doing this to drive randomization functions for velocity vectors for a pointEmitter.

I am able to bring attribute values into the arrayExpression using a getAttr function in the START BLOCK section of the arrayExpression node and everything evaluates as expected. The issue I am running into is these nodes not updating when I change the attribute values (either manually, or via keyframe animation).

Is there a way to force updates/evaluation on the arrayExpression nodes? Or alternatively, is there a node that can be used as a function on an array like adding a single value to all array elements or multiplying all elements by a value or random values? Essentially like an attribute driven simplified arrayExpression node or array operation node?

I attached the scene I am working with. Attributes in question are on the "BurstControl" object.

Thanks,
Alex
Reply 0 0
pshipkov
Not currently.

The point node can do that if you connect the control attributes to its inMessage input.
Maybe i can do something like that to the arrayExpression one in the next soup update.
Reply 0 0
AlexRideout
I have found myself wanting to multiply arrays by a single value (or adding a single value) a couple times, so that would be definitely helpful! I will keep an eye out in future releases. Thanks!
Reply 0 0
pshipkov
consider using expressions. if you are not running tens of millions of elements in your arrays the performance is pretty good.
Reply 0 0
AlexRideout
As in standard maya expressions opposed to SOuP's arrayExpression?
Reply 0 0
pshipkov
yes.
Reply 0 0
Reply