Script to postion an anchor point in middle of layer
Posted: April 28th, 2009, 8:53 am
Hey guys,
I have no scripting knowledge and am starting to figure out expressions so i'll be relying on your help for this one
(if it's possible)
lets say i create a 1080p solid where i draw a mask around only one little part of it on the left hand side. Then when i select that layer my anchor point is where it was before and not in the middle of my mask.
Would it be possible to create a script that would center the anchor point to the mask area without moving the mask around? so what it would need to do is move the anchor point to the new middle (which will move the mask to the middle of the comp) and then have to move the solid to it's original x,y,z coordinates so it matches the original position of the mask.
Any ideas?
Thanks in advance!
Ollie
I have no scripting knowledge and am starting to figure out expressions so i'll be relying on your help for this one
(if it's possible)
lets say i create a 1080p solid where i draw a mask around only one little part of it on the left hand side. Then when i select that layer my anchor point is where it was before and not in the middle of my mask.
Would it be possible to create a script that would center the anchor point to the mask area without moving the mask around? so what it would need to do is move the anchor point to the new middle (which will move the mask to the middle of the comp) and then have to move the solid to it's original x,y,z coordinates so it matches the original position of the mask.
Any ideas?
Thanks in advance!
Ollie