-
Help! Transposing Anchor Point and Position
offset1=(thisComp.width/2-transform.position[0])/transform.scale[0]*100*thisComp.pixelAspect; offset2=(thisComp.height/2-transform.position[1])/transform.scale[1]*100; [(value[0]-offset1), (value[1]-offset2)]
OK, I tried to work this out on paper and somehow got the opposite of what I intended.
If you paste the following code in to the Anchor Point property of a layer, and then try to move the layer around the comp with the arrow cursor, the layer stays in the centre and the anchor point moves instead.
What I wanted was the opposite: to be able to move the layer and have the anchor point stay in the middle of the comp. I’m approaching it backwards somehow.
Can anyone untangle this for me?