It is currently Sat Jul 06, 2024 7:27 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Elliptical Path From Active Layer Size? [SOLVED]
PostPosted: Wed Mar 23, 2016 1:26 pm  (#1) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
I'm looking for a script, or plugin.
That would be able to create an elliptical path.
Using the size of the active layer as it's parameters.
Dose something like this exist?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


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: Elliptical Path From Active Layer Size?
PostPosted: Wed Mar 23, 2016 1:38 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I'm almost sure Ofnuts (the paths' master) either has it already or can build it easily.
We''ll see.

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Wed Mar 23, 2016 2:58 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
dinasset wrote:
I'm almost sure Ofnuts (the paths' master) either has it already or can build it easily.
We''ll see.

Ofnuts does have some really great path tools available and I have most of them.

These images below show what I already have installed.

This first image,
shows that I need to enter the X and Y parameters of the ellipse desired.
Image

The second image,
shows a Circle, Ellipse and Oval as available shapes to create.
Each dialog also requires parameters to be set for the shape desired.
Some of which are more involved then others.
Image

Lastly we have this image,
which shows still the need to enter parameters for the desired shapes.
With no elliptical shape available in it's dialog to chose from.
Image

What I'm interested in,
is a script, or plugin.
That doesn't require manual setting of parameters to create an elliptical path,
but instead gets it's information from the active layer size.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Wed Mar 23, 2016 3:22 pm  (#4) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2439
In the meantime a bit of a work-around.
Arakne shape creator plugin
http://www.arakne.es/en/programming/pyt ... reator-v8/

Attachment:
shape-create.jpg
shape-create.jpg [ 95.48 KiB | Viewed 3576 times ]


The whole of the layer selected using fuzzy select with the threshold at maximum 255

Then the plugin applied

_________________
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Wed Mar 23, 2016 4:40 pm  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
rich2005 wrote:
In the meantime a bit of a work-around.
Arakne shape creator plugin
http://www.arakne.es/en/programming/pyt ... reator-v8/

Attachment:
shape-create.jpg


The whole of the layer selected using fuzzy select with the threshold at maximum 255

Then the plugin applied

THAT'S IT!!!
:hi5

Thank you so much rich2005.

This is the exact plugin that I've been looking for.

I had it installed and then lost it,
due to an operating system reinstall and my failure to backup my Gimp user files.
I did search for it.
However,
I couldn't seem to find this particular one. :oops:

Thanks again rich2005. :jumpclap

I'm still interested in a dedicated script, or plugin.
With the functionality as I've explained,
in the beginning of this thread.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 2:04 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
something like this?
Attachment:
DIEGO_create_ellipse_path.7z [1.43 KiB]
Downloaded 133 times

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 2:17 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Wallace, if you want to try what I posted, it goes under menu="<Image>/DiegoTest", but if you like to keep it, tell me the menu under which you like to have it

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 3:12 am  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
dinasset wrote:
Wallace,
if you want to try what I posted,
it goes under menu="<Image>/DiegoTest",
but if you like to keep it,
tell me the menu under which you like to have it

Nice work Diego!

I tried it out and these are my findings.

The DIEGO Create Ellipse plugin,
created an ellipse that seemed to have more drag point or nodes.
Image

The Arakne Path Shape Creator plugin,
created this ellipse.
Using fewer nodes.
Image

