Notifications
Clear all

[Closed] Feed data back to floater window

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
 

2 Replies

registerRedrawViewsCallback

There we go

Don’t need to completeRedraw either so I see

 JHN

Yes it can be done using callbacks! Look them up in the manual.

-Johan