[Gimp-user] Anyway to add multiple Guides at once
D.Jones (aka) Capnhud
capnhud at yahoo.com
Fri May 29 00:31:39 PDT 2009
-
, DJ wrote:
>
> Didn't see it in the manual, but was wondering if there is a
> short-cut to adding multiple Guides at once (ie., a comma-separated list)?
It seems difficult to imagine anything faster than the Gimp-python
console for this:
image = gimp.image_list()[0] # get the latest loaded image
for y in (10,20,60,80, 120, 140, 260, 280):
pdb.gimp_image_add_vguide (image, y)
It should be possible to make a Script-Fu which accepts a list of
coordinates (space separated) and does something similar to the loop
above.
However, I don't know how; I only know how to implement that in Python:
# assuming 'coords' is the string parameter containing space-separated
coordinates
realcoords = [int(v) for v in coords.split()]
for y in realcoords:
pdb.gimp_image_add_vguide (image, y)
Adding an option to choose between adding h and v guides should also be easy.
David
There is a gimp plugin called multiple guides (python) and appears to be in german but it will allow you to add multiple guides. I tried to access the link but it seems that gimpl plugin registry is down at the moment.
------------------------------
More information about the Gimp-user
mailing list