Is there a command to enable or disable fill (ie. the checkbox next to fill colour in UI)?

I’m working on updating my plugin that applies drop shadows to mask image groups. I realised that my plugin will not work if the user’s initial mask shape did not have the fill colour enabled. While I give the new shape a white fill, if that isn’t enabled, the drop shadow does not show.

Does anyone know how I can switch the fill colour on?

Thanks

Hi @jonenz,

I think the GraphicsNode::fillEnabled property (cf. https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#graphicnodefillenabled--boolean) might be what you’re looking for :wink:

Happy coding,
Pablo

2 Likes

That looks like it should do it. Thanks Pablo.

2 Likes