It is currently Wed Jul 24, 2024 4:28 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Request @tin
PostPosted: Sun Oct 16, 2016 12:53 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Tin,
now that you are becoming step after step (with the help of Ofnuts) a paths expert, may I ask you to write down and publish an example .py script which:
- calls MareroQ's Simple Path Shapes (choose just one or two, as you like: petal for instance)
- performs some basic operations: stroke with a specific brush, performs path-to-selection and fills (with a color or a pattern) the selection and/or the inverse selection.
By choosing flower for instance you may produce a user adjusted outcome, with different contours and petal contents.

From that sample someone else (me, for instance, a completely paths ignorant) can learn how to make use of MareroQ script from inside a caller script.

Thanks in advance, if you like the idea

_________________
"Where am I ?"


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: Request @tin
PostPosted: Sun Oct 16, 2016 1:52 am  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
i'll see what i can do.... it wouldn't be expert work though :hehe

EDIT: I am hesitating on the stroke with specific brush as brushes has many options that calling from script i find really painful since you have to provide all the options when stroke the built in already provides all that.
I could do stroke path with line tool using some svg call.

_________________
TinT


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 5:06 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
OK, Tin, do as you prefer.
The importance for me is to have an example of:
- getting the produced path(s)
- stroke them -one at a time- (with the default active brush is OK) to define contours
- perform path to selection and fill the selection (or the inverse selection) -one at a time- either with a color or with a pattern
Thanks a lot
-

_________________
"Where am I ?"


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 12:33 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Here you go --> Calling Simple Shapes Sample Script for GIMP
Hope it helps

_________________
TinT


Last edited by trandoductin on Wed Nov 28, 2018 12:55 pm, edited 1 time in total.

Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 12:45 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
T H A N K S A L O T ! ! !
Now I can play.....

_________________
"Where am I ?"


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 12:48 pm  (#6) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
you're gonna dream up another script aren't you? :hehe

_________________
TinT


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 12:54 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
just looked at the code, for me poor path-ignorant it's like Arabic language!
thanks again, Tin
slowly I'll try to understand and use for my plays...

_________________
"Where am I ?"


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 12:56 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
trandoductin wrote:
you're gonna dream up another script aren't you? :hehe

certainly not soon.....hehehe
(maybe never!)

_________________
"Where am I ?"


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 1:14 pm  (#9) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
dinasset wrote:
just looked at the code, for me poor path-ignorant it's like Arabic language!
thanks again, Tin
slowly I'll try to understand and use for my plays...

the code doesn't do anything with the paths other than grabbing pointers to vector objects and applying stroke and fill to them.

_________________
TinT


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 2:33 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
It's fine for me until filling, I don't understand the complexity of stroking.
I thought it was as simple as entering "gimp_edit_stroke_vectors" using as parameters the layer and the "vectors" used for the "select_item(....,vectors)"


EDIT : I TRIED THE SIMPLE METHOD I SAID BEFORE ("gimp_edit_stroke_vectors") AND IT WORKS !
now I survive better....

_________________
"Where am I ?"


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 2:38 pm  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
yeah but gimp's stroke vectors uses the active brush... so if you wanted to call that you have to set a bunch of context ...related to brush.
I just SVG stroke line method that i found on the net and it simply does solid stroke line like how i usually stroke vectors. I hardly ever use stroke with brush.

_________________
TinT


Top
 Post subject: Re: Request @tin
PostPosted: Sun Oct 16, 2016 2:39 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
OK, understand, but at the moment I stay with the simple brush (for my simple mind it's easier)

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Script request

3

No new posts My shameful n00b request for help

3

No new posts Attachment(s) pm_create_a_water_drop_text.py (Issabella request) updated

17

No new posts Attachment(s) pm_plexi_text_effect plugin (Issabella request) version_2

13

No new posts Request- Make a scriptfu out of my X Window stroke outline hack

1



* Login  



Powered by phpBB3 © phpBB Group