CINEVERSITY

    Maxon Logo
    • Login
    • Search
    • Recent
    • Popular
    • Users
    • Groups

    Chronograph rotation with start & stop

    Question & Answers
    2
    6
    61
    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.
    • V
      Vincent Parot last edited by

      Hello everyone,

      I've been tearing my hair out for days/weeks with this problem...
      I'm trying to animate a chronograph wheel in xpresso.Chronowheel.c4d

      Everything works fine on its 4hz rotation ( time/frame->math-divide:3.125/integer/math-multiply:0.75/degree:degreetoradians)
      My big problem is with the start and stop function and the reset to 0...

      I've tried many different ways of doing it, in Xpresso, with keys in a motion clip and MoGraph, but each time I get the same problem -> I start the timer in frame 100 and stop it in frame 500, and if I reactivate the timer in frame 1000 to continue, the wheel will jump to catch up with the rotation of the 500 frames that have elapsed.
      I've read a few times that a memory node might help, but I've no idea how.

      Would you have an idea of how to solve this problem please?

      Thanks in advance for your help

      Vincent

      1 Reply Last reply Reply Quote
      • Dr. Sassi
        Dr. Sassi last edited by Dr. Sassi

        Hi Vincent,

        Please have a look here:
        CV4_2025_drs_25_ANsc_01.c4d

        This is simplified, and you need to set the time Progress in the Multiply Node accordingly.

        Please click on the XPresso to have the User Data in the Attribute Manager. I have introduced a Run, Pause, and Reset button. The current state can be keyframed. Note that you can create a second Attribute Manager to have the buttons in your view.
        Screenshot 2025-07-18 at 11.29.34 AM.jpg

        You can set a keyframe on Frame zero if that is the point you want to reset. While the entry in the Select-Node for the Reset (the input at the bottom) is zero, you can enter any number to reset the "clock-arm" to any position you like. On the left is the information top to bottom, which is often crucial in XPresso.
        Screenshot 2025-07-18 at 11.34.44 AM.jpg

        I use the User Data> Internal parameter as memory, BTW the name is not important. Over the decades, it has shown that this approach is more obvious than a memory node somewhere. This one should not be touched.

        The Cloner is there only for optics, and it is not a functional component.

        Screenshot 2025-07-18 at 11.50.34 AM.jpg

        Let me know if that works for you. (The only drawback for this, you can't move back and fore with the Time Slider, it needs all frames )
        Screenshot 2025-07-18 at 11.53.34 AM.jpg

        Cheers

        Dr. Sassi Sassmannshausen Ph.D.
        Senior Trainer, Maxon Master Trainer, L&D - Strategist
        Cinema 4D mentor since 2004, Member of VES, DCS.

        1 Reply Last reply Reply Quote
        • V
          Vincent Parot last edited by

          Hello Sassi,

          Thanks, it works perfectly!

          Do you think it's possible to set a reset condition such as: if the wheel is at less than 180°, it resets via the right, and if it's at more than 180°, it resets via the left?

          In any case it's really great, you've solved a big problem!

          Thanks a million!

          1 Reply Last reply Reply Quote
          • Dr. Sassi
            Dr. Sassi last edited by Dr. Sassi

            Hi Vincent Parot,

            Thank you for the kind feedback, very appreciated.

            Please have a look here:
            CV4_2025_drs_25_ANsc_02.c4d

            I have no clear idea what you mean by "via right, via left". Should the result be oriented to the left or right, or do you have buttons in mind?

            I used a formula to get there.
            ?($1<628;314;942)

            Which reads If the input one is smaller than 628 (half hour), then output 314 (pointing right), otherwise use 942 (pointing left)

            The numbers are based on the setup; they might be different for other setups. Here, 628 was the half hour.

            The Module added here was needed, as the reset to the left would always start then with 942, and the formula wouldn't work. In this way, the counting starts always anew.

            Tip: while the project is not running, but the XPresso tab "run" is active – pressing the "a" key shortly moves it one increment forward, holding the key continues. (Refresh the scene "a", triggers a new run through the XPresso set up, hence the update)

            All the best

            Dr. Sassi Sassmannshausen Ph.D.
            Senior Trainer, Maxon Master Trainer, L&D - Strategist
            Cinema 4D mentor since 2004, Member of VES, DCS.

            1 Reply Last reply Reply Quote
            • V
              Vincent Parot last edited by Dr. Sassi

              Hi Dr Sassi,

              I am currently working on a watch with a "flyback" chronograph. This means that depending on the angle of the wheel, when you reset to zero, the wheel will either return to zero from the right or from the left. This is to avoid applying too much force on the wheel by making it travel too far during the reset.

              An additional challenge is that it is possible to reset without stopping the chronograph. When you press the button, the wheel resets to zero, but if you release the button, it starts again.

              The issue with the formula in this case is that I cannot instruct it to move one way or the other without telling it to position at 1254 or 2, but it cannot return completely to zero.

              I hope my explanations are clear.

              Thank you very much for your help, it is incredibly helpful for my progress!

              Best !

              1 Reply Last reply Reply Quote
              • Dr. Sassi
                Dr. Sassi last edited by Dr. Sassi

                Hi Vincent,

                Got it. Thanks for the extra explanation of what you like to have.

                Please have a look below:
                CV4_2025_drs_25_ANsc_03.c4d

                The evaluation of the position is just another "If/then/else" formula, as above, since that would calculate back and fore if left on around the zero point, I have placed the if/then/else into another, to keep it zero when it is zero ( the final reset state).

                The two values -5 and 5 are to speed up the reset. This causes a little over-swing if these numbers are set too high, like 25 and -25

                I have set up the whole formula now based on degree and converted it then to radiance, which the indicator needs. Based on the frame rate of the scene, you might change the progress in the Run parameter accordingly.

                My best wishes for your project.

                Dr. Sassi Sassmannshausen Ph.D.
                Senior Trainer, Maxon Master Trainer, L&D - Strategist
                Cinema 4D mentor since 2004, Member of VES, DCS.

                1 Reply Last reply Reply Quote
                • First post
                  Last post