7 hours ago
Hi all!
I'm building assets for an interactive comedy show using GIMP 3. I'm currently working on this ambulance:
![[Image: ambulance.webp]](https://foxdogstudios.com/static/peter/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]](https://foxdogstudios.com/static/peter/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.
I'm building assets for an interactive comedy show using GIMP 3. I'm currently working on this ambulance:
![[Image: ambulance.webp]](https://foxdogstudios.com/static/peter/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]](https://foxdogstudios.com/static/peter/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.