If something can be done about the amount of nodes used to create the ellipse.
I would with out a doubt use that plugin exclusively to create any needed elliptical path I might want.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 3:18 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Wallace, I'm not an expert on path: I did first the elliptical selection then used a "selection-to-path" gimp function, there is no control over the number of nodes; maybe Ofnuts can help.

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 3:35 am  (#10) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
dinasset wrote:
Wallace,
I'm not an expert on path: I did first the elliptical selection then used a "selection-to-path" gimp function,
there is no control over the number of nodes;
maybe Ofnuts can help.

I understand and thank you for your time and effort.
Perhaps Ofnuts will come along and reply to this thread.
Thanks again Diego. :bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 3:45 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Doesn't placing width and height (of your layer) in the values for the elliptical selection tool as "fixed" work? Then you need only do a selection to path.
For instance i am sure this could be scripted for a user choice ellipse size in SCM
Turn snap to grid on
Turn show grid on of course you would have to preset the grid size.
1) create a new doc.
2) create a new resized layer
3) fill layer with pattern/color/gradient whatever
4) create a fixed size (your layer size) ellipse
5) snap it to the grid
6) selection to path
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 3:56 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I guess that Wallace is complaining that the "selection-to-path" gimp function creates a path with more "nodes" than he likes to have (your suggestion too makes use of selection-to-path)

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 4:00 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
maybe Ofnuts can do the code "path commands only" to create directly the path just setting four nodes:
- mid of top width
- mid of right height
- mid of bottom width
- mid of left height
and drawing the path

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 4:01 am  (#14) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Rod wrote:
Doesn't placing width and height (of your layer) in the values for the elliptical selection tool as "fixed" work?
Then you need only do a selection to path.
For instance i am sure this could be scripted for a user choice ellipse size in SCM
Turn snap to grid on
Turn show grid on of course you would have to preset the grid size.
1) create a new doc.
2) create a new resized layer
3) fill layer with pattern/color/gradient whatever
4) create a fixed size (your layer size) ellipse
5) snap it to the grid
6) selection to path
[ Image ]


Creating paths from selections leaves slight imperfections.
You can see this clearly by putting out text.
Doing an Alpha To Selection of the text, then selection to path.
To create a path from the selection.

If you do a Text To Path and compare both paths.
You can see that the paths created using Text To Path are much more accurate.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 4:20 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
just a small note Wallace:
- better to remove the "solved" attribute to the thread if you like to have Ofnuts come in....

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size? [SOLVED, with extras]
PostPosted: Thu Mar 24, 2016 4:34 am  (#16) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
dinasset wrote:
just a small note Wallace:
- better to remove the "solved" attribute to the thread if you like to have Ofnuts come in....

You're right Diego,
I'll remove the solved attribute from the thread's title. ;)

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Thu Mar 24, 2016 12:44 pm  (#17) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
I have no ellipse path in my script (thinking about it...) but you can create a circle path using my script, and then use the Scale tool in "path" mode to make it tangent to the edges of your layer.

_________________
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Thu Mar 24, 2016 2:46 pm  (#18) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
ofnuts wrote:
I have no ellipse path in my script (thinking about it...)
but you can create a circle path using my script,
and then use the Scale tool in "path" mode to make it tangent to the edges of your layer.

Thanks Ofnuts.
That's what I've been doing.
After I lost the Arakne Path Shape Creator plugin.
Now that I have it back,
I use it.
With just a single click.
It creates an ellipse the same size as the image.
Using your script or the Arakne plugin method of doing it,
makes a very smooth and accurate ellipse, when compared to using selection to path.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Thu Mar 24, 2016 2:52 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
OK, Wallace.
In the meantime I found a script of Jonathan Stipe which creates different paths.
I only extracted the "ellipse" part and forced to only create an ellipse with the image dimension.
Here it is.
If you like to test it and see whether it can do well its task...
Attachment:
ellipse-dn.scm [2.76 KiB]
Downloaded 82 times


If you want to keep it, tell me where you like to see it on the menu; at the moment it goes under
"<Image>/DNmodified/Shape Paths/_Ellipse..."

_________________
"Where am I ?"


Top
 Post subject: Re: Elliptical Path From Active Layer Size?
PostPosted: Thu Mar 24, 2016 3:21 pm  (#20) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
dinasset wrote:
OK, Wallace.
In the meantime I found a script of Jonathan Stipe which creates different paths.
I only extracted the "ellipse" part and forced to only create an ellipse with the image dimension.
Here it is.
If you like to test it and see whether it can do well its task...
Attachment:
ellipse-dn.scm


If you want to keep it, tell me where you like to see it on the menu; at the moment it goes under
"<Image>/DNmodified/Shape Paths/_Ellipse..."

This script is just what I've been looking for.
Thank you very much for modifying it.
This script creates the ellipse without any distortion or extra nodes.
If it could be done,
I'd like it to show under:
Filter>Path>Ellipse.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Reducing layer size without loosing quality?

2

No new posts Attachment(s) active preview window and tools

2

No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3

No new posts Shortcuts to 2.10 documentation re: Layer & Layer-group modes

0

No new posts Attachment(s) Adding a image as a layer, moving layer, and then flattening

2



* Login  



Powered by phpBB3 © phpBB Group