Question about "procedure.set_image_types" in Python programming

I would like to write Python plugin that is always enabled even if no image is loaded.

In 2.10, I can write such plugin setting “” as image types in register. However, in 3.0, I set “” as image types in procedure.set_image_types, but my plugin is grayed out in GIMP menu and only when any images are loaded, it is enabled.
What parameter should I use in procedure.set_image_types to always enable my plugin?

What you want isn’t set_image_types(...) but set_sensitivity_mask(Gimp.ProcedureSensitivityMask.ALWAYS).

1 Like

Thank you very much! It works.