I’m using Max Script. I’d like to pass some parameters to a rollout, just like you would normally specify in a class’ constructor. Rollouts do not seem to have such an ability. Or do they?
I know I could access locals in a rollout directly, but their values get reset upon initialization, which is not good for what I need.
Currently what I do is I created a struct available globally, with the members, to which I assign values before I call ‘createDialog’. This way
my rollout will read the data from that struct.
But that seems a bit cumbersome…
Is there any more elegant way to do it?