View Full Version : attach a dialog to the Timeslider possible?

05 May 2008, 05:48 PM
I was just wondering if anyone knew if it was possible to attach a dialog/window to the Timeslider so it follows it when I scurb it?
thank you!

05 May 2008, 10:04 PM
I don't think there's a direct way to get the position of the time slider in max / screen coordinates. However, if you're scrubbing with your mouse only, then you could get mouse.screenpos and update the position of a dialog whenever the time changes.

fn moveTest = (
setDialogPos test (mouse.screenPos + [0,-64])

rollout test "test" (
label time ""

on test moved pos do (
time.caption = currentTime as string
createDialog test style:#(#style_toolwindow,#style_sysmenu)

registerTimeCallback moveTest

05 May 2008, 11:05 PM
awesome, thats an engenious solution man, precisely what i was looking for!
thank you my friend!!!

CGTalk Moderation
05 May 2008, 11:05 PM
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.