It is currently Wed Apr 17, 2024 10:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 8:05 am  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Here is a link to a Gimp plugin that I did not know :
https://github.com/yihuang/harmony-gimp-plugin

Download :
https://github.com/yihuang/harmony-gimp ... all/master

Example of the effect of the plugin on some paths :


Attachments:
Wilber_test_harmony.png
Wilber_test_harmony.png [ 24.9 KiB | Viewed 3587 times ]
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: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 8:11 am  (#2) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Wow, it kind of looks a bit like the sketch brush on Krita...


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 8:56 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
Thanks Samj.


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 12:15 pm  (#4) 
Offline
GimpChat Member

Joined: Mar 29, 2011
Posts: 346
Location: Wisconsin
An interesting plug-in. Thanks Samj. :)

Last year I was playing with ribbon effects.

Image

The top ribbon is from the Harmony plug-in
The middle ribbon is RobA's Gradient Fill using a gradient with a transparent center.
The bottom ribbon was done with blurs and masks.

The site he references http://mrdoob.com/projects/harmony/#shaded is an interactive application with more interesting effect options. Some of them are pretty cool. :cool

_________________
Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 12:30 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
very cool, I would like to be able to do wilber

_________________
Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 1:17 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I get this error running it. (Windows XP)

File "F:\Gimp-2.8-32bit-Partha\lib\gimp\2.0\python\gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "F:\Gimp-2.8-32bit-Partha\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "F:\Gimp-2.8-32bit-Partha\pref_1\plug-ins\harmony.py", line 167, in harmony
points, closed = interpolate(stroke)
File "F:\Gimp-2.8-32bit-Partha\pref_1\plug-ins\harmony.py", line 100, in interpolate
print 'input points', len(points)
IOError: [Errno 9] Bad file descriptor

_________________
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: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 1:53 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I found that it will not do multiple paths at once on one path layer.
That was the error. :)

Too bad.

_________________
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: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 5:58 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
bkh1914 wrote:

The site he references http://mrdoob.com/projects/harmony/#shaded is an interactive application with more interesting effect options. Some of them are pretty cool. :cool

wow, that is Very interesting....just playing around I made this:

Image

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 6:00 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
cecilia wrote:
bkh1914 wrote:

The site he references http://mrdoob.com/projects/harmony/#shaded is an interactive application with more interesting effect options. Some of them are pretty cool. :cool

wow, that is Very interesting....just playing around I made this:

Image


That's nice. That's got my imagination going.


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 6:27 pm  (#10) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

@molly
You can open the paths (Wilber.svg).


Attachments:
Wilber.zip [1.79 KiB]
Downloaded 137 times
Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 7:29 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
What paths samj?

_________________
Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 7:52 pm  (#12) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
cecilia wrote:
bkh1914 wrote:

The site he references http://mrdoob.com/projects/harmony/#shaded is an interactive application with more interesting effect options. Some of them are pretty cool. :cool

wow, that is Very interesting....just playing around I made this:

Image


Ok, now seriously that looks exactly like krita's sketch brush (well, mainly the parts in the middle)... I wonder if they use a similar method or something?

As a comparison, here's some doodles with the sketch brush with a few different settings:

Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 7:58 pm  (#13) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@molly


Attachments:
paths.png
paths.png [ 10.96 KiB | Viewed 1927 times ]
Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 8:24 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
:cute :heart :heart :heart I'm in Love! :heart :heart :heart

Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 10:17 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Definitely a cool find; wasn't going to install it until I saw you all have way too much fun with it. lol

It is buggy though; very complex multi paths will cause it to give me errors. Still, I can see some fun with it and it's a keeper samj. Thanks for sharing your find. :)


Attachments:
Untitled.png
Untitled.png [ 690.82 KiB | Viewed 1914 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Fri May 25, 2012 10:45 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Sam is there any way to fix it so it will do multiple paths on one path layer?
For instance if i do a square path within a square path. :)

Because then you could select different colored areas of an image (using add to selection option), go to select to path and run the filter.

_________________
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: Harmony (Python plugin)
PostPosted: Sat May 26, 2012 12:37 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
I created a TSP (a TSP gives you a single curve path) and used the path to get this result. Still, it would be cool to be able to run this plugin with a more complicated path. I know; not pretty. Just proof of concept. :)


Attachments:
DSC00422crp-tsp.png
DSC00422crp-tsp.png [ 694.65 KiB | Viewed 1906 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Sat May 26, 2012 1:41 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I couldn't wait to go fishing so i took a virtual trip. :)

Image

I attached the html for the src code...if you want to use it offline.
Attachment:
Harmony_files.zip [28.76 KiB]
Downloaded 90 times


Just unzip to your desktop and open the htm file in your browser. :)
Should work.Except for Save, Clear and about links.

_________________
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: Harmony (Python plugin)
PostPosted: Sat May 26, 2012 4:04 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks samj...I haven't got a clue how to work this plug-in but I tried to do poor Wilber.
Image

_________________
Image


Top
 Post subject: Re: Harmony (Python plugin)
PostPosted: Sat May 26, 2012 5:17 am  (#20) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour.

@Rod
Sorry if I did not understand your question ...
This is what can be done to group paths (2 paths in the example), then apply the plugin Harmony.


Attachments:
merge_paths.png
merge_paths.png [ 23.17 KiB | Viewed 1885 times ]
Top
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Convert GIMP plugin from Python 2 to Python 3

3

No new posts 2023.....More Peace And Harmony

3

No new posts Attachment(s) Macbook User and Python plugin

14

No new posts Unable to get simple python plugin to show up

8

No new posts Get a mouse click or select a pixel in an image in a python plugin?

3



* Login  



Powered by phpBB3 © phpBB Group