Rollouts value changing
Hello!
I am having difficulties with my script and I would really appreciate your help.
In my script, I have 2 Rollouts in a Custom attribute. Let say Rollout rFirst and rSecond.
I would like to be able to change the range of the spinner in the rFirst rollout when I change the value of the rSecond Rollout.
I keep getting undefined. Would any of you know how to get that value?
Thanks in advance for your help! :)
Example of code:
Rollout rFirst "First"
(
spinner test "Width :" range:[10,10000,10] fieldWidth:60
)
Rollout rSecond "Second"
(
spinner LegDistance " Border Distance :" range:[0,10000,0] fieldWidth:35
on LegDistance changed val do
(
test.range = [1,8,2]
)
)
Answer:
I figure out that I just need to declare the two rollout has local variable before creating the rollout.
Comments
Why another variable when you
Why another variable when you can access it directly:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters