Notifications
Clear all

[Closed] attach a dialog to the Timeslider possible?

Hi!
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!

2 Replies

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

yes!!
awesome, thats an engenious solution man, precisely what i was looking for!
thank you my friend!!!