• [Help] Path Expression transform

# [Help] Path Expression transform

Community Beginner ,
Jun 17, 2022 Jun 17, 2022

Copied

I want to make a mask that references a path elsewhere.
But after I whip linked it, the position of the mask is off.
I tried to use expression to move the points of the mask path, except I cant find the proper function to do that.
Im new and self taught, help.

TOPICS
Expressions

Views

40

Likes

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Adobe Community Professional , Jun 17, 2022 Jun 17, 2022

Shape layers can be weird as they have two sets of coordinates (sort of).  There's the corrdinates of the shape layer itself, then each shape in a layer has its own transform points.  That's my guess as to why the position is not aligned.

The challenge you've sound interesting, but it might be there's an easier way to tackle it.  I'm guessing again, but are you trying to use a mask to only show part of a layer?  Track Mattes might be a simpler approach.  You can use the shape layer to cut out

...

Likes

2 Replies 2
Jun 17, 2022 Jun 17, 2022

Copied

Shape layers can be weird as they have two sets of coordinates (sort of).  There's the corrdinates of the shape layer itself, then each shape in a layer has its own transform points.  That's my guess as to why the position is not aligned.

The challenge you've sound interesting, but it might be there's an easier way to tackle it.  I'm guessing again, but are you trying to use a mask to only show part of a layer?  Track Mattes might be a simpler approach.  You can use the shape layer to cut out the section of a layer below.

Likes

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Beginner ,
Jun 17, 2022 Jun 17, 2022

Copied

LATEST

Yea, I worked around the issue with Mattes.
For those who are interested, my later experimentations in using expressions worked when I modified to this:

//transform
offsetX=thisComp.layer("Controller").effect("Slider Control")("Slider");
offsetY=thisComp.layer("Controller").effect("Slider Control 2")("Slider");
value=value+[offsetX,offsetY];
}

//create path