Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu Image Creation - Slight Issues
#5
(12-31-2022, 04:42 PM)programmer_ceds Wrote:
(12-31-2022, 04:21 PM)BaconWizard17 Wrote: 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?

At the moment the constant declaration LAYER_MODE_NORMAL is set to 28 but if that ever changed (perhaps another mode was inserted into the list before this one) you could spend a long time looking for the problem. Using LAYER_MODE_NORMAL all you have to worry about is the name changing (as it did recently from NORMAL_LAYER_MODE if I remember correctly) and that would be easy to sort.

Apart from that, reading LAYER_MODE_NORMAL conveys information - 28 doesn't tell you anything just by looking at it.

That makes sense. Thank you! I'll keep that in mind going forward
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:47 PM

Forum Jump: