Skip to main content
Participant
May 3, 2022
Question

Question: Is it possible to offset time for a Trim Paths layer?

  • May 3, 2022
  • 1 reply
  • 156 views

I have this project, where it would save me massive amounts of time if the following was possible:

 

Using an expression, offset the time of multiple Trim Paths instances (both start and end parameters) based on keyframe animation data from the start and end parameters of a single instance of Trim Paths – preferably using the same shape layer as a container for multiple shapes.

 

I have looked around, and have only found people using time offset expressions for parameters like Scale and Position – is there one for percentage-based parameters like Trim Paths?

Example of one of these could be: thisComp.layer("Layer").transform.scale.valueAtTime(time - .1)

This topic has been closed for replies.

1 reply

Mylenium
Legend
May 3, 2022

valueAtTime() of course works on other properties as well. The simple version for shape layers would be something like:

 

content("Rectangle 1").content("Trim Paths 1").start.valueAtTime(time-0.1)

 

Anything beyond that would require more specific info about your setup and how you envision things to work plus possibly screenshots and details about how stuff is keyframed.

 

Mylenium