Gimp.Procedure.set_sensitivity_mask
@accepts(Gimp.Procedure, int)
@returns(none)
def set_sensitivity_mask(self, sensitivity_mask):
# Python wrapper for gimp_procedure_set_sensitivity_mask()
Sets the case when self is supposed to be sensitive or not. Note that it will be used by the core to determine whether to show a procedure as sensitive (hence forbid running it otherwise), yet it will not forbid thid-party plug-ins for instance to run manually your registered procedure. Therefore you should still handle non-supported cases appropriately by returning with Gimp.PDBStatusType.execution_error and a suitable error message.
Similarly third-party plug-ins should verify they are allowed to call a procedure with [method@Procedure.get_sensitivity_mask] when running with dynamic contents.
Note that by default, a procedure works on an image with a single drawable selected. Hence not setting the mask, setting it with 0 or setting it with a mask of Gimp.ProcedureSensitivityMask.drawable only are equivalent.
Since 3.0
- self
- sensitivity_mask
A binary mask of Gimp.ProcedureSensitivityMask.