Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automating complex export
#1
Hi all!

I'm building assets for an interactive comedy show using GIMP 3. I'm currently working on this ambulance:

[Image: ambulance.webp]
It's split into many layers and different combinations of them create the different assets for the show. E.g., here's the ambulance background asset:
[Image: ambulance-2.webp]
I'm looking to automate the export. Ideally, I'd write a Python script something like this (I completely made up the API but you get the idea):

img.hide_all_layers()
img.show_layer('foo')
img.show_layer('bar')
img.export('ambulance-bar.webp', region=img.get_layer('bar').region)

Is something like that possible? Has anyone got any pointers?

Thanks,


Pete.
Reply


Forum Jump: