Hi, Dan! Thanks for your reply!
The code seems to act like the one I pasted here. The opacity still reacts to the anchorpoint of “haka1” but not the shape.
Some more info. I’m having a 4K 16:9 composition and the master layer I’m moving is a shape of ^. I’d like to have small squares (like big pixels) to change opacity depending on how close they are to that shape path. That means I also want the code to ignore the bounding box. Only to affect the shape of the layer.
Did I do something wrong?