Skip to main content
davidr13429266
Participant
December 19, 2023
Answered

Expression Help - Essential Graphics

  • December 19, 2023
  • 1 reply
  • 292 views

Hey I'd appreciate some help to know if what i'd trying to create is even possible. I hope this isn't to confusing to explain.

I'm trying to create an expression that makes the property's value jump back to 0 every time it gets to 100. The final goal is to make the cursor cycle the whole way around it's path without stopping.

 

Does anyone know why that would be? Am I missing something?  ☝️ code below👇

 

 

I need this master to be dragged and dropped into comps adapted using the essential editor. However, when I try and keyframe outside the master comp 👇 here named 'Cursor Control' it breaks.

 

Anyone know why that would be? Am I missing something?

This topic has been closed for replies.
Correct answer Airweb_AE

Try to use the modulo operator.

sliderValue%100

100%100 return 0

125%100 return 25

200%100 return 0

250%100 return 50

and so on...

1 reply

Airweb_AECorrect answer
Legend
December 19, 2023

Try to use the modulo operator.

sliderValue%100

100%100 return 0

125%100 return 25

200%100 return 0

250%100 return 50

and so on...