It is currently Wed May 22, 2013 4:18 am


Latest GIMP Scripts & Plug-ins

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 10:54 pm  (#1) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1557
Location: 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


Last edited by Graechan on Tue Apr 24, 2012 2: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
 Profile  
 

 Post subject: Re: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Mon Apr 23, 2012 11:54 pm  (#2) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1557
Location: 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


Top
 Profile  
 
 Post subject: Re: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Tue Apr 24, 2012 2:10 am  (#3) 
Online
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 818
Location: not from Guildford after all
Code:
(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
 Profile  
 
 Post subject: Re: Help needed Stuck with path I cannot Stroke (in script)
PostPosted: Tue Apr 24, 2012 2:16 am  (#4) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1557
Location: Australia
Got it I hope?
Code:
;; 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group