Activity › Forums › Adobe After Effects Expressions › sourceRectAtTime for shapes?
-
sourceRectAtTime for shapes?
Posted by Paul Ducco on February 20, 2023 at 3:55 amIs there an equivalent for getting the dimensions of a shape/group within a layer (i.e, not the entire layer)? or am I just getting the syntax wrong?
Filip Vandueren replied 3 years, 2 months ago 3 Members · 3 Replies -
3 Replies
-
Yoan Boisjoli
February 21, 2023 at 1:46 pmHi Paul, what’s your current syntax?
In your case you want to get the size of a specific path with a shape layer?
Did you try to link to it directly from the expression editor with the pick whip?
-
Paul Ducco
February 21, 2023 at 9:36 pmHi Yoan, yeah sorry I’m referring to bezier paths, not ‘standard’ shapes.
And…within that, trying to reference the size of particular ‘sub-shapes/-groups’ -
Filip Vandueren
February 24, 2023 at 8:56 amI’ll think you’d need to do something similar to subSourceRect: “disable” all but one of the shapes at certain times so you can get the sourceRect of the layer to represent the sourceRect of that shape.
The complexity when compared to text, is that it’s easy to manipulate all the characters in a text-layer with a text animator (that’s what they’re for after all).
But there’s no simple way to automatically target all shapes (in all subgroups) of a shapelayer, each sub shape would need expressions to handle it, and there’s no way to auto-update those if there are shapes added/deleted.
Even determining which shape gets which index isn’t super straightforward when possibly a lot of grouping an sub grouping could be going on inside a shapelayer
Reply to this Discussion! Login or Sign Up