Script-fu – Switch layers’ visibility according to the selected pattern
About this
A GIMP Script-fu to create a series of partially different images.
You can easily create images with different expressions of face, different colors of clothing.
By specifying integer pattern IDs in the names of the layers, you can switch the visibility of layers at once according to the pattern.
Download
Environment
GIMP for Windows 2.6
How to install
Put the downloaded file into folder “scripts” of GIMP’s personal setting folder(“C:\Users\Your name.gimp-2.6” for Windows Vista, 7 and GIMP 2.6).
How to use
First, specify the pattern IDs to make the layer visible layer by layer.
To specify the patterns, Specify integers separated by comma after colon in the layer name.
パターンIDの指定方法は、レイヤー名においてコロンに続いて整数をカンマ区切りで指定します。
To specify continuous pattern IDs, connect integers with hyphen. (Don’t put a whitespace.)
For example, if the layer’s name is “Layer One:1-3,5,10”, this layer is visible when the pattern ID is 1,2,3,5, and 10.
Next, Select from the main menu “Layer->Switch Layer by Pattern”.
Specify the pattern ID and the image in the dialog. Pattern IDs 0 to 99 is available.
Click “OK” Button and the displayed layers’ changes according to the pattern ID. The visibility of the layers with no pattern ID specified does not change.
For example, the layers’ name is specified below. Please don’t think the contents of each layer.
- Swimware:1,4
- Clothes:0,3
- Sunburn:3-5
- Skin:0-5
- Background
In this case, you can switch the 6 patterns shown below.
- Pattern 0: With clothes, Without sunburn, With background
- Pattern 1: With swimware, Without sunburn, With background
- Pattern 2: Naked, Without sunburn, With background
- Pattern 3: With clothes, With sunburn, With background
- Pattern 4: With swimware, With sunburn, With background
- Pattern 5: Naked, With sunburn, With background
Copyright © 2009-2017 recyclebin5385 All rights reserved.
Generated by webgen