It is currently Thu Jul 04, 2024 4:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Tue Jun 27, 2023 5:40 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
Tas_mania wrote:
Thanks teapot for a good description of this effect. You didn't mention to use a joined-up font :)

Good point :) I made the path have just one stroke by joining up the letters by hand, but anything goes including just drawing with a paint tool:

Attachment:
anythinggoes.gif
anythinggoes.gif [ 2.91 MiB | Viewed 12535 times ]

Tas_mania wrote:
Your rotatehue script gave me the idea to use the hue slider in 'Hue-Chroma'. That is a GEGL import so is hard to script but I had a batch script that I modified to apply the -180 to + 180 range on an animation series.

'Hue-Chroma' gives a different result to 'Hue-Saturation' so how do you choose which to use?

I'd like to call 'Hue-Chroma' from python but don't know how, I think there maybe some threads on calling GEGL from python. How do you do it from your batch script?

Tas_mania wrote:
I realized that starting and ending at 0.00 meant it could be used as a video transition that colorizes parts of a clip.
That sounds cool :hi5


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Tue Jun 27, 2023 5:45 pm  (#32) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
Ella, Thanks for trying it out I'm loving the teapot :jumpclap

diagrajamal1, very nice kaleidoscope effect :clap


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Tue Jun 27, 2023 9:51 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
It's very strange but in some recent examples I can't read the text :hehe

@Teapot
Glad you posted your plugin.
I have two minor comments about it:
- for animation plugins it should be possible to specify the number of frames (so steps=360/frame

Image

- location in the menu: why not more adequate:
"<Image>/Filters/Animation/Animators"

Regarding Gegl (the hardest first step) :mrgreen:

gegl_command by Kevin Payne & Claude Lion [cli345] here: viewtopic.php?f=9&t=18040&start=30p264354
(for the convenience of users, I paste this code into every plugin that uses GEGL - and it is required for Windows)

In your plugin you just need to replace the line:

pdb.gimp_drawable_hue_saturation(new_layer, HUE_RANGE_ALL, hue_offset, lightness, saturation, overlap)


to:
gegl_command(image, new_layer,"hue-chroma hue=%f" % (hue_offset))


Quick comparison saturation & chroma:


Attachments:
Hue Saturation Rotation.gif
Hue Saturation Rotation.gif [ 621.49 KiB | Viewed 12519 times ]
Hue Chroma Rotation.gif
Hue Chroma Rotation.gif [ 653.01 KiB | Viewed 12519 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Tue Jun 27, 2023 11:38 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 792
Location: SEA - South East Asia
MareroQ wrote:
- location in the menu: why not more adequate:
"<Image>/Filters/Animation/Animators"

Hi MareroQ
Nice idea to change the menu path, but in my humble opinion, adding "Animators" as a sub-sub-sub menu is becoming too long, I already did a change on the one I did downloaded, I did put it directly in "Animation" (no third sub menu) :mrgreen:
Attachment:
screenshot_20230628-123556.jpg
screenshot_20230628-123556.jpg [ 19.42 KiB | Viewed 12507 times ]


Ella, teapot and diagrajamal1 your last ones very :coolthup :bigthup

_________________
Patrice


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Wed Jun 28, 2023 1:42 am  (#35) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi PixLab.

When you look at the code without trying it, "Animators" seem to create an extra submenu. :hehe
But it's not like that. :gaah
You've noticed that the "Animation" menu is divided into two sections;
- top: for various creative animations,
- lower: for generic tools?
Adding "Animators" just tells Gimpwi to place the plugin over the dash (and it doesn't show).
And one more thing: three dots [...] at the end of the plugin name indicate that the GUI has been displayed (no dots - the plugin will run automatically as there are no options to choose from)


Attachments:
Top menu.jpg
Top menu.jpg [ 39 KiB | Viewed 12495 times ]
Botom menu.jpg
Botom menu.jpg [ 43.03 KiB | Viewed 12495 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Wed Jun 28, 2023 4:46 am  (#36) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Attachment:
gegl-hue-chroma-35framesVideo.zip [446 Bytes]
Downloaded 69 times
A little test using an old gif I made.

Image


I'm using the stand alone gegl (sudo apt install gegl)
My script is cave man style and it's easy to understand what it does. I'm interested in how Marero's works. The trick with applying to animation is getting the same number of frames in the effect and in the animation.


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Wed Jun 28, 2023 9:14 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 792
Location: SEA - South East Asia
MareroQ wrote:
Hi PixLab.

When you look at the code without trying it, "Animators" seem to create an extra submenu. :hehe
But it's not like that. :gaah
You've noticed that the "Animation" menu is divided into two sections;
- top: for various creative animations,
- lower: for generic tools?
Adding "Animators" just tells Gimpwi to place the plugin over the dash (and it doesn't show).
And one more thing: three dots [...] at the end of the plugin name indicate that the GUI has been displayed (no dots - the plugin will run automatically as there are no options to choose from)


:wow Thank you so much MareroQ, I just learn a lot from your very well explained "Animators" :tyspin

Thus I have a question :oops: ,
Do you know if it's the same wording for others menus? In Light and Shadow (Filters > Light & Shadow) there are 2 dashes/3 blocks, how can you define the top/the one in between/ and the bottom?

Again a big-big :tyspin

_________________
Patrice


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Wed Jun 28, 2023 10:45 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
@ PixLab

I gave You a 'fish', not a 'fishing rod'... :oops:
This can be easily deduced from the "pluginrc" file or from the xml files in ...\share\gimp\2.0\menus\ (a bit more complicated).
You can also look at a specific plugin or script. :)


Attachments:
Menu Light&Shadow.jpg
Menu Light&Shadow.jpg [ 50.19 KiB | Viewed 12428 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Thu Jun 29, 2023 4:51 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 792
Location: SEA - South East Asia
MareroQ wrote:
@ PixLab
I gave You a 'fish', not a 'fishing rod'... :oops:


:oops: :oops:
Sorry about that, some time I can be a bit too curious. ;)

MareroQ wrote:
This can be easily deduced from the "pluginrc" file or from the xml files in ...\share\gimp\2.0\menus\ (a bit more complicated).
You can also look at a specific plugin or script. :)


Thanks a lot, I'll take a look at it, I'll find a way :bigthup

In all cases, than you so much MareroQ, I very much appreciated your help :tyspin

_________________
Patrice


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Thu Jun 29, 2023 8:58 am  (#40) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
MareroQ, Thank you very much for your explanations :tyspin :tyspin :tyspin

I've made the menu changes you suggested.

MareroQ wrote:
This can be easily deduced from the "pluginrc" file or from the xml files in ...\share\gimp\2.0\menus\ (a bit more complicated).
Thank you. It looks like mainly the file image-menu.xml to see what the placeholders are. Are the conventions like that and the name three dots ... written down somewhere? If there is any documentation it would help to find out about other similar conventions I don't yet know :)

As you suggested I've switched to have the user specify the number of frames instead of the step.

The hue now starts at 0 instead of -180 to aid doing transitions like Tas_mania's.

Also added a reverse option:
Attachment:
rotatehue-2.0.0.zip [1.66 KiB]
Downloaded 81 times

Example output saved as as gif:
Attachment:
rotatehuetest4.gif
rotatehuetest4.gif [ 1.57 MiB | Viewed 12388 times ]

Reverse:
Attachment:
rotatehuetest4reverse.gif
rotatehuetest4reverse.gif [ 1.57 MiB | Viewed 12388 times ]


PixLab, I'm glad you're curious as you asked the questions I also wanted to know the answers to :bigthup

Tas_mania wrote:
A little test using an old gif I made.
That looks great :coolthup


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Thu Jun 29, 2023 2:00 pm  (#41) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
I think it would be good if the moderator (if he has time) moved the recent posts to a new thread: Gimp Scripts and Plugins/Rotate Hue. (Done!)

@PixLab
I think you misunderstood the proverb.
Just wanted to say that I should have added more information right away. :yes

@Teapot.
There is no code of good rules for writing plugins.
The ones I've written about are by plugin guru Saul Goode (they're available in various old posts), but no one is forcing anyone to use them (sometimes I forget too).
Saul also wrote that the original image should always be preserved.
Typical solutions:
1. Execute the code on the duplicated layer (often unacceptable for animation - but you found a solution: when hue=0 it doesn't change the layer itself, only its name).
2. Move the active layer to the new image (requires adding a few lines of code).

You didn't write anything about Gegl?
Maybe consider an option:
(PF_OPTION,   'type_h',   'Type hue:', 0, ["Hue Chroma","Hue Saturation"]),


Image

You are using the Apache license version 2.0 (I don't know the details, but there will be no more comments or ready-made solutions from me - sorry Tas_mania).

However, I can post my simple code that anyone can use:
moves the active layer to the new image, removing the layer name extension (if any). In the menu: Layer ➤ Active Layer to New Image


Attachments:
Active layer to new image.zip [701 Bytes]
Downloaded 189 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Thu Jun 29, 2023 3:52 pm  (#42) 
Offline
GimpChat Member
User avatar

Joined: Mar 14, 2023
Posts: 210
Location: Turkiye
Attachment:
colorize.gif
colorize.gif [ 1.84 MiB | Viewed 23622 times ]


Top
 Post subject: Re: Different Effects Gimp Text (Show us yours using gimp)
PostPosted: Thu Jun 29, 2023 5:19 pm  (#43) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
MareroQ, Thnak you for your reply :tyspin

MareroQ wrote:
You didn't write anything about Gegl?
Maybe consider an option:
(PF_OPTION,   'type_h',   'Type hue:', 0, ["Hue Chroma","Hue Saturation"]),

Thank you for your help with this, I've still got it to do but have had limited time available these last two days.

MareroQ wrote:
You are using the Apache license version 2.0 (I don't know the details, but there will be no more comments or ready-made solutions from me - sorry Tas_mania).

The Apache license version 2.0 is a standard open source license, is there a problem with it?


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sat Jul 01, 2023 8:19 pm  (#44) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Image


An experiment using V2 of the rotatehue script. Original image from here.
Thanks teapot. :bigthup


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sat Jul 01, 2023 8:24 pm  (#45) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
:wow Tas_mania that's awesome.


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sat Jul 01, 2023 11:15 pm  (#46) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 792
Location: SEA - South East Asia
Woww Tas_mania, great idea and well done!

_________________
Patrice


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sun Jul 02, 2023 9:49 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
Here's version 3. Additions are:

An option to use hue chroma to change the hue which needs gegl_command.py from here:
viewtopic.php?f=9&t=18040&start=30p264354

Hue saturation works anyway so if you just want that option you can skip installing gegl_command.py.

A choice to have the layers output to a new image. If not chosen the layers are output to the original image as before.

Allows indexed as well as RGB image types.

Attachment:
rotatehue-3.0.0.zip [2.05 KiB]
Downloaded 212 times


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sun Jul 02, 2023 9:11 pm  (#48) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 792
Location: SEA - South East Asia
teapot wrote:
Here's version 3.
Attachment:
rotatehue-3.0.0.zip


Hi teapot,
If I may, perhaps you should put it in the thread's very first post (as well as V1 and V2), visitors might not go/read up to the 5th page and surely are not aware of the different versions. :mrgreen:

_________________
Patrice


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Sun Jul 02, 2023 11:48 pm  (#49) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Quote:
If I may, perhaps you should put it in the thread's very first post (as well as V1 and V2)

Yes, V3 replaces V1 and V2. They all have the same name so maybe just replace the previous ones?

BTW thanks guys for appreciating my refracted light gif :)


Top
 Post subject: Re: Rotate Hue Script
PostPosted: Mon Jul 03, 2023 10:26 am  (#50) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
Thank you PixLab and Tas_mania.

I've updated the first post with links to the versions so as to preserve the history and download numbers.


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Path copy rotate shift plus + Path copy rotate shift walk Play

79

No new posts Rotate Locked

1

No new posts Problems with rotate and scale

3

No new posts Attachment(s) PROBLEM WITH ROTATE A SELECTION

9

No new posts Attachment(s) Path Copy Rotate Shift Plus

18



* Login  



Powered by phpBB3 © phpBB Group