Copy link to clipboard
Copied
Hi there,
I made a animation of rectangles and then pre-comp them.
Now I have a text with the pre-comp under the text.
I would like that when I change the text, like Hi to Hello, the pre-comp size scale with text change.
https://drive.google.com/open?id=0B7CouxKS8dIGRkU5OFdteXVIWFk
https://drive.google.com/open?id=0B7CouxKS8dIGRG1YZEJMSU16VUE
https://drive.google.com/open?id=0B7CouxKS8dIGUVUwWE9LT0ZPOEU
Thank you ! 🙂
Add +60 (or whatever number you like) to both x and y.
For further control you could create expression slider controls and then link the + amount to those slider controls.
Copy link to clipboard
Copied
you can do this using sourceRectAtTime expression. just link the appropriate parameters.
Copy link to clipboard
Copied
Thank you Roei Tzoref,
I tried with this one, but I put the expression on the scale of my pre-comp and liked like as the tutorial but it makes me a huge scaling...
I think it's because I link x and y like in the tutorial, and he use a shape rectangle so it's working but I'm using a pre-comp so in the scale there is no x and y...
Here is my project if you want to help me 🙂
https://drive.google.com/open?id=0B7CouxKS8dIGOWFldnpXVGU1VFU
thank you very much
Copy link to clipboard
Copied
Well I put this :
x=thisComp.layer("Digital Collaboration").sourceRectAtTime().width/10;
y=thisComp.layer("Digital Collaboration").sourceRectAtTime().height;
[x,y]
And the scale of my pre-comp scale less bigger and it's look what I would like.
But I would like it keeps like 30px left and right of my text...
Like my guide layer "Border info"
Copy link to clipboard
Copied
Add +60 (or whatever number you like) to both x and y.
For further control you could create expression slider controls and then link the + amount to those slider controls.
Copy link to clipboard
Copied
Hi Amgraphics,
Sorry for this issue. Did you ever find a solution? Please let us know if you have or if you still need help.
Thanks,
Kevin
Copy link to clipboard
Copied
Yes thanks !