I’ve never tried this before and completely stumped on how to do this other than by parenting.
I have a group of circles that rotate based on an anchor point, other than using a null with a delay and few other bits. I’ve animated my circles that then stop in this position.
I want my text to sit on top and using 0 – thisComp.layer(x).rotation, to keep the text horizontally.
no when I use a position expression it’s using position/anchorpoint, which I know why it’s doing that, but is there an expression that to get the actually position of the shape layer? So it’s like this.
So it rotates based on the position perfectly, but is there anyway to get the text to anchor itself directly into the centre of the circle. That was my other problem.
because I want to utilise the anchor in the centre of the comp for my circle to rotate. I couldn’t figure out how to get my text to sit in the circle as it places itself based on the position which it thinks is the centre of the comp. But that’s a cool trick for the rotation.
As I’m still learning, what does this mean though?
xd *= xd is shorthand for xd = xd * xd, in the same fashion as xd += 5 is shorthand for xd = xd + 5.
Considering you need to rotate the text layer around its anchor point to keep it horizontal, you can’t move it in the center of the comp. I guess you could do it in reverse, calculating with sourceRectAtTime the rotation point for the text that is in the center of the text layer like the anchor point currently is. To me it seems like a more complicated method of achieving the same result.
Since the text and the circles are on separate layers, I don’t know why this would be an issue. Just need to drag the text layer to the original position in the center of the circle first. But maybe you have other things going on in the animation which I don’t know of that make the situation more complicated.