Hi Guys! I just read about garbage collection and it seems "OK" that maxscript reserves more and more memory with every script-run. BUT i wondered why this small scripts counts the rollout numbers up and up... Script:( rci = rolloutCreator thename "test title" rci.begin() rci.end(); print rci.def) Ouput after 1st…
Bryan Cavett Yeah i was just afraid that maybe it creates several instances under the same name when using a string. Thanks for your examples! I normally do it like you said but this time i need a dynamically created UI which makes me use the rolloutCreature function. Swordslayer That's weird. Because when i try to access…
Sure, the rci variable holding rolloutCreator instance stays in the local scope - but that's not what I'm talking about, have you looked inside the script? The rolloutCreator cobbles together the pieces of string you give it and finally calls execute on the resulting string - and of course, execute ONLY works in global…
Seems like you're missing quotes around the rollout name, which you already knew about. Im guessing its not seeing that variable though since that's the same output i'm getting on my end when i don't have the variable defined. Once i gave it a string it stopped appending the numbers to the definition output. rci =…