def query(): param = Gimp.ParamDef() param.type = Gimp.PDBArgType.INT32 param.name = "run-mode" param.description = _("Run mode") retval = Gimp.ParamDef() retval.type = Gimp.PDBArgType.STRING retval.name = "new-gradient" retval.description = _("Result") Gimp.install_procedure( "python-fu-palette-to-gradient-repeating", N_("Create a repeating gradient using colors from the palette"), "Create a new repeating gradient using colors from the palette.", "Carol Spears, reproduced from previous work by Adrian Likins and Jeff Trefftz", "Carol Spears", "2006", N_("Palette to _Repeating Gradient"), "", Gimp.PDBProcType.PLUGIN, [param], [retval]) Gimp.plugin_menu_register("python-fu-palette-to-gradient-repeating", "<Palettes>") Gimp.install_procedure( "python-fu-palette-to-gradient", N_("Create a gradient using colors from the palette"), "Create a new gradient using colors from the palette.", "Carol Spears, reproduced from previous work by Adrian Likins and Jeff Trefftz", "Carol Spears", "2006", N_("Palette to _Gradient"), "", Gimp.PDBProcType.PLUGIN, [param], [retval]) Gimp.plugin_menu_register("python-fu-palette-to-gradient", "<Palettes>") Gimp.plugin_domain_register("gimp30-python", Gimp.locale_directory())
def query(): param = Gimp.ParamDef() param.type = Gimp.PDBArgType.INT32 param.name = "run-mode" param.description = _("Run mode") Gimp.install_procedure(PROC_NAME, N_("Interactive GIMP Python interpreter"), "Type in commands and see results", "James Henstridge", "James Henstridge", "1997-1999", N_("_Console"), "", Gimp.PDBProcType.PLUGIN, [param], []) Gimp.plugin_menu_register(PROC_NAME, "<Image>/Filters/Languages/Python-Fu") Gimp.plugin_domain_register("gimp30-python", Gimp.locale_directory())