-
Accumulative Values
Hi all.
I might struggle to explain this problem as I think I have fried my brain trying to work it out, so bear with me.
I’ve created an expression that looks at a specific layer’s markers and calculates the time and index of the previous and next marker. That part works fine, so I have the following variables:
prevMarkerIndex
prevMarkerTime
nextMarkerIndex
nextMarkerTimeI then want to add to the expression so that with each marker a value will accumulate by a certain value (determined by a Slider which I will keyframe over time). I can’t find a way of doing it without it becoming self-referential.
For example, if my accumulative Slider is set to 10, then with each marker the value will increase by 10, but I need it so that over time I can keyframe the accumulative Slider. Let’s say to 2, so that the result is something like this…
** accumulative Slider = 10
@ Marker_01, value = 10
@ Marker_02, value = 20
@ Marker_03, value = 30
@ Marker_04, value = 40
** accumulative Slider = 2
@ Marker_05, value = 42
@ Marker_06, value = 44I hope this makes sense? Any help would be MASSIVELY appreciated.
Thanks,
JamieJimJam•Graphics
https://www.jimjamgraphics.com/