im learning maxscript and i made a rollout that works great when i run it, i define some arrays of objects before the rollout to make life easier, and now i want to put it inside the attribute holder of an object, and add a button to make it a floating window. my problem is where (and maybe how) do i define my arrays of objects.
code looks something like this
myarray = #($'Box1',$'Box2',...) rollout roll "Rolling" ( -- )
and want to turn it into
myarray = #($'Box1',$'Box2',...) ca = attributes newAttribute ( rollout roll "Rolling" ( --Here i use myarray on btn pressed do ( rollout roll2 "Rolling2" ( -- Here i also use myarray ) ) ) )
myarray is predefined and doesn’t change throughout any of the rollouts