MarcFisher
01 January 2008, 08:00 AM
What I want is to update a spinners information (or other UI elements for that matter) when you change the linked objects property in the viewport or modification panel.
For example, I have a spinner that controls the target distance of a vray camera which updates fine in the viewport when I use it. However when I control the camera distance without the floater window, but just within the viewport or modification panel I want it to update the spinner in the floater window in realtime aswell.
Is this possible at all?
rollout scriptTester "Script testwindow" width:208 height:91
(
spinner spn1 "" pos:[14,9] width:139 height:16 range:[0,1e+006,0]
on spn1 changed val do
(
$vraycam1.target_distance = val
completeRedraw()
)
)
floatWindow = newRolloutFloater "Script tester" 200 65
addRollout scriptTester floatWindow
scriptTester.spn1.value = $vraycam1.target_distance
For example, I have a spinner that controls the target distance of a vray camera which updates fine in the viewport when I use it. However when I control the camera distance without the floater window, but just within the viewport or modification panel I want it to update the spinner in the floater window in realtime aswell.
Is this possible at all?
rollout scriptTester "Script testwindow" width:208 height:91
(
spinner spn1 "" pos:[14,9] width:139 height:16 range:[0,1e+006,0]
on spn1 changed val do
(
$vraycam1.target_distance = val
completeRedraw()
)
)
floatWindow = newRolloutFloater "Script tester" 200 65
addRollout scriptTester floatWindow
scriptTester.spn1.value = $vraycam1.target_distance