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

sourceRectAtTime not updating with dynamic textlayer.

Participant ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

//SourceText expression

var myText=[100,2000,30000];
nearestKeyIndex = 0;
if (thisLayer.marker.numKeys > 0){
nearestKeyIndex = thisLayer.marker.nearestKey(time).index;

if (thisLayer.marker.key(nearestKeyIndex).time > time){
nearestKeyIndex--;
}
}

myText[nearestKeyIndex];

///

 

//shapelayer size expression.

s=thisComp.layer("myTextLayer").sourceRectAtTime();
x=s.width;
y=s.height;
[x,y];

////

 

If i take shapelayer and connect size with text layer with source text expression using sourceRectangle. It is not updating.

Please see if someone can help.

TOPICS
Expressions

Views

83

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
Participant ,
Mar 21, 2022 Mar 21, 2022

Copy link to clipboard

Copied

LATEST

Solved! Layer in trims were different. 

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