Notifications
Clear all

[Closed] Local/Global and rollout

Hi i have couple of questions for you (about global/local i think)

  1. 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.

  2. 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 :))

  3. 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).

  4. 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.

  5. 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 ... (

)