[Closed] Local/Global and rollout
Hi i have couple of questions for you (about global/local i think)
-
I wrote some script – 2 rollouts in separate .ms files. When i click button btn_settings on rollout001 then rollout002 will be open. Its work (almost – check 5.). But how can i set, for example check button from rollout002 to affect state of check Button from rollout001? Global checkbutton … dont work.
-
Is there a way (and point) of putting all functions to different .ms. I love to have clean code and this way o things (separate files) will provide me that. How about efficiency (access time) of that separate file (with functions)? How can i wrote that file (need short code with easy FN as example :))
-
How can i clean memory from ALL MINE/ALL global variables and functions…gc() dont work. (in this case im mostly want to check that any of mine older scripts works first time when i open 3ds max (no global variables of them are declared yet). I dont want to reset max each time im checking script).
-
What is the best way to refresh only rollout? Lets assume i have dynamic imgTag that moves under mouse. When i move it slowly its ok…when it moves fast, refresh isnt quite enought.
-
How can i open rollout (rollout002) from other rollout(rollout001) FOR FIRST TIME after max starts. CreateDialog works preaty well but when the rollout was already open before. inFile cant open it cause i have Macroscript declaration of .ms with rollout001
macroScript ...
category:"...
tooltip:"...
rollout ... (
)