Hi,
I wrote a script for handling multiple scene setups for rendering by storing multiple properties and their associated "objects" in variables that I store in a rollout of a custom attribute. It saves with the scene and it works pretty well as long as I don't close the Max session.
If I close and reopen Max I think what happens is that the rollout gets opened and so reset its local variables. Damn...
I don't want to use params because that means I have to split somehow every properties by type and I was avoiding that thanks to the fact that arrays can contain any type of data.
Basically I was storing in one array the array of property names first and property values second like that
objProps = #()
for obj in Objects do
(
names = #()
values = #()
for i in getPropNames obj do
(
append names i
append values (getproperty obj i)
)
append objProps #(obj, names, values)
)
(sorry I don't know how to add TABulations)
is there any way???
miauu · 2016-05-13