It is currently Thu Apr 25, 2024 2:39 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Thu Apr 04, 2019 9:36 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Konstantin reminded in topic http://gimpchat.com/viewtopic.php?f=8&t=17344&sid=cf0b6885c0839c683d9c268342fe83c8#p238197
script-fu scale_pattern.scm (from 2009-04-13) by Rob Antonishen.

Description:
"Scales the selected pattern and puts it in the clipboard to allow it to be used as a pattern.
If larger than 512x512 will save it, refresh patterns, and set the active pattern to be the saved file."


Since I've been having a lot of fun with patterns lately, I've changed this script a bit:

- adaptation to Gimp 2.10,
- added Rotate (angle): 90°, 180°, 270° (attention: not all patterns on the 90° or 270° degree rotation will remain seamless),
- added Transform-flip (ORIENTATION HORIZONTAL/VERTICAL),
- add choosing your own criterion for writing to disk in: gimp-directory/patterns/scaledpat.pat (attention: next time you use it - pattern "scaledpat.pat" will be overwritten)


Attachments:
script-fu scale_pattern_210.png
script-fu scale_pattern_210.png [ 80.97 KiB | Viewed 5342 times ]
scale_pattern_Gimp-210.zip [2.04 KiB]
Downloaded 367 times

_________________
Image

Slava
Ukraini!
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: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Fri Apr 05, 2019 12:37 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks MareroQ! :)

_________________
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: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Fri Apr 05, 2019 3:53 pm  (#3) 
Offline
GimpChat Member

Joined: May 15, 2018
Posts: 28
The script creates a blurred pattern outside the selected area.
Then I reverse the selection and remove the shadow.

I didn't understand why this effect blurred.

Sorry, I take what I said about the script create a blur outside the selected area. I was wrong. :oops:

Thx MareroQ


Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sat Apr 06, 2019 10:59 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
I should do it right away :oops: : add a name field for save.
Now you can also quickly save the Clipboard Image (active layer in image and Ctr + C) as a pattern.


Attachments:
Scale-Rotate Your Name Pattern.png
Scale-Rotate Your Name Pattern.png [ 144.01 KiB | Viewed 5244 times ]
scale_name_pattern_Gimp-210.zip [2.05 KiB]
Downloaded 321 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sat Apr 06, 2019 4:21 pm  (#5) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Thank you so much for the conversion to 2.10 and the script improvements!


Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sat May 25, 2019 6:02 pm  (#6) 
Offline
New Member

Joined: May 25, 2019
Posts: 3
MareroQ,

Thank you so much for the update! The 'old' script, by RobA, stopped working when I moved from Windows 7 to Windows 10. Though I still use GIMP 2.8, your update works fine, though I have not tried the new features.


Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sat May 25, 2019 6:27 pm  (#7) 
Offline
New Member

Joined: May 25, 2019
Posts: 3
Since I've been having a lot of fun with patterns lately, I've changed this script a bit:

- adaptation to Gimp 2.10,
- added Rotate (angle): 90°, 180°, 270° (attention: not all patterns on the 90° or 270° degree rotation will remain seamless),
- added Transform-flip (ORIENTATION HORIZONTAL/VERTICAL),
- add choosing your own criterion for writing to disk in: gimp-directory/patterns/scaledpat.pat (attention: next time you use it - pattern "scaledpat.pat" will be overwritten)[/quote]

Does this require GIMP 2.10 for the new features to work? I am using
2.8 and the scale part works, but I see no options come up for rotation.
The dialogue box only has the slider for scaling. But, on right clicking the pattern, the initial dialogue box says "Scale-Rotate Pattern".

I have been holding off switching to 2.10 as I heard (Usenet NG) about issues with 2.10.

thanks for any pointers/advice


Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sat May 25, 2019 11:04 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Hi Tictocroc.

The modified script should work for Gimp from 2.8 to 2.10.
The reason for the problems (the most common) is the simultaneous use of the older version with the newer one
(they have the same registration procedure in the so-called PDB - but sometimes a different name/location in the Gimpa menu and different names of the scm file itself).

This is an opportunity to remind two perfect script:

Test for duplicate scripts by Kevin Payne "paynekj"
http://gimpchat.com/viewtopic.php?f=9&t=3057

JGimpOS - managing scripts by Onkel Hatti
http://gimpchat.com/viewtopic.php?f=4&t=6028

I use both when I install (lazy) many scripts at once or when there is a script error message.
Try to search and let know what the result is...

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Script-fu Scale Pattern by RobA for Gimp 2.10
PostPosted: Sun May 26, 2019 9:09 am  (#9) 
Offline
New Member

Joined: May 25, 2019
Posts: 3
[quote="MareroQ"]Hi Tictocroc.

The modified script should work for Gimp from 2.8 to 2.10.
The reason for the problems (the most common) is the simultaneous use of the older version with the newer one
(they have the same registration procedure in the so-called PDB - but sometimes a different name/location in the Gimpa menu and different names of the scm file itself).

Thanks!!!! And, right you are.

I normally keep these "enhancements" in my personal "user"/.gimp-2.8 directory.
That one did have the new script. But, the GIMP installation directory (in ProgramFiles)
had the old one. I deleted that and now things work just as advertised.

Thanks for pointing this out. In the future, I will check to see that there is no "duplication" going on. I did try using the plugin directory search under "Help", but I may not have been paying close attention to what it picked up.

Thanks again.


Top
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Warp & Scale a pattern

3

No new posts Distort and RobA's Chisel script

2

No new posts Attachment(s) Turing-like pattern script

31

No new posts Attachment(s) Colorful Pattern from Text (Text Pattern) Plug-in

32

No new posts Attachment(s) Scale image

6



* Login  



Powered by phpBB3 © phpBB Group