DJ_
03-17-2005, 05:50 PM
I am having some real trubbles with my script. I'm scripting a modifier, this modifier has two different rollouts, let's just call them 'r1' and 'r2'. Both of them has variables (that are stored within the .max file), UI objects (such as buttons and spinners), functions and everything that a good rollout needs. My big problems are:
1- I need both the rollouts to interact with eachother. I need buttons in the 'r1' to call functions in the 'r2' and also need functions in the 'r2' to access functions and/or variables in the 'r1'. if you are going to tell me "just make the function/variable a global one", please specify where and how, becouse I've tried everywhere and just didn't get it to work.
2- Is there a way to call a function that is further down in my code? I have seen it working in a macroscript (eg. the script for the "Parameter Editor") where they first declare the functions name as a normal variable, call it several times further down in the code and then they write the actual function. It seems to work well for macroscripts but I can't get it to work with my "scripted plugin modifier".
1- I need both the rollouts to interact with eachother. I need buttons in the 'r1' to call functions in the 'r2' and also need functions in the 'r2' to access functions and/or variables in the 'r1'. if you are going to tell me "just make the function/variable a global one", please specify where and how, becouse I've tried everywhere and just didn't get it to work.
2- Is there a way to call a function that is further down in my code? I have seen it working in a macroscript (eg. the script for the "Parameter Editor") where they first declare the functions name as a normal variable, call it several times further down in the code and then they write the actual function. It seems to work well for macroscripts but I can't get it to work with my "scripted plugin modifier".
