It is currently Fri Jul 17, 2026 2:50 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Fill in a preset pattern using a Python-fu
PostPosted: Wed Dec 23, 2015 8:02 am  (#1) 
Offline
New Member

Joined: Dec 23, 2015
Posts: 3
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User



Hi all.

The select area or select path,
or to fill in a preset pattern using a Python-fu, do I do?

For example In the menu ,
Edit -> Stroke Path
Or ,
Edit -> Stroke Path
In it is possible.

My English is poor , but please forgive me .


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: Fill in a preset pattern using a Python-fu
PostPosted: Wed Dec 23, 2015 12:39 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
It is OK to ask your question in your native language.
Is this what you want to do?
11. Patterns or 3.18. Stroke Path or 3.11. Clone

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Fill in a preset pattern using a Python-fu
PostPosted: Wed Dec 23, 2015 7:18 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
pdb.gimp_edit_stroke_vectors(drawable, vectors)

To use a pattern, bucket fill a complete layer, add a layer mask filled with black and stroke the path in white.

_________________
Image


Top
 Post subject: Re: Fill in a preset pattern using a Python-fu
PostPosted: Wed Dec 23, 2015 7:58 pm  (#4) 
Offline
New Member

Joined: Dec 23, 2015
Posts: 3
Thanks!

To:Odinbc

Use 3.18.Stroke in Pattern.


Top
 Post subject: Re: Fill in a preset pattern using a Python-fu
PostPosted: Wed Dec 23, 2015 8:24 pm  (#5) 
Offline
New Member

Joined: Dec 23, 2015
Posts: 3
To:ofnuts

Thanks!
It is that you use a mask of fill!
I think that it was close to the very resolution!

When use the "3.18 Stroke Path", can change the thickness of line , is would be possible the same thing?


Top
 Post subject: Re: Fill in a preset pattern using a Python-fu
PostPosted: Thu Dec 24, 2015 5:02 am  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
ruman wrote:
To:ofnuts

Thanks!
It is that you use a mask of fill!
I think that it was close to the very resolution!

When use the "3.18 Stroke Path", can change the thickness of line , is would be possible the same thing?

The API doesn't expose the "line mode" stroking, it only strokes with a brush (which isn't as clean, and doesn't allow sharp angles...). So the line thickness is really the size of the brush that you are using. Your best bet is to create a "parametric" brush on the fly (pdb.gimp-brush-new() and the various pdb.gimp-brush-set...())(and delete it when the script ends).

_________________
Image


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group