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

Script for Linking multiple layers to a null layer

New Here ,
Oct 23, 2014 Oct 23, 2014

I'm trying to link multiple layers to an animated null layer but I want each layer to start the animation from layer starting time.

What would be the script I need to add instead duplicating null layer for every layers?

I hope that question isn't too confusing to understand lol

TIA

W

TOPICS
Scripting
919
Translate
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 Expert , Oct 24, 2014 Oct 24, 2014

I think you could do that with an expression like this:

thisComp.layer("ROTATE").transform.xRotation.valueAtTime(time-inPoint)

Dan

Translate
New Here ,
Oct 24, 2014 Oct 24, 2014

Anyone?

Translate
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
Advocate ,
Oct 24, 2014 Oct 24, 2014

Your question could be clearer. Maybe a screenshot would help.

Translate
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
New Here ,
Oct 24, 2014 Oct 24, 2014

Sorry, I'm not good at explaining things though texts lol

Hopefully this picture can explain better what I'm trying to achieve.

I want to link the text layers to ROTATE null object but I want the keyframes to start at the beginning of each of text layer. This way, I won't need keyframes for each text layer and I can adjust the timing easier later. I know the script lines to link them to a null object but I can't figure out the line to tell the keyframes to start at the beginning of the layer instead the null object in the timeline.

I think I just made this more confusing lolUntitled-1.jpg

Translate
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 Expert ,
Oct 24, 2014 Oct 24, 2014

I think you could do that with an expression like this:

thisComp.layer("ROTATE").transform.xRotation.valueAtTime(time-inPoint)

Dan

Translate
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
New Here ,
Oct 27, 2014 Oct 27, 2014
LATEST

Thank you so much, you are awesome!

Translate
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