CINEVERSITY

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

    Xpresso : distance traveled

    Question & Answers
    2
    2
    11
    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.
    • Pitchi
      Pitchi last edited by

      Hi πŸ™‚
      I'd like to know how to add and accumulate values ​​in Xpresso. For example, I have a moving Null, and using the Distance node, I get its distance traveled each frame. I'd like to be able to accumulate each value at any given time to increase the gauge. Furthermore, I'd like to be able to increase the gauge even when there's no animation, when I move the Null within the interface. How can I do this?DISTANCE.c4d

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

        Hi Pitchi,

        Thanks for the file. πŸ™‚

        I added the needed changes, but I'm not sure how the editor view can create stable data, as the nature of the editor view is to constantly update.

        I would use Cappucino to record what you need, if we focus on rendering and sharing the result. Then use a Tracer and follow the Null. In XPresso you can measure the length of the Spline, which might be more accurate than to use previous position. The distance between two points is the shortest possible distance, but how about moving in an arc?

        Here is the file back, I used User Data to create a simple and intuitive Variable/memory. The value is reset on frame zero.
        CV4_2026_drs_26_XPtd_01.c4d

        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
        • First post
          Last post