It is currently Fri Mar 29, 2024 8:50 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need help with gimp-edit-stroke
PostPosted: Thu Mar 05, 2015 11:02 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Aug 26, 2013
Posts: 11
Location: Argentina
Hi everyone, I'm writting a python-fu script and I have a problem using the gimp_edit_stroke procedure.
This is the situation, I have an a selection and want to stroke the selection using the Ink tool.
So for do that I did this (assuming I have a drawable with a selection made):
pdb.gimp_context_set_paint_method('gimp-ink')
pdb.gimp_edit_stroke(drawable)

The result is my stroked selection but with a different size compared with the configuration of the Ink tool.
So I forced the tool to have a specific size:
pdb.gimp_context_set_paint_method('gimp-ink')
pdb.gimp_context_set_ink_size(5)
pdb.gimp_edit_stroke(drawable)

And doesn't matter what size I configure, the result is always the same.
The only way to have control of the stroke it's using the gimp-paintbrush method and configuring the brush to my way, but is not what I want.

Someone know a way to make what i'm trying to do with python-fu?


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: Need help with gimp-edit-stroke
PostPosted: Thu Mar 05, 2015 12:31 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
What version of Gimp are you using, gjg?
I think this may be an old problem which has been sorted-out in 2.8.14


Top
 Post subject: Re: Need help with gimp-edit-stroke
PostPosted: Thu Mar 05, 2015 12:40 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Aug 26, 2013
Posts: 11
Location: Argentina
Hi jontait2, I'm using gimp 2.8.4
That will be the problem? I will check it.
Thanks for the advice.


Top
 Post subject: Re: Need help with gimp-edit-stroke
PostPosted: Thu Mar 05, 2015 3:26 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Probably the bug that was fixed in 2.8.12: https://git.gnome.org/browse/gimp/plain/NEWS?h=gimp-2-8


Top
 Post subject: Re: Need help with gimp-edit-stroke
PostPosted: Fri Mar 06, 2015 6:38 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Aug 26, 2013
Posts: 11
Location: Argentina
Thanks jontait2, I updated Gimp to 2.8.14 and now my script works perfectly.
Thank you very much. :bigthup


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Edit stroke made by pencil tool

3

No new posts Stroke: how to remove space between test & stroke

3

No new posts Attachment(s) stroke selection/stroke path

2

No new posts Edit / Preferences

2

No new posts Attachment(s) Is there a script for doing Stroke outside selection?

4



* Login  



Powered by phpBB3 © phpBB Group