Only with Shape layer !
Similar to the Texture Coordinate
but in 2D, this mask applies the modification according to the geometry of the shape.
Consider a shape as a path. At the beginning of the path, the masked modifier will have a different value than at the end of the path.
There is different way to follow a shape like a path:
Note that this mask will treat differently multiple shapes inside a Group of shapes according to their Merger
Along Edge global
Distance to Edge
The modifier will follow the shape from its first point its last one.
Distance to edge
The path is defined from the center of the shape to its Edges
Follow the shape through X
Follow the shape through Y
Useful in the case you have multiple shapes insides a Group of shapes
. The modifiers will be applied depending the position of the shape inside the element tree.