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
floatWindow = newRolloutFloater "Script tester" 200 65
addRollout scriptTester floatWindow
scriptTester.spn1.value = $vraycam1.target_distance