-
Create 2-point angled path with expression
Hi,
I’m trying to use the createPath expression to create a two-point path that slants forward (like a forward slash “/”) 20 degrees exactly. I then would use the Pucker and Bloat attribute to increase and decrease the path accordingly.
My current expression is:
x = Math.cos(degreesToRadians(290));
y = Math.sin(degreesToRadians(290));
createPath(points = [[-0,0],[x,y]], inTangents = [], outTangents = [], is_closed = false)It looks to work but when comparing it to a yellow rectangle shape layer transform rotated 20 degrees in follows a ever so slightly different path. See image.
Any thoughts? Thanks a lot.
x = Math.cos(degreesToRadians(290));
y = Math.sin(degreesToRadians(290));
createPath(points = [[-0,0],[x,y]], inTangents = [], outTangents = [], is_closed = false)
