layer.bounds failure

I’m working on a copied layer and want make changes after getting its bounds. I assign the parent and can get the bounds values fine, but the rest of the code seems to stop (I cannot apply affineTransform or simply move the nodes). It seems that .bounds is silently failing. I can share the project if you need more specifics.

You need to set the parent of the layer to the original glyph. It needs it to access components and corners. I decided to require it even it it might not be needed as that would introduce very annoying behavior otherwise.

The parent is already set as mentioned, and the bounds value are all correct even with corners and components involved.

Sorry for not reading properly.
Do you mean that if you do something to the layer, the bounds do not change? Can you try calling layer.setNeedUpdateShapes(). It resets some caches. It should be called automatically when changed do occur, but maybe your setup prevents this.

That did the trick, thanks!