Copy link to clipboard
Copied
Trying to achieve this:
thisMaskPath = thisComp.layer("LayerName").mask("Mask 1").points()[0][0].valueAtTime(0);
//or
thisMaskPath = thisComp.layer("LayerName").mask("Mask 1").points()[0].valueAtTime(0);
//or
thisMaskPath = thisComp.layer("LayerName").mask("Mask 1").points().valueAtTime(0);
All the above throw an error
The following:
thisMaskPath = thisComp.layer("LayerName").mask("Mask 1").valueAtTime(0);
returns an object, but then the following throw errors
thisMaskpath.points()[0][0];
thisMaskpath.points()[0];
thisMaskpath.points();
points() takes time as a parameter. Like:
p = thisMaskPath.points(0);
Copy link to clipboard
Copied
Masks never worked with valueAtTime() due to their compound keyframes. You may need to create Null objects to control the points and mangle those with expressions rather than the mask itself.
Mylenium
Copy link to clipboard
Copied
points() takes time as a parameter. Like:
p = thisMaskPath.points(0);
Copy link to clipboard
Copied
Thanks Dan. Brilliant.... as always.