-
Dynamically center the anchor point of the individual shape in a shape layer
Hi guys,
I’ve searched around but didn’t find too much information on this. Would really appreciate any help.
It’s easy to dynamically anchor point for the whole shape layer, but is there any way to do it only for specific shape in a shape layer? Especially if it is not a regular shape like rectangle or circle, but a free hand-drawn path.
How do I get access to the data on the transform property on individual shape? Is it even possible? I know sourceRectAtTime works on shape layer, but it seems that it could only work on the whole shape layer, rather than the individual shape.
As you can see as below, I have a tail of the speech bubble drawn as a path in the shape layer(the triangle), and a rectangle as another shape in the same shape layer. Looking for a way to dynamically center the anchor point for the tail, so that it could dynamically change the position when I change the text.