It is currently Sat May 04, 2024 8:36 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:16 am  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

File > Create > Patterns > Pursuit Curve ...

Each polygon is saved as a path.

The script-fu "Pursuit_Curve.scm" is in the archive "Pursuit_Curve_Version-3.zip".

Edit 20130527 : Version 5 - More options for filling polygons.
Edit 20130527 : Version 4 - New option : Fill polygons gray / Remplir polygones de gris
Edit 20130526 : Version 3 - Ajouts : Types B , C , Inversion A , Inversion C | Tangency / Tangence
Edit 20130525 : Version 2 - Changes on the advice of Saulgoode and add "Variation forme polygone".


Attachments:
Pursuit_Curve-Version-5.zip [4.96 KiB]
Downloaded 154 times
Pursuit_Curve.gif
Pursuit_Curve.gif [ 394.98 KiB | Viewed 2096 times ]
Pursuit_Curve.png
Pursuit_Curve.png [ 8.65 KiB | Viewed 2096 times ]


Last edited by samj on Tue May 28, 2013 6:28 am, edited 6 times in total.
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: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:20 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7309
Location: Göteborg at last!
That looks really cool samj. Are your scripts only for 2.8 or will they work in 2.6?


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:20 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
samj: :wow thanks, samj! this one looks really fun!

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:40 am  (#4) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
If I might offer a couple of suggestions, though nothing of critical importance.

When you are creating a new image, I'd recommend using 'gimp-undo-disable/enable' rather than 'gimp-undo-group-start/end'. There is never any need to undo things with a brand new image; it just takes you back to a completely useless, empty image. The individual steps in an undo group also use up steps/memory allocated to the undo history, potentially causing GIMP to forget undo steps from other images that are open.

Also, 'gimp-context-push' should save all of the settings that you are currently storing in temporary variables (e.g., 'old_context-antialias'). All of the original settings can then be restored with a single call to 'gimp-context-pop'.

Finally, you might consider using 'script-fu-menu-register' instead of specifying the menu path in 'script-fu-register' (a methodology which has been deprecated).

For example, instead of:
(script-fu-register "Pursuit_Curve_samj"
                    _"<Image>/File/Create/Patterns/Pursuit Curve ..."
                    :
                    :
                    :

use:
(script-fu-register "Pursuit_Curve_samj"
                    _"Pursuit Curve ..."
                    :
                    :
                    : )
(script-fu-menu-register "Pursuit_Curve_samj"
                    _"<Image>/File/Create/Patterns"

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:46 am  (#5) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin AnMal, Saulgoode

@Erisian
This script is for Gimp 2.8


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 7:55 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks, SamJ!
My first play..
Attachment:
Just_a_trial.png
Just_a_trial.png [ 28.07 KiB | Viewed 2060 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 8:59 am  (#7) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:bigthup Dinasset

*****
Changes in the script-fu Version 2 on the advice of Saulgoode and add "Variation forme polygone".

The script-fu is in the archive "Pursuit_Curve_Version-2.zip"


Attachments:
version2.png
version2.png [ 49.64 KiB | Viewed 2041 times ]
Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 5:52 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Another great path script Sam. :)
Thanks.

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 subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sat May 25, 2013 6:44 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
dinasset: great results! i've only got as far as installing it yet, but i'll be back...

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Sun May 26, 2013 12:03 pm  (#10) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin All

Version 3 now available :
+ Types B , C , Inversion A , Inversion C
+ Tangency / Tangence


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 5:28 am  (#11) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

New version 4 : New option "Fill polygons gray / Remplir polygones de gris".


Attachments:
version4.png
version4.png [ 408.71 KiB | Viewed 883 times ]
Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 5:44 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7722
Location: On the other side of this screen
Looks really good samj. Thank you again.

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 6:40 am  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7722
Location: On the other side of this screen
Took me awhile to find the location - finally figured out why I couldn't find it. Hadn't restarted my gimp. (oops). Then I had another while to work it out but finally came up with this. Haven't tried adding colours yet.
Image

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 6:52 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7722
Location: On the other side of this screen
Last one for the night - to get it in my brain how it works ;) Thanks again Samj

Image

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 7:33 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
looks almost like a spider web in the sunlight!


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 7:52 pm  (#16) 
sallyanne wrote:
Took me awhile to find the location - finally figured out why I couldn't find it. Hadn't restarted my gimp. (oops).

Hi Sallyanne,
Just a hint, if you copy new '.scm' scripts into your gimp, you only need to 'refresh' the scripts rather than exit and re-start gimp. :)
Use Filters->Script-Fu->Refresh Scripts


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 11:17 pm  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7722
Location: On the other side of this screen
Thanks FB, will have to remember that.

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Mon May 27, 2013 11:27 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
sallyanne: nice job on those! i really like the one where you added the supernova.

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Tue May 28, 2013 1:45 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7722
Location: On the other side of this screen
Two more
Image
After colouring this with two gradients I added a flower to the centre and then a 6 sided polygon to the centre of that.
Image
Coloured the same then added a swirl on top.

_________________


Top
 Post subject: Re: New Script-Fu "Pursuit_Curve.scm"
PostPosted: Tue May 28, 2013 2:07 am  (#20) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Wow, Sallyanne. That top one really has depth.

When I stare at the center, it starts moving and I feel like I've been hip-mo-tized. :shock:

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Script-fu Curve Bend

4

No new posts Plugin or Script to bend/curve text

17

No new posts Attachment(s) Curve Bend (warping text)

6

No new posts Attachment(s) Shift-Click lines to curve.

9

No new posts Attachment(s) Double Curve Bend using paths/vectors

6



* Login  



Powered by phpBB3 © phpBB Group