• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Image Sequence frame based on Trace Null position?

Community Beginner ,
Jun 04, 2024 Jun 04, 2024

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?

TOPICS
Expressions

Views

76

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jun 05, 2024 Jun 05, 2024

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)

 

Votes

Translate

Translate
Community Expert ,
Jun 04, 2024 Jun 04, 2024

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 05, 2024 Jun 05, 2024

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

LATEST

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)

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines