RSS/Atom feed Twitter
Site is read-only, email is disabled

Layer Style python plugin..

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Layer Style python plugin.. Rene Jensen 07 May 12:14
  Layer Style python plugin.. Sven Neumann 08 May 23:00
   Layer Style python plugin.. Rene Jensen 09 May 07:09
Layer Style python plugin Centipede 07 May 12:34
Rene Jensen
2005-05-07 12:14:22 UTC (about 19 years ago)

Layer Style python plugin..

I'm surprised nobody has hacked on that before. After all, it's all there: Parasites that gets saved with the image/layer, a python module that can update the editor-view live, a complete scripting language with gtk bindings.

I spend a handful of hours trying to make a proof-of-concept. See what you think..

http://www.artcamilla.dk/vaultage/cornucopia/gimp-plugins/layer-style.py

1) Make a test image with a background and a transparent layer with say a filled small rectangle.

2) Python-fu / Alchemy / Layer Style

3) Drag the slider

4) Close the dialog

5) Save the image and close it

6) Reopen the image

7) Select either the original gizmo layer or the auto-generated style layer

8) Invoke Python-fu / Alchemy / Layer Style again and play with the slider.

There's a HUGE TODO list on that script, but the necessary basics are proven available although IT IS SLOW! But there are room for optimization, especially with a little help from the real pros who knows what is fast and what is slow.

WARNING: Cheap tricks such as this will become obsolete once GEGL is ready, I can image.. :)

Enjoy

Centipede

Centipede
2005-05-07 12:34:08 UTC (about 19 years ago)

Layer Style python plugin

I'm surprised nobody has hacked on that before. After all, it's all there: Parasites that gets saved with the image/layer, a python module that can update the editor-view live, a complete scripting language with gtk bindings.

I spend a handful of hours trying to make a proof-of-concept. See what you think..

http://www.artcamilla.dk/vaultage/cornucopia/gimp-plugins/layer-style.py

1) Make a test image with a background and a transparent layer with say a filled small rectangle.

2) Python-fu / Alchemy / Layer Style

3) Drag the slider

4) Close the dialog

5) Save the image and close it

6) Reopen the image

7) Select either the original gizmo layer or the auto-generated style layer

8) Invoke Python-fu / Alchemy / Layer Style again and play with the slider.

There's a HUGE TODO list on that script, but the necessary basics are proven available although IT IS SLOW! But there are room for optimization, especially with a little help from the real pros who knows what is fast and what is slow.

WARNING: Cheap tricks such as this will become obsolete once GEGL is ready, I can image.. :)

Enjoy

Centipede

P.S.: All my letters to this list seem to bounce.

Sven Neumann
2005-05-08 23:00:05 UTC (about 19 years ago)

Layer Style python plugin..

Hi,

Rene Jensen writes:

I'm surprised nobody has hacked on that before. After all, it's all there: Parasites that gets saved with the image/layer, a python module that can update the editor-view live, a complete scripting language with gtk bindings.

I spend a handful of hours trying to make a proof-of-concept. See what you think..

http://www.artcamilla.dk/vaultage/cornucopia/gimp-plugins/layer-style.py

This has been done before (and perhaps even slightly more elegantly):

http://www.deviantart.com/deviation/1872584/

Sven

Rene Jensen
2005-05-09 07:09:26 UTC (about 19 years ago)

Layer Style python plugin..

LOL! Yes, I see that it has :-]

It does look good too, very much indeed. Thanks for pointing it out, Sven, saved me of quite a bunch of working hours.

Sorry for the many posts (and thanks those who helped). How can you work with a 24 hour timedelay? Oh well..

See ya all -centipede

This has been done before (and perhaps even slightly more elegantly):

http://www.deviantart.com/deviation/1872584/

Sven