Copy link to clipboard
Copied
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?
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)
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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)