Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu: Creating batch path loading and saving plugin.
#1
Hi, this is my first post and I hope it’s correctly written.

My ability to write scripts in Python Fu is very restricted, I have no other knowledge of “general” programing. I did adjust a .py plugin so that my workflow in GIMP 2.8.22 under windows 10 is a bit faster. It’s an automated version of “color to alpha”, name and function is “black to alpha”.

I would like to create a Plugin in Python Fu with interface: It should have PF_DIRNAME for the opening path, and one for the saving path.

Opening path should load all (.tga) files in the interface directory path folder and its subfolders. For each subfolder and its (.tga) files it needs to make .xcf and save this based on the name of the folder and then the subfolder in a selected saving path.

Example: folder name “Gimp” Subfolder name “01”= “Gimp01.xcf”, 
“Gimp01.xcf”, “Gimp02.xcf”, etc...

“Gimp01.xcf” needs to contain the (.tga) files from the subfolder and loads the lowest file number in the highest in layer.

Example: “image0000” and “image 0525” are in subfolder. “image0000” needs to be above “image0525” in the “Gimp01.xcf”

For each image per .xcf it needs to run “black to alpha”.

I hope this is possible with Python-Fu. And if I could get some guidance.

JeBe
Reply


Messages In This Thread
Python Fu: Creating batch path loading and saving plugin. - by JeBe - 10-31-2018, 12:30 PM

Forum Jump: