Updating F-Curves in Timeline on EditSlider Drag
-
Hello,
I have a script that updates the keyframe at the current time's value while dragging an EditSlider. Is it possible to also update the keyframe in the Timeline while dragging? Currently the associated object updates in the Viewport using c4d.DrawViews but the keyframe in the F-Curve Timeline only updates on release of the EditSlider's handle. Here is the code I'm using to redraw:c4d.DrawViews(c4d.DRAWFLAGS_NO_THREAD | c4d.DRAWFLAGS_FORCEFULLREDRAW) c4d.GeSyncMessage(c4d.EVMSG_FCURVECHANGE) c4d.EventAdd(c4d.EVENT_ANIMATE)
Thank you!
-
hi @blastframe
You should use
EVMSG_CHANGE
instead ofEVMSG_FCURVECHANGE
c4d.GeSyncMessage(c4d.EVMSG_CHANGE)
Cheers,
Manuel -
@m_magalhaes said in Updating F-Curves in Timeline on EditSlider Drag:
hi @blastframe
You should use
EVMSG_CHANGE
instead ofEVMSG_FCURVECHANGE
c4d.GeSyncMessage(c4d.EVMSG_CHANGE)
Cheers,
ManuelHi Manuel, that was simple, thank you very much! That's a bit confusing though because I'm changing an F-Curve. What's
c4d.EVMSG_FCURVECHANGE
for then? -
@blastframe said in Updating F-Curves in Timeline on EditSlider Drag:
What's c4d.EVMSG_FCURVECHANGE for then?
After a quick check (sorry, I should have checked yesterday for a more complete answer) literally nothing. It's used nowhere.
Cheers,
Manuel