bhnh
01-20-2008, 06:57 PM
I've got two questions concerning rollouts...
Question 1. Here's a short test script for a utility:
utility test3 "Test3"
(
local v
rollout r1 "panel A"
(
spinner spn_r1 "spinner 1 "
on spn_r1 changed value do
(v = spn_r1.value)
)
rollout r2 "panel B"
(
spinner spn_r2 "spinner 2 "
on spn_r2 changed value do
(spn_r2.value = v)
)
on test3 open do
(
addRollout r1
addRollout r2
)
on test3 close do
(
removeRollout r1
removeRollout r2
)
)
Here's the question...
http://www.e-nimation.com/turbosquid/utilityRollouts.gif
Question 2: Can rollouts be nested within another rollout? I guess a better way of phrasing that is, can a variable be assigned locally on the RolloutFloater level such that it will be read by added rollouts? Here's what I'm getting at...
rollout one "One"
(
button btn_1 "First Button"
)
rollout two "Two"
(
button btn_2 "Second Button"
)
rf = newRolloutFloater "Floater" 200 300
(button btn_f "Floater Button")
addRollout one rf
addRollout two rf
In the above I tried to add a "Floater" button on the floater level, to be followed the two rollouts. When I run it, there's no button on the floater level.
Many thanks in advance.
Question 1. Here's a short test script for a utility:
utility test3 "Test3"
(
local v
rollout r1 "panel A"
(
spinner spn_r1 "spinner 1 "
on spn_r1 changed value do
(v = spn_r1.value)
)
rollout r2 "panel B"
(
spinner spn_r2 "spinner 2 "
on spn_r2 changed value do
(spn_r2.value = v)
)
on test3 open do
(
addRollout r1
addRollout r2
)
on test3 close do
(
removeRollout r1
removeRollout r2
)
)
Here's the question...
http://www.e-nimation.com/turbosquid/utilityRollouts.gif
Question 2: Can rollouts be nested within another rollout? I guess a better way of phrasing that is, can a variable be assigned locally on the RolloutFloater level such that it will be read by added rollouts? Here's what I'm getting at...
rollout one "One"
(
button btn_1 "First Button"
)
rollout two "Two"
(
button btn_2 "Second Button"
)
rf = newRolloutFloater "Floater" 200 300
(button btn_f "Floater Button")
addRollout one rf
addRollout two rf
In the above I tried to add a "Floater" button on the floater level, to be followed the two rollouts. When I run it, there's no button on the floater level.
Many thanks in advance.
