It is currently Fri Mar 29, 2024 9:03 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 240 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next
Author Message
 Post subject: path-inbetweener
PostPosted: Sat Jun 23, 2012 12:49 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
So, you start with two paths:
Attachment:
InBetweener-1.png
InBetweener-1.png [ 22.15 KiB | Viewed 8863 times ]


and you ask the script to generate N intermediate paths:
Attachment:
InBetweener-2.png
InBetweener-2.png [ 115.71 KiB | Viewed 8863 times ]


This script is meant as an automatic in-betweener when doing animation using paths, but there are other uses (the image above was obtained by merging the intermediate paths). You can obtain some some fun effects (for instance, moirés, by generating very dense intermediate paths and stroking them with sub-pixel widths). For the one below, I used the source paths to generate a selection and then applied a gaussian blur to obtain a 3D effect:
Attachment:
InBetweener-3.png
InBetweener-3.png [ 49.03 KiB | Viewed 8863 times ]


Script is here as usual: http://gimp-path-tools.sourceforge.net/index.shtml

I know you folks are very good at finding bugs, so have a go at it :)

_________________
Image


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: path-inbetweener
PostPosted: Sat Jun 23, 2012 1:27 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I really like that one, thank you

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 1:39 pm  (#3) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Wow that looks awesome - can't wait to see how the script is achieving this. I have a pet project where I need to draw concentric(?) tracks around a course for a horse racing (board!) game I'm working on - looks like this script will do the leg work. (Yes I know I should be using Inkscape for this!)


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 2:05 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7301
Location: Göteborg at last!
Another beauty - thank you.


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 3:47 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Now that looks way too cool offnuts; going to download it after I eat my pizza slices (late lunch; lol). :)

edit:

Slices eaten. lol

Biggest thing to figure out is that both paths had to have the exact number of points. May be an issue if you wanted completely different paths and have this plugin interpolate, but still, very cool indeed offnuts. Thanks a heap. :)


Attachments:
atest.png
atest.png [ 189.99 KiB | Viewed 8791 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 6:28 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I downloaded this path-inbetweener py plug-in and I can't find it anywhere. I even went to Help in Gimp/plug-in-browser and typed in path and it doesn't come up.
Yes I did check the permissions and opened and closed gimp a few times. Can someone please help me find this. I even opened up the plug-in file and read the whole script and I can't see where it is hidden.

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 6:47 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Open path dialoge and once you have your two paths (which must have identical number of points) you can right click on one of the paths and go to tools Molly and it will be there. :)


Attachments:
whereat.png
whereat.png [ 266.07 KiB | Viewed 8775 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 7:15 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
ok thank you Lyle, I was looking for what the plug-in said. No wonder I couldn't find it. Hasn't one of yours got 5 points and one 6?

Thanks, thanks.

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 7:21 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
lylejk wrote:
Biggest thing to figure out is that both paths had to have the exact number of points. May be an issue if you wanted completely different paths and have this plugin interpolate, but still, very cool indeed offnuts. Thanks a heap. :)

This is all explained in the doc at http://gimp-path-tools.sourceforge.net/

The restrictions are: same number of strokes, and strokes in a matching pair (matched by order in their respective path) should have the same number of points (and the same "closed" status).

The script acts only on the anchor points and their handles. In fact writing it was an educated bet that tangent handles could be interpolated the same way as the anchor points.

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 7:32 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Ofnuts. :)
I have not found any bugs as of yet.

_________________
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: path-inbetweener
PostPosted: Sat Jun 23, 2012 7:44 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
ofnuts wrote:
lylejk wrote:
Biggest thing to figure out is that both paths had to have the exact number of points. May be an issue if you wanted completely different paths and have this plugin interpolate, but still, very cool indeed offnuts. Thanks a heap. :)

This is all explained in the doc at http://gimp-path-tools.sourceforge.net/

The restrictions are: same number of strokes, and strokes in a matching pair (matched by order in their respective path) should have the same number of points (and the same "closed" status).

The script acts only on the anchor points and their handles. In fact writing it was an educated bet that tangent handles could be interpolated the same way as the anchor points.


I never read; I just do ofnuts so, seeing the error message told me all that I needed to know. lol

School of hardknocks for me as always. ;)

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 7:59 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks for the help Lyle, I don't seem to be able to figure it out so I will just delete it.

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 8:04 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
To get identical points, your best bet is to just dup the path and resize it (that's what I've been doing). You can also contort the duplicate path as well. Just click the path's option when you click the resizer or other contortion tools (note, GIMP's default is image for these tools, but you can also choose selection and path as well; only learned this trick not even a year ago so I still learn new things about GIMP nearly daily; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 8:07 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks Lyle, you are a doll. I will probably delete it anyway, It was a good idea what you said about duping it.

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 8:32 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Still having fun and again, thanks ofnuts. :)


Attachments:
coolstar.png
coolstar.png [ 290.15 KiB | Viewed 1839 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 8:42 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
And a variant. lol

:)


Attachments:
coolstar2.png
coolstar2.png [ 513.96 KiB | Viewed 1838 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: path-inbetweener
PostPosted: Sat Jun 23, 2012 9:53 pm  (#17) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
Interesting script. Thank you.

I did find a typo in the documentation:
"When working with closed strokes, some operations may change the starting point of the stroke. Cutting the stroke again between the required begin and end points and joining them again may fix it."

_________________
Image


Top
 Post subject: Re: path-inbetweener
PostPosted: Sun Jun 24, 2012 12:44 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Yet another test. :)


Attachments:
TEST.png
TEST.png [ 241.28 KiB | Viewed 1826 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: path-inbetweener
PostPosted: Sun Jun 24, 2012 5:52 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Mar 18, 2011
Posts: 283
Location: Lusaka, Zambia
Cool script!

But, I am using Gimp 2.8 and I can only access the script after I right-click the preview in the path tool dialogue (unlike right-clicking one of the two paths - as indicated by lylejk at comment #7). Even when I run the script i only get duplicated layers with same paths size.

Is it working with Gim 2.8?


Top
 Post subject: Re: path-inbetweener
PostPosted: Sun Jun 24, 2012 6:00 am  (#20) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
josephbupe wrote:
Cool script!

But, I am using Gimp 2.8 and I can only access the script after I right-click the preview in the path tool dialogue (unlike right-clicking one of the two paths - as indicated by lylejk at comment #7). Even when I run the script i only get duplicated layers with same paths size.

Is it working with Gim 2.8?

I don't know its 2.8 status, I am still on 2.6.

The script generates more paths, it doesn't add layers.

_________________
Image


Top
Post new topic Reply to topic  [ 240 posts ]  Go to page 1, 2, 3, 4, 5 ... 12  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3

No new posts Attachment(s) Path copy rotate shift plus + Path copy rotate shift walk Play

79

No new posts Attachment(s) Path

9

No new posts Attachment(s) Path animations

4

No new posts Attachment(s) ofn-text-path-selection

14



* Login  



Powered by phpBB3 © phpBB Group