Created
February 1, 2021 13:30
When applied to a path property, it recreates the existing path on the top left side of the screen and keeps it there no matter your layer transforms.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
srcPath = thisProperty; | |
newPnts = []; | |
newITs = []; | |
newOTs = []; | |
for (i = 0; i < srcPath.points().length; i++) { | |
thisPoint = srcPath.points()[i]; | |
thisIT = srcPath.inTangents()[i]; | |
thisOT = srcPath.outTangents()[i]; | |
newPnts.push(thisLayer.fromComp(thisPoint)); | |
newITs.push(thisLayer.fromCompVec(thisIT)); | |
newOTs.push(thisLayer.fromCompVec(thisOT)); | |
} | |
createPath(points = newPnts, inTangents = newITs, outTangents = newOTs, isClosed = false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment