Language: en | ja

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

switch-layer.scm

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.

In this case, you can switch the 6 patterns shown below.


Copyright © 2009-2017 recyclebin5385 All rights reserved.
Generated by webgen