-
tentacle made with createPath(points
hello everyone,
i’m learning how to make a shape with the createPath(points expression to make an octopuss tentacle drive by another path
i made my driver path with only 3 points beginning, middle and end, and i created another shape layer, where i parents my tentacle path to my driver path ( hope i’m not loosing everyone : p) my goal is that a tentacle is made from my driver path, that is thicker at the base and narrower at the top.
so my expression is :
thickness = 100
path = thisComp.layer("Driver").content("Tracé 1").path
pList = [
path.pointOnPath(0) + (path.normalOnPath(0)*thickness),
path.pointOnPath(0.2) + (path.normalOnPath(0.2)*(thickness*.8)),
path.pointOnPath(0.4) + (path.normalOnPath(0.4)*(thickness*.6)),
path.pointOnPath(0.6) + (path.normalOnPath(0.6)*(thickness*.4)),
path.pointOnPath(0.8) + (path.normalOnPath(0.8)*(thickness*.2)),
path.pointOnPath(1),
path.pointOnPath(0.8) + (path.normalOnPath(0.2)*(thickness*-.2)),
path.pointOnPath(0.6) + (path.normalOnPath(0.4)*(thickness*-.4)),
path.pointOnPath(0.4) + (path.normalOnPath(0.6)*(thickness*-.6)),
path.pointOnPath(0.2) + (path.normalOnPath(0.8)*(thickness*-.8)),
path.pointOnPath(0) + (path.normalOnPath(0)*-(thickness),
]createPath(points = pList, inTangents = [], outTangents = [], is_closed = true)
but i have an error saying :
error on line 15
] has no value..I’m sure i missed something on my tutorial but can’t see what so i come for help and advice to better understand my mistake, thanks a lot.