You are here

Python

GIMP scripting in Python.

Create Texture Atlas and Map (export layers and call Sprite Sheet Packer)

This plugin will export the layers in your image as png files, using slightly modified functions from Chris Mohler's Export Layers as PNG plugin, then run Sprite Sheet Packer on them to generate a texture atlas and corresponding map (text file).

Important: Sprite Sheet Packer is needed for this, as well as my Miyagi skin exporter. I have attached it here, but you can also download these binaries from this link.

Automatic backup of open images

Thanks to 'RobA' who discussed this topic here recently, the Python plug-in 'autosave.py' attracted my attention. My work inspired by it is included below.
What I think is new here from the three existing one, that I know. It has a configuration section and the possibility to stop it, so you can restart with a new purpose (configuration) or not.

Add/Remove Sprite Sheet Gutter, Padding, and Spacing

Takes a heavily-packed sprite sheet with no padding between sprites/tiles and adds padding or spacing. Can also create a "gutter" around seamless tiles, filling the padding with the tile's edge pixels, preventing seams from appearing when using the tile in a 3D rendering environment due to interpolation.

Can also remove padding/spacing from a sprite sheet.

--------------------------------
Update Version 1.1 (5/17/12):
- Script now supports non-opaque sprites
- Moved scripts to Filters > Sprite Sheets menu

Update Version 1.0:

Plug-in: ArrowsCreator.py

Another thin arrow GIMP Python plug-in called 'ArrowsCreator'.

It's characteristics are:

-produces many different types of straight arrows
-produces one type of 'path' arrow
-facilitates combination of multiple arrows
-interactive with GIMP
-developed on GIMP 2.6 (work on 2.8 except no repeat gradient in shaft and GIMP don't control brush size).

ATTENTION: don't change layer during execution of the plug-in. Also on my computer begin to get sluggish for certain type of arrow in image greater than 7 Mpx.

GIMP Book

GIMP Book is a script for managing multiple pages in the GIMP, it's great for creating comic books, illustrated books, sketch books or similar. It opens a separete window with thumbnails of all your pages, where you can add, delete, sort and rename them. Once you're done you can export your book to various formats, for web or print.

Add outline to layer

This simple script adds a outline to the selected layer.

path-csv: import/export paths from/to CSV files

For the script-fu/python-fu-challenged but spreadsheet mavens, a little piece of code that lets you export/import paths from your favorite spreadsheet programs, when the path you want to create can be computed, for instance to create this:

Available in my collection of path-related scripts. Please RTFM, there are some quirks.

Export Layers as PDF

I'm tired of building a PDF from layers manually so I finally got around to scripting it. This requires "convert" from ImageMagick to be installed. It has been tested on Linux(Ubuntu).

MD modeller

This program is designed to demonstrate clothes modeling process using the same basic model and set of details. it was created for demonstration purposes.
It is intended for a cloth designer who can select the details from the set and get the image of the blouse.
It demonstrates how the different details can be combined and how the result would look like.

This is Python script which should be started from the Python-fu console of the GIMP and has a graphical interface written on Qt.
it is intended for Linux and tested on
openSUSE 11.4, gimp 2.6.11, Python 2.7, Qt 4.7.1

Print layer

What can make the plug-in "print layers":

Print all the layer at one time.
Print all layer in PDF format.
Use "print layer" to easily create PDF files with GIMP.

With this script is easy to create PDF file with GIMP.
Install and set as the default printer PDFCreator to save all layers on a single or multiple PDF file.

Tutorial: xoomer.alice.it/lwcon/gimp/python/print-layer.htm

Author web site: xoomer.alice.it/lwcon/gimp/python/print-layer.htm

Pages

Subscribe to RSS - Python