Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu Image Creation - Slight Issues
#3
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?

As for LAYER_MODE_NORMAL vs 28, is that not the same thing? I checked and it does the same with either, but I'm curious why one would be preferred over the other. Are the text equivalents always better for these types of variables?

Edit: I just realized that my old script didn't fill the image with white. It left the image transparent. I changed the layer type from RGB to RGBA.
Modder/Skinner at MarvelMods.com using GIMP to create, edit, and export textures and previews more efficiently.

My GIMP scripts hosted on GitHub
Reply


Messages In This Thread
RE: Python Fu Image Creation - Slight Issues - by BaconWizard17 - 12-31-2022, 04:21 PM

Forum Jump: