Xpresso : distance traveled
-
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 -
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.c4dAll the best