Activity › Forums › Adobe After Effects Expressions › Expression to change mask path positions
-
Expression to change mask path positions
Posted by Eric Goldstein on September 16, 2009 at 11:07 pmHi,
I want to use an expression to globally change all mask path positions in the x and y across a series of key frames. Any help would be appreciated.
Thanks,
Eric
Dan Ebberts replied 16 years, 8 months ago 3 Members · 3 Replies -
3 Replies
-
Eric Goldstein
September 16, 2009 at 11:26 pmHi, I tried this:
The manual says that expressions can’t be used directly to affect a mask path, but that mask path can be linked to other properties to affect it. So, I made a layer called Mask Repo 1 and pickwhipped the mask path of mask 1 to the position property of layer: Mask Repo 1. I was hoping then “to change the position on Mask Repo 1 to globally reposition the keyframes of Mask Path 1. But, I get an error message, which says: AE warning: “Object of type 1024 found wheer a Property is needed.”
This is the expression produced by pickwhipping the position property of Mask Repo 1: “thisComp.layer(“Mask Repo 1″).transform.position[0]”
Any thoughts?
Thanks,
Eric
thisComp.layer("Mask Repo 1").transform.position[0]Eric Goldstein
Giraffe Film Company
Los Angeles
eric@giraffefilm.com -
Xinlai Ni
September 16, 2009 at 11:40 pmI think you can only pickwhipping maskPath property to the same type, not a position type which is a vector of dim 2 or 3.
And by my understanding of AE’s manual, you can’t access any internal properties of maskPath numerically but you can
– pickwhipping to other maskPath, or
– copy your maskPath to a some position property to create a motion path -
Dan Ebberts
September 17, 2009 at 12:53 amYou can link a mask path to another mask path. That’s pretty much it.
Dan
Reply to this Discussion! Login or Sign Up