-
createPath and pixel ratios
Hello all. I’m teaching myself how to use the createPath expression. As my first test I’m trying to create an X that auto conforms to the size of the comp. It wasn’t that hard, with two shape paths using a script. The first shape script looks like this, and the second path uses the opposite corners:
w = thisComp.width;
h = thisComp.height;createPath(points = [[0,0], [w,h]], inTangents = [], outTangents = [], isClosed = false)
However, I get an issue when I have a comp that doesn’t have a square pixel ratio, where it doesn’t calculate the ends of the lines at the corners of the comp. Is there a way for the expression to determine pixel aspect and make the appropriate corrections?