Skip to main content
Participant
June 4, 2024
Answered

Image Sequence frame based on Trace Null position?

  • June 4, 2024
  • 1 reply
  • 359 views

Hello!

I have an image sequence that I’ve imported of a 360 spin cycle – where frame 0 = 0° / frame 360 = 360°.

 

I’ve then added time remapping to this comp so I can change the angle/view of the 360 spin/rotation.

 

Is there an expression that would allow me to have a specific frame of the time remapping comp used based on the direction it’s facing if I pair this to a Trace Path null position?

This topic has been closed for replies.
Correct answer JZPenn

Thanks again, Dan. I think I've finally figured it out with this expression in my time remap property.

r = thisComp.layer("PATH TRACE NULL").transform.rotation%360*-.5;
if (r < 0) r += 180;
framesToTime(r)

 

1 reply

Dan Ebberts
Community Expert
Community Expert
June 4, 2024

If you used the Trace Path action on the Create Nulls From Paths script, the Rotation property of the Null probably has the info you need. You’d end up with something similar to this:

angle = thisComp.layer("Null 1").transform.rotation + 180;
framesToTime(angle)
JZPennAuthor
Participant
June 5, 2024

Thanks Dan, I'll have a tinker around with this. I also watched your 360 images video, which was a great help, got me closer to what I'm looking for. So, double thank you!