It is currently Tue Jul 02, 2024 6:31 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 115 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 5:17 am  (#61) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
MareroQ wrote:
I'm not sure that's it...

Thanks MareroQ this will work nicely with Mandela effects. :)

_________________
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: Simple path shapes
PostPosted: Fri Oct 28, 2016 5:24 am  (#62) 
Offline
GimpChat Member
User avatar

Joined: Oct 20, 2016
Posts: 34
Thanks you very much MareroQ


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 6:02 am  (#63) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Works great MareroQ! This is 1/8 shape.

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: Simple path shapes
PostPosted: Fri Oct 28, 2016 7:16 am  (#64) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Looks like 4 cloves of garlic on a spaghetti pizza, Rod.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 9:33 am  (#65) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Rel 1.0 alfa:
- add shapes "Grid" (Grid rectangular (c) Ofnuts v0.0 https://sourceforge.net/projects/gimp-path-tools/files/scripts/),
- add shapes "Pie 1/2 and 7/8",
- add a separate option for Mark Length,
- add fills selection with Active Brush created by Tin Tran (Fill_Selection_With_Brush ver.3 https://gimplearn.net/viewtopic.php?t=3&t=177#p522)
- shape "Ruler" return to the basic version.


Attachments:
New Grid by Ofn.png
New Grid by Ofn.png [ 67.93 KiB | Viewed 1267 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes some mini Errors?
PostPosted: Fri Oct 28, 2016 10:43 am  (#66) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
Hi MQ,
Just installed Version 1 (alpha):
Version 0.9 there was something not OK: A rectangular selection and then using "Axis of Symmetrie" with filled the total image.
Version 1.0 alpha does not fill the pattern as was done earlier e.g. Axis of Symmetrie (should be indeed as it is now excluded) but not: both flower posibilities and Hexagon and (not more checked)..

Next, on my Laptop all of the lowest buttons are nearly invisible, meaning, I think, that there are too much options to chose from (normal Plugin way) ;-(
Only solution seems to be using an gtk UI ;-) ... or other ways I do not know yet.

I am busy to expand the Arakne guide-lab (Version D), where you can see the gtk UI.
And I used it to use intersection-points to create (at this momen) either rectangles ore ellipses and fill them with random colors or the color of the pixel(s) at the intersections
My idea is to use YOUR plugin as helper to fill chosen selections (one intersection ONE , etc )
You allow it to use? Please
Greets
Peter


Top
 Post subject: Re: Simple path shapes some mini Errors?
PostPosted: Fri Oct 28, 2016 10:54 am  (#67) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13068
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
PKHG wrote:
Hi MQ,
Just installed Version 1 (alpha):

Next, on my Laptop all of the lowest buttons are nearly invisible, meaning, I think, that there are too much options to chose from (normal Plugin way) ;-(
Only solution seems to be using an gtk UI ;-) ... or other ways I do not know yet.


Greets
Peter

If you install the Script-Fu Scrolling Interface.
This should no longer be an issue.


Script-Fu Scrolling Interface Link for Download

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


Top
 Post subject: Re: Simple path shapes some mini Errors?
PostPosted: Fri Oct 28, 2016 5:20 pm  (#68) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Wallace wrote:
PKHG wrote:
Hi MQ,
Just installed Version 1 (alpha):

Next, on my Laptop all of the lowest buttons are nearly invisible, meaning, I think, that there are too much options to chose from (normal Plugin way) ;-(
Only solution seems to be using an gtk UI ;-) ... or other ways I do not know yet.


Greets
Peter

If you install the Script-Fu Scrolling Interface.
This should no longer be an issue.


Script-Fu Scrolling Interface Link for Download

Script-Fu Scrolling interface will only work with SCM scripts. You need the gimp-fu.py version from Bytes and Pixels.
I attached it here in a zip file. Make sure you save the original gimp-fu.py file in a safe place.
Install the one i attached
Restart GIMP and python dialogs will be in columns. :)

Attachment:
gimpfu-col.zip [7.24 KiB]
Downloaded 77 times


Example
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: Simple path shapes
PostPosted: Fri Oct 28, 2016 5:29 pm  (#69) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Peter.
Obviously - not every Path can be converted to Selection.
I am very interested in Your version Arakne guide-lab - still I want to learn. :geek
======================================================================
Thanks Rod for gimpfu. :yes

Scrolling plugins (*.py)
viewtopic.php?f=9&t=13714
======================================================================
Rel 1.0 beta:
- repair of error for Gimp 2.9 (called deprecated procedure 'gimp_selection_load'.It should call 'gimp-image-select-item' instead! :oops: )
- add transparency layer (create new) for fill and stroke.


Attachments:
Add new layer for fill.png
Add new layer for fill.png [ 22.45 KiB | Viewed 1233 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes some mini Errors?
PostPosted: Fri Oct 28, 2016 7:09 pm  (#70) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Rod wrote:
Wallace wrote:
PKHG wrote:
Hi MQ,
Just installed Version 1 (alpha):

Next, on my Laptop all of the lowest buttons are nearly invisible, meaning, I think, that there are too much options to chose from (normal Plugin way) ;-(
Only solution seems to be using an gtk UI ;-) ... or other ways I do not know yet.


Greets
Peter

If you install the Script-Fu Scrolling Interface.
This should no longer be an issue.


Script-Fu Scrolling Interface Link for Download

Script-Fu Scrolling interface will only work with SCM scripts. You need the gimp-fu.py version from Bytes and Pixels.
I attached it here in a zip file. Make sure you save the original gimp-fu.py file in a safe place.
Install the one i attached
Restart GIMP and python dialogs will be in columns. :)

Attachment:
gimpfu-col.zip


Example
[ Image ]


Using the scrollable version of the dialog is the admission that the whole thing has become unwieldy.

IMHO, many of settings should be taken from Gimp's context: fill pattern/color, stroke color, stroke width (current brush).

There is also a good case to have one plugin entry for each shape, to allow specific shapes to be attached to hotkeys. It is not very difficult in Python to define registration parameters programmatically with a set of common parameters plus a bunch of parameters specific to each entry(*).

Otherwise making an explicit interface with PyGTK could be a nice move because in addition to the better dialogue shape you can add some intelligence to add/remove controls as necessary and provide defaults suited to the current image and selection.

(*) see ofn-path-to-shape's reg() function.

_________________
Image


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 8:28 pm  (#71) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
MareroQ the new Rel 1.0 beta is a great leap forward 'Well done rulers, protractor and selection returns are perfect'.
It's big advantage from 'path shape creator' is that it can be called to RUN-NONINTERACTIVE. :bigthup
Image

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


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 9:05 pm  (#72) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
MareroQ the new Rel 1.0 beta is a great leap forward 'Well done rulers, protractor and selection returns are perfect'.
It's big advantage from 'path shape creator' is that it can be called to RUN-NONINTERACTIVE. :bigthup
[ Image ]

Hrmmm are you thinking of a script too Graechan? :lol

_________________
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: Simple path shapes
PostPosted: Fri Oct 28, 2016 9:12 pm  (#73) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Rod I have called the script-Fu 'Shape Paths' during some of my scripts before to get a desired path very successfully :hehe

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


Top
 Post subject: Re: Simple path shapes
PostPosted: Fri Oct 28, 2016 9:30 pm  (#74) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
MareroQ when I posted the Image from gimps procedure browser something stood out, and there maybe a easy fix.
So I did it roughly for the first 2 choices 0 and 1, as an example of what I'm talking about, because I don't know if or how it can be done properly.
Image

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


Top
 Post subject: arakneguidelabextra.py
PostPosted: Sat Oct 29, 2016 4:10 am  (#75) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
Hello, including my latest version of the Arakne guid-lab.
Hope that I do not violate copyrights ...
Here my explanation (in German)

Das wichtigste:
ALLES basiert und soll das benutzen: Arakne -guide-lab und das ist durch EINE Option erweitert. Das originale guide-lab (Version D) kann 'nur' einzelne Hilfslinien erstellen, ausser wenn eine der zwei Optionen ausgewählt wurde: mit deren Hilfe gespiegelte Hilfslinien (also 2) erzeugt werden können (was hinter Replicate steht: Mirror oder Perimeter)
Meine Erweiterung des guide-labs ist: die Zeile die mit several guides anfängt!
Finde ich SEHR nützlich!

Eine 'halbe' Hinzufügung: die Möglichkeit das UI immer oder gerade nicht als oberstes Fenster haben zu wollen!

Dann die erste (echte) Hinzufügung, kommt von gimpchat.com, wo jemand fragte um à la Excel Rechtecke entlang von Hilfslinien gezeichnet haben wollte, das ist dort ein Plugin, welches ich (meiner Meinung nach) ein wenig optimiert hinzugefügt habe. Anstatt viele kleine Vektoren nur lange Vektoren, weil eine Auswahl beim stroken (hier ist das das richtige Wort) benutzt wird. Das ist EINE Zeile: die die mit der Schaltfläche createthepath beginnt! Da es Hilfslininien benutzt, fand ich es sinnvoll das in das guide-lab mitzunehmen.

Die Zeile mit Prepare ... ist 'nur' Information für die auf ganz und gar eigenem Mist gewachsener Wunsch die Schnittpunkte von den haargenau zu setzenden Hilfslinien zu benutzen . Deren Wahlmöglichkeiten darunter zu finden sind.
In der heutigen Version kann man nur zwischen Ellipsen (Kreise) und Rechtecken (Quadrate) wählen, wobei man Höhe und Breite angeben muss. Zeile fängt an mit: set width (setze die Breite) und endet (im Prinzip) mit: selection(s) at intersection(s) .
Mit der Option fill selections? (Standard wert no (NEIN)) wird eine Auswahl rund um alle Schnittpunkte erstellt.
DIE Bemerkung: wegen des guide-lab kann man ja alles ziemlich schnell ändern, wo man eine Auswahl haben will: Die kann man dann ja auch mit einem Muster 'füllen' (ohne das UI zu entfernen!!!!) und noch mal und noch mal .. anpassen.
Die 'no' Option hat (im Moment) noch zwei andere Möglichkeiten. Alle (durch die eingestellten Schnittpunkte ) Auswahle(n) entweder mit jeweils einer 'willkürlich' (random) Farbe füllen oder die Farbe des Schnittpunktes in der untersten Ebene nehmen, wovon noch die 'opacity' eingestellt werden kann (opacity-fill-bucket) zwischen 0 und 100.

Was man auch wissen muss: wird 'stroke' oder füllen von Auswahl benutzt, passiert das immer in der obersten Ebene ( gimp.image_list()[0].layers[0]), wenn es eine gibt. Mit EINER Ebene ist sie unterste und oberste zugleich .
Attachment:
guideslabextra_29oct0855.zip [8.79 KiB]
Downloaded 79 times


The help about longer menu's from normal plugins (W10 64 bit) seems to help.

I have, thanks to Arakne-guidelab' at least partly understood hoe gtk works

Thinking about to use a 'fourth' tab to show all the parameters of "Simple shapes centered" ...

Attachment:
gl_ex_02.gif
gl_ex_02.gif [ 206.64 KiB | Viewed 1382 times ]


This is an example, to use the color of a guidelinke intersection to fill in this case elliptic selections. This unselects the selection. Afterword nearly all guides were erase using the guid-lab and a new selection (same size) with option (no) (no fill) was activated and the ellipse by hand filled with RED color ==> a gif
And the left most boy was me, ca 50 years ago ;-).


Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 29, 2016 7:40 am  (#76) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
beta Version is indeed very nice.
Question: I can yet not see what makes the menu 'broader' in place of longer?

Just checking all fillable figures: The ellipse is a circel, yes and no, it follows the selection to make it a real ellipse. OK.
Diamonds and hearts are using the left part of a square selection , a right shift missing?

EDIT:
No easy error: for a square:
if x2-x1 >= y2-y1: #PKHG>change from > to >=
in around line 119

Most of your fillable pathes, nicely placed using my guidelabextra ;-)
Attachment:
simpl_path_shapes_03.JPG
simpl_path_shapes_03.JPG [ 200.45 KiB | Viewed 1376 times ]


Attachment:
simpl_path_shapes_03.JPG
simpl_path_shapes_03.JPG [ 200.45 KiB | Viewed 1376 times ]


Last edited by PKHG on Sat Oct 29, 2016 10:05 am, edited 1 time in total.

Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 29, 2016 9:53 am  (#77) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
Rod I have called the script-Fu 'Shape Paths' during some of my scripts before to get a desired path very successfully :hehe

Agree. :hehe

_________________
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: Simple path shapes
PostPosted: Sat Oct 29, 2016 3:43 pm  (#78) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi Peter.
Guideslabextra.py is very interesting - but tough code (need more time).
Unfortunately, as most plugins Arakne for Gimp 2.9.5 does not work.


Attachments:
Error for Gimp 2.9.png
Error for Gimp 2.9.png [ 50.65 KiB | Viewed 1360 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 29, 2016 4:00 pm  (#79) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Rel 1.0:
- correction shapes "Recycle" (bad axis :oops: ),
- add shapes "Gear", "Star", Polygon" created by Jonathan Stipe 2004-2006 (necessary script-fu Shape-path.scm).

This is not the end - but a longer break. :roll:


Attachments:
Gear.png
Gear.png [ 242.21 KiB | Viewed 1359 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Simple path shapes
PostPosted: Sat Oct 29, 2016 9:10 pm  (#80) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
MareroQ I have thoroughly tested Rel1.0 and found it a very stable release :bigthup

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


Top
Post new topic Reply to topic  [ 115 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Simple Geometric Shapes Art using Neural Network

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 Is there a 'shapes' tool ?

8

No new posts Attachment(s) Abstract Art by Discovery out of Geometric/Basic Shapes

10

No new posts Draw Arrows/Draw Shapes: Sorry! My download link hadn't worked.

0



* Login  



Powered by phpBB3 © phpBB Group