It is currently Mon Apr 15, 2024 8:19 am


All times are UTC - 5 hours [ DST ]


Switch to mobile style

Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 7:44 pm  (#1) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
I love the many many ways we can accomplish things in GIMP via scripts. This script just adds another dimension to the many ways we can create brick walls.

http://registry.gimp.org/node/25090

I created a grid in Filters - Render - Patterns - Grid equally dividing a 480 x 480px image into 50 blocks. 96px wide by 48px high, using a medium gray grid color on white background.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


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: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 8:15 pm  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
I love your medieval bricks, mahvin. I'm not having much luck though. So you had to start with a layer of blocks? I read the comments at the script site.

Did you make your stack of blocks?

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 8:39 pm  (#3) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
Not a bad result:

Image


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 8:40 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I just grabbed it before coming here. Nice addition to the other scripts for wall designing.
Can this script be used to offset any object on the drawable?

_________________
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 subject: Re: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 8:42 pm  (#5) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
Rod wrote:
I just grabbed it before coming here. Nice addition to the other scripts for wall designing.
Can this script be used to offset any object on the drawable?


The input parameters are rather limited. Length and Width of block and Offset in pixels ... perhaps it could be expanded in capabilities by someone smarter than myself ... :)


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 9:23 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Could be a good start to the 2 pixel puzzle.I know Mahvin showed the best way with curves, but there has to be a way to select a stroked 3 pixel path and delete some of it's width.Even a squiggly line . polygon, or circle.
I know much of this can be done with select/shrink and select/grow, but not by .5 lowest is 1 pixel.
If a script could be developed to offset by .5 (half a pixel) and up to that objects size, that would be awesome.
Then you could select the path, shrink ,grow, or offset by .5 and either delete,fill, or grow.
A lot of possibilities for a script like that. :)
Also it would be nice to be able to offset the size inward, outward, or both.

Is it possible to scale an object down with the scale tool by 1 pixel or .5? I haven't really ever tried.

_________________
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 subject: Re: Froggy's Offset Script
PostPosted: Sat Feb 26, 2011 9:28 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
O:

Open a square drawing (480 x 480 px)

Go to Filters - Render - Patterns - Grid:
Image

Then run Froggy's script: set the parameters:
Image

Then its all additional layer modes, and patterns, and bump mapping from that point.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sun Feb 27, 2011 12:42 am  (#8) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
It's a byob script so I brought my blocks to it.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sun Feb 27, 2011 1:17 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Did you use the script to get the bricks?

I found that the new G'MIC Light Glow feature really has the ability to add depth to an image, in the weirdest of ways. Throw a black and white brick pattern into G'MIC, and on Light glow, set layer to grain merge, and lower the density and amplitude settings, turn Opacity all the way up. Blur the result lightly. (3px?)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sun Feb 27, 2011 3:04 am  (#10) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Yes, used the script to make the bricks offset. They were just plain blocks before using the script.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sun Feb 27, 2011 8:20 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
The script is OK, but you can do just the same with a displacement map made of horizontal black & write stripes that are the height of the bricks? And if you blur it a bit you can even shear the joints?
Attachment:
Brickwall.xcf [3.42 MiB]
Downloaded 135 times

_________________
Image


Top
 Post subject: Re: Froggy's Offset Script
PostPosted: Sun Feb 27, 2011 8:38 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes but what fun is that :lol
When you can run a script and play with all the settings.

_________________
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  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) S640 pen cursor offset with brush

0

No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) Cannot run test script-fu script via console

7

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3

No new posts Attachment(s) Script-fu

6



* Login  



Powered by phpBB3 © phpBB Group