It is currently Thu Sep 17, 2026 5:33 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Help needed Stuck with path I cannot Stroke [solved]
PostPosted: Mon Apr 23, 2012 9:54 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
I have created a path using (plug-in-sel2path 1 image image-layer) but I cannot stoke it with (gimp-edit-stroke-vectors image-layer vectors)

there is no other paths displayed, and it is active. The name of the path is shown as selection,but that is all I know about it,I wanted to stroke a path instead of selection becouse it looks cleaner

Hoping someone has a rutine to 'change a selection to path and stroke it'

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Tue Apr 24, 2012 1:21 am, edited 1 time 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: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Mon Apr 23, 2012 10:54 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
This is what I am working with

Quote:
;; define new brush for drawing operation
(gimp-brush-new brushName)
(gimp-brush-set-shape brushName BRUSH-GENERATED-CIRCLE)
(gimp-brush-set-spikes brushName 2)
(gimp-brush-set-hardness brushName 1.00)
(gimp-brush-set-aspect-ratio brushName 1.0)
(gimp-brush-set-angle brushName 0.0)
(gimp-brush-set-spacing brushName 1.0)
(gimp-brush-set-radius brushName outline)
(gimp-context-set-brush brushName)
(gimp-context-set-foreground brush-color)
(plug-in-sel2path 1 image image-layer)
(set! PathName (car (gimp-vectors-get-name vectors)))
(gimp-edit-stroke-vectors image-layer PathName)
;(gimp-edit-stroke image-layer);;stroke the selection
(gimp-selection-none image)
(gimp-brush-delete brushName)

I have only the path I created

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Tue Apr 24, 2012 1:10 am  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
(gimp-edit-stroke-vectors image-layer PathName)

This is incorrect. The procedure is expecting the path's ID, not its name. Substitute your variable "vectors" for the variable "PathName".

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Tue Apr 24, 2012 1:16 am  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Got it I hope?
;; define new brush for drawing operation
            (gimp-brush-new brushName)
         (gimp-brush-set-shape brushName BRUSH-GENERATED-CIRCLE)   
            (gimp-brush-set-spikes brushName 2)
            (gimp-brush-set-hardness brushName 1.00)                   
            (gimp-brush-set-aspect-ratio brushName 1.0)
            (gimp-brush-set-angle brushName 0.0)                       
            (gimp-brush-set-spacing brushName 1.0)
            (gimp-brush-set-radius brushName outline)           
            (gimp-context-set-brush brushName)
            (gimp-context-set-foreground brush-color)
            (plug-in-sel2path 1 image image-layer)
         (gimp-selection-none image)
         (set! vectors (car (gimp-image-get-active-vectors image)))
         (gimp-edit-stroke-vectors image-layer vectors)
         (gimp-brush-delete brushName)
            (gimp-image-remove-vectors image vectors)

Saulgoode I think this is what you mean

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group