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

sourceRectAtTime not updating with dynamic textlayer.

Participant ,
Mar 21, 2022 Mar 21, 2022

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

Solved! Layer in trims were different. 

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