You are here

Python

GIMP scripting in Python.

Group offset

It's basically the same as Layer > Transform > Offset, except it works on layer groups.

grid-filler-random-color

A script to fill areas in a grid with random colors from a list or a gradient

The doc: http://gimp-tools.sourceforge.net/tools.shtml
The script: http://sourceforge.net/projects/gimp-tools/files/scripts/

The sample:

Enjoy.

Export Sublayers for Gimp 2.8

based on http://registry.gimp.org/node/26292, I added export for sublayers in gimp 2.8. I'm not a python programmer, so I'm happy when someone would code a more clean version, but it works anyway..

Show Layer Information

This small script shows some information related to the current selected layer. This info includes:

- The layer's name
- The layer dimensions (in pixels)
- The layer offset respect the origin of the whole image (in pixels)

You can go to View->Layer info menu option to show the layer information window. The window stays on top, so the user can switch between the different layers of the image to inspect their values easily.

Scale Layer to Image Size


GIMP 2.8 Python Plug-in.
This plug-in scales the contents of the layer (or layer group) to image size.

Installation Instructions:
1. Extract "scale-layer-to-image-size.py" from .zip archive to the ".../.gimp-2.x/plug-ins/" directory.
2. Make sure that the extracted file is executable.
3. If you are already running GIMP, close and reopen it.

Vector Path

This is a vector path generator script with a few modes and options. Visit Home Page for details and download.

Home page: www.bytes-and-pixels.com

Vector Path Plugin

Export layers (repeatable)

Export all (or only visible) layers as individual image files.
V.0.1 (20120513) - based on the plugin "Export Layers" version 0.5 by Chris Mohler.

Difference:

  • You can perform a task repeatedly, because the dialogue does not close after export finishing
  • You can choose either PNG or JPG file type (other types could be easily added)
  • You can merge the selected layers before exporting
  • You do not need to worry about the file name, because the script can automatically add a number to the filename

SpiroGraph

This a spirograph vector path generator. Two versions are available for Gimp 2.6 and 2.7/2.8.

 Details and Download at the home page.

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.

Pages

Subscribe to RSS - Python