GIMP Chat http://gimpchat.com/ |
|
BIBO-text (Breath-in, Breath-out text) http://gimpchat.com/viewtopic.php?f=9&t=20604 |
Page 1 of 1 |
Author: | trandoductin [ Thu Oct 26, 2023 8:33 pm ] |
Post subject: | BIBO-text (Breath-in, Breath-out text) |
Breathing in one word, breathing out another word. While I was visualizing a chant or words of a chant. I visualize a word as I breath in and visualize another word as I breath out. So I wanted to animate this. And here it is and example output: You just have a background image you want to create the text animation on, enter center x and y of where you want the text to appear, select font size and enter Phrase, it'll animate per words and then enter frames you want for inhaling and exhaling (default is 15 frames for inhaling and 20 frames for exhaling since exhaling usually takes longer) but it's totally up to you. Plug-in uses current foreground color for text and current font. The animation uses ease-in-out function so it accelerates toward halfway then decelerates to simulate breathing. Plug-in code is below. Enjoy! Code: Select all #!/usr/bin/env python See also BIBO-layers in 4th post BIBO-layers (Rel.2) in 8th post |
Author: | trandoductin [ Thu Oct 26, 2023 9:02 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Another sample for fun |
Author: | PixLab [ Fri Oct 27, 2023 12:15 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Nice! Is it possible, to add an options to do the same but with multiple layers (in a group for example or linked layers, or tagged layers)? for example, one draw a circle on a layer, than a triangle on another one, then a square on a third one, and a star on a forth layer, and get the same effect with the drawing? |
Author: | trandoductin [ Fri Oct 27, 2023 8:40 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Thank you PixLab! A great suggestion but I didn't mix it with the same plug-in since it expects slightly different parameters. I call this one bibo-layers.py (code at the bottom of this post). It takes [linked] layers and treat them like words, the size becomes min size (percentage) and max size (percentage). What the plug-in does is it first reads all the linked layers and then hide them all (visiblility FALSE) so that it doesn't affect the layer it creates for animation. Similar logics as the other bibo-text.py. Here's a sample output from an image that has the mannequin as background image (not linked) and 4 other layers with differently drawn shapes (linked). Here's the code: Code: Select all #!/usr/bin/env python |
Author: | PixLab [ Fri Oct 27, 2023 9:35 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Wow, thank you Tran, very nice! BTW I like your new Avatar Again thank you |
Author: | trandoductin [ Fri Oct 27, 2023 10:14 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Thank you for the suggestion, it entertained me. |
Author: | PixLab [ Sun Oct 29, 2023 1:07 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
trandoductin wrote: Thank you for the suggestion, it entertained me. It's me who say I'm gonna entertain you again On the original image after the script did run, it left my original changed, like the place of the drawn layers and one more layer on top, I stayed on Ctrl+Z to put back the drawn layers at their original place, but at one point no more history > I lose my history Is it possible to fix it? Attachment: screenshot_20231029-130500.jpg [ 136.39 KiB | Viewed 1228 times ] On the new image (generated), the draws have a different opacity/blending. if I understood that transparency is for when switching between 2 layers to be smooth, which is excellent Could it be possible to have an option to keep the same blending/opacity than the original image? (if not, don't mind it, that's already excellent ) Attachment: screenshot_20231029-130730.jpg [ 78.08 KiB | Viewed 1228 times ] Last, by default it gives hard coordinates, is it possible to get the middle of the image by default?, if not, maybe an option to not move the layers? Attachment: screenshot_20231029-131715.jpg [ 69.96 KiB | Viewed 1228 times ] Having said that, I like it a lot, I see possibilities animating people and other things, again thank you so much Especially with webp images |
Author: | trandoductin [ Sun Oct 29, 2023 2:58 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
They are all great suggestions 1. It now saves the state of the visibilities of your linked layers, hide them all then do animation, then reload the states of visibilities at the end. 2. Added "Opacity Change:" toggle. 3. Added ""Move Layers To Given Center (x,y):" toggle. Here's the options window now with 2 new toggles at bottom And here's the code for this Release 2: Code: Select all #!/usr/bin/env python |
Author: | PixLab [ Sun Oct 29, 2023 7:32 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Wonderful, not moving layers works like a charm thank you so much |
Author: | trandoductin [ Sun Oct 29, 2023 9:00 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
You're welcome. Release 2 is better now because of you. |
Author: | MareroQ [ Thu Nov 02, 2023 1:46 am ] | ||
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) | ||
Maybe it's just me - but I would always prefer to change the layer when it is the smallest.
|
Author: | trandoductin [ Thu Nov 02, 2023 8:40 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
MareroQ, Thanks for your suggestion/preference: "Word Per Breath" Toggle has been added. With it switched on/YES it looks like this: Here's the code Code: Select all #!/usr/bin/env python |
Author: | MareroQ [ Thu Nov 02, 2023 11:01 am ] | ||
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) | ||
Thank you for the fast reponse. I'll complain a little more: - I was thinking about changing the BIBO layers (more universal - also the ability to change the text) - Opacity switch (0 to 100 or 100 to 0) - Centered option, not just offsets to x.y. If you are busy with other things, ignore my whims.
|
Author: | trandoductin [ Thu Nov 02, 2023 12:35 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Thanks for your recommended suggestions: Oh and "Use Image Center" Toggle sample output: Here's the code this revision (3). Code: Select all #!/usr/bin/env python |
Author: | MareroQ [ Thu Nov 02, 2023 3:12 pm ] | ||
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) | ||
Thank You very much for quickly implementing my suggestions.
|
Author: | trandoductin [ Thu Nov 02, 2023 3:20 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
hehe that's funny! |
Author: | MareroQ [ Sat Nov 04, 2023 12:27 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
You can download (zip) also from: https://www.gimpscripts.net/2023/11/bib ... h-out.html |
Author: | trandoductin [ Sat Nov 04, 2023 3:37 pm ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Eh, thanks uploading it there. Cheers! |
Author: | PixLab [ Mon Nov 06, 2023 4:43 am ] |
Post subject: | Re: BIBO-text (Breath-in, Breath-out text) |
Thanks a lot Tin and Marek |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |