i need this function to write a script. i guess i saw it somewhere before(maybe i’m wrong) but i couldn’t find it.
First, get the complete path of the layer:
outline = Layer.completeBezierPath
point = (50, 250) if outline.containsPoint_(point): # do something
thank you @FlorianPircher :))