XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Feed data back to floater window

01-16-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




floatWindow = newRolloutFloater "Script tester" 200 65

addRollout scriptTester floatWindow

scriptTester.spn1.value = $vraycam1.target_distance

01-16-2008, 08:43 AM

There we go :P

Don't need to completeRedraw either so I see

01-16-2008, 08:51 AM
Yes it can be done using callbacks! Look them up in the manual.


CGTalk Moderation
01-16-2008, 08:51 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.