It is currently Tue May 07, 2024 9:49 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Cloning and transforming selections
PostPosted: Tue Jan 06, 2015 10:54 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2014
Posts: 105
Location: Cologne, Germany
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 7
GIMP Experience: Basic Level



Hello,

I have a rectangle I would like to duplicate several times on a layer, each copy should be aligned x pixels right to the last copy.
To clarify ("*" is the rectangle here): I have "*" and want to produce "**********".

Looking at Adobe Illustrator, there is a wonderful transform tool where you can say "duplicate selection 50 times, align each new copy x pixels right to the last one".
I am missing this in GIMP. Google just helped out with the selection and clone tool in GIMP, but that does not seem to do the trick.

Any hints how this can be achieved easily?

Regards,
Dietmar


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 12:10 am  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I suggest you look at Multi-Replicate, this is a surprisingly powerful script
download available from here at GimpScripts multi-replicate

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 12:25 am  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Unfortunately, GIMP does not provide a very easy means of duplicating things with an offset. I am sure there are third-party scripts that simplify this but I leave that to others to point out. What GIMP does have is the Align Tool ( :alntool ) -- but it requires just a bit of extra effort to get it to do what you wish.

First, create (or paste) the shape that you wish to copy on its own layer. I used a blue star (instead of a rectangle) in the following example. Then perform a "Layer->Autocrop Layer" on your shape layer.

Attachment:
distrib-1.png
distrib-1.png [ 5 KiB | Viewed 6620 times ]


Duplicate your shape layer to create a new one for every copy (I duplicated the star layer six times to create seven copies) and then hide the topmost shape layer.

Attachment:
distrib-2.png
distrib-2.png [ 8.43 KiB | Viewed 6620 times ]


Double-click the Align Tool icon ( :alntool ) in the Toolbox to raise its Tool Options dialog. Change the Relative to: drop-down to "Active layer" and the Offset: to your desired distance separating the objects.

Attachment:
distrib-3.png
distrib-3.png [ 10.32 KiB | Viewed 6620 times ]


In the image window, draw a rectangle around your shape layer with your mouse, then click on the Distribute Right :alnright button in the Distribute section of the Tool Options dialog.

Image

All of the visible shape layers should be offset by the appropriate amount (and your hidden layers will not be moved, which is why you hid the top layer).
Unhide the hidden shape layer and, if desired, merge all the shape layers into a single layer.
Image

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 1:46 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I think ofnuts has a plug-in(s) something like that. I can't remember the name(s) but I think there are two similar scripts.

[edit] Sorry I can't find it.

As mentioned, Multi-Replicate is a good and CloneLayer Tool is worth a look as well.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 3:21 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Odinbc wrote:
I think ofnuts has a plug-in(s) something like that. I can't remember the name(s) but I think there are two similar scripts.


For scripts not involved in paths the downloads are here. But I don't think I have anything for the problem at hand.

Otherwise I would use the Align tool as indicated above or perhaps copy the object to the clipboard (with transparent bits at the right places) and use it as a brush or even a pattern for a pattern fill.

_________________
Image


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 7:56 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2425
There is another plug-in arakne-follow-path
http://www.arakne.es/en/dessign/gimp-pl ... oordinate/

dialog looks like this
Image


result like this
Image

_________________
Image


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Wed Jan 07, 2015 11:11 am  (#7) 
Offline
GimpChat Member

Joined: Jun 19, 2014
Posts: 81
Location: STRATFORD,CT USA
dietmar - have tryed to see if Inkscape has that tool. if you say Adobe Illustrator has it then download Inkscape its the samething as Adobe Illustrator but free. Good luck. CT-Gimper101


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Fri Jan 09, 2015 12:09 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2014
Posts: 105
Location: Cologne, Germany
Hi,

thank you very much for this valuable help!

Dietmar

_________________
Graphics: GIMP 2.8.14 on Win7 64Bit
Screenshots: GreenShot
Color Picker: PicPick
Palette Helper: paletton.com


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Fri Jan 09, 2015 1:24 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
CT-Gimper101 wrote:
dietmar - have tryed to see if Inkscape has that tool. if you say Adobe Illustrator has it then download Inkscape its the samething as Adobe Illustrator but free. Good luck. CT-Gimper101



Inkscape does have a tool for that in Edit>Clone>Create Tiled Clones, but it is
so different from AI's Transform tool, and I personally don't like it.
Nevertheless, it works fine once you have figured out what it does and how.


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Fri Jan 09, 2015 2:01 am  (#10) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13033
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Is what you're trying to do related in any way to the speedometer thing you're doing?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Fri Jan 09, 2015 4:35 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2014
Posts: 105
Location: Cologne, Germany
Wallace wrote:
Is what you're trying to do related in any way to the speedometer thing you're doing?


No.

It's another project ;-)
I am trying to do
http://www.vectordiary.com/illustrator/ ... -tutorial/
with GIMP...

Dietmar


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Sat Jan 10, 2015 4:33 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2014
Posts: 105
Location: Cologne, Germany
The script just worked great, see here the result...


Attachments:
keyboard2.png
keyboard2.png [ 2.78 KiB | Viewed 1224 times ]
Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Sat Jan 10, 2015 1:00 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Excellent result dietmar.
Which script did you use Multi-Replicate or arakne-follow-path?

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Sat Jan 10, 2015 3:04 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2014
Posts: 105
Location: Cologne, Germany
multi replicate...

It seems I am too silly to find the installed arkne-followpath in my Gimp installation :/

Dietmar

_________________
Graphics: GIMP 2.8.14 on Win7 64Bit
Screenshots: GreenShot
Color Picker: PicPick
Palette Helper: paletton.com


Top
 Post subject: Re: Cloning and transforming selections
PostPosted: Sat Jan 10, 2015 9:21 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
dietmar wrote:
multi replicate...

It seems I am too silly to find the installed arkne-followpath in my Gimp installation :/

Dietmar

It is in the paths tab. Right click the path >Tools>Follow Path.
I used multi replicate at 20 rectangles and 100 for x placement and got good results also with a default 640x400 image 15x98 size rectangle. Also had to stroke by 1 pixel the original rectangle.
Image

Results
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Need Help with using the cloning tool

3



* Login  



Powered by phpBB3 © phpBB Group