Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu Image Creation - Slight Issues
#6
(12-31-2022, 04:21 PM)BaconWizard17 Wrote: If I remove the image and layer inputs from the function, I get the following error when running the script:
Quote:TypeError: multiSkinPreviewAny() takes
exactly 2 arguments (4 given)

I think I read somewhere that python scripts automatically assigns an image and layer variable or something along those lines. I don't need the image and layer as inputs to the function because I'm creating a new image, but I can't get it to work without those there. What's the best way to fix that?

Did you restart Gimp so that it re-scans the plugins. What is the definition like in the pluginrc file?

AFAIK, if the first arguments in the registration are an image and optionally a layer(*) (in that order) when when the plugin is called, the code that auto-generates the plugin considers that these are implicitly the current image and layer, and doesn't generate widgets to select them in the dialog. In some conditions,  you can see them  in the dialog (from memory when re-executing the scripts, perhaps if the original layer has disappeared).
Reply


Messages In This Thread
RE: Python Fu Image Creation - Slight Issues - by Ofnuts - 12-31-2022, 06:12 PM

Forum Jump: