The Expressions Thread

felt_tips said
MartinLemaire said

Hey, it’s me again :smiley:
i’m still stuck, how can i parent only the vertical size of a layer to the vertical size of another layer ?
Thanks a lot for your help guys

On Scale:

L = thisComp.layer("whatever");
[value[0], L.transform.scale[1]];

It doesn’t work for me.


As you can see, i’m trying to parent the horizontal size (not the vertical) of the layer called “Background” to the horizontal size of the “Rectangle 1” contained in the layer called “Frame”, the rectangle is parented to a slider so the client can easily slide the horizontal scale.
Thanks again for your help