Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Updating F-Curves in Timeline on EditSlider Drag

    Cinema 4D SDK
    python sdk r23 windows
    2
    4
    475
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by A Former User

      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!

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        hi @blastframe

        You should use EVMSG_CHANGE instead of EVMSG_FCURVECHANGE

        c4d.GeSyncMessage(c4d.EVMSG_CHANGE)
        

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Manuel
          last edited by A Former User

          @m_magalhaes said in Updating F-Curves in Timeline on EditSlider Drag:

          hi @blastframe

          You should use EVMSG_CHANGE instead of EVMSG_FCURVECHANGE

          c4d.GeSyncMessage(c4d.EVMSG_CHANGE)
          

          Cheers,
          Manuel

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

          ManuelM 1 Reply Last reply Reply Quote 0
          • ManuelM
            Manuel @A Former User
            last edited by

            @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

            MAXON SDK Specialist

            MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • First post
              Last post