GIMP Chat http://gimpchat.com/ |
|
LED-Animation Plug-in http://gimpchat.com/viewtopic.php?f=9&t=20350 |
Page 1 of 1 |
Author: | trandoductin [ Thu Mar 30, 2023 10:10 am ] |
Post subject: | LED-Animation Plug-in |
Turn this image Into the below animation or something like this where content is wider than LED panel (image size). Instructions: 1. Have a layer of your art/text that you'd like to animate as LED animation (as example above I used 80x40 image because each LED bulb will be 20x20 so it'll be quite large). Note: Layer can be wider than image size to animate more than just viewable content at once. 2. Run plug-in from /Python-fu/LED Animation... 3. It'll create a new image containing elements to animate with and another image containing animation frames (animation). 4. Resize/Scale down the image to decent size to animate with as the raw result is quite large (20x20 per pixel from original). 5. Save as animated gif and you're good. 6. That's it...Enjoy. Here's the plug-in code (save as .py file [ie. LED-animation.py]): Code: Select all #!/usr/bin/env python |
Author: | trandoductin [ Thu Mar 30, 2023 11:08 am ] |
Post subject: | Re: LED-Animation Plug-in |
This version allows you to enter a percentage (odds to have broken LEDs). code below: Code: Select all #!/usr/bin/env python |
Author: | trandoductin [ Thu Mar 30, 2023 11:40 am ] |
Post subject: | Re: LED-Animation Plug-in |
This version (3) has flickering percentage input. Here's the code: Code: Select all #!/usr/bin/env python |
Author: | teapot [ Thu Mar 30, 2023 7:04 pm ] |
Post subject: | Re: LED-Animation Plug-in |
Hi Tim, When you said it gets quite large you weren't kidding! In the end I went for a small image size about what you suggested and scaled the animation image down a lot using interpolation none for speed. My first try went a bit wrong so I think other requirements are: The layer of art/text to be animated should be: The active layer. The top layer in the image. The same height as the image. All other layers will be the animation background. It's best if the background is all black. Attachment: santa.gif [ 760.97 KiB | Viewed 1084 times ] |
Author: | trandoductin [ Thu Mar 30, 2023 9:00 pm ] |
Post subject: | Re: LED-Animation Plug-in |
yes you're right. Nice one |
Author: | PixLab [ Fri Mar 31, 2023 5:42 am ] |
Post subject: | Re: LED-Animation Plug-in |
teapot wrote: Hi Tim, When you said it gets quite large you weren't kidding! In the end I went for a small image size about what you suggested and scaled the animation image down a lot using interpolation none for speed. My first try went a bit wrong so I think other requirements are: The layer of art/text to be animated should be: The active layer. The top layer in the image. The same height as the image. All other layers will be the animation background. It's best if the background is all black. Attachment: The attachment santa.gif is no longer available @teapot, you were not kidding too... I did not expect that huge size from a 250x100 px original image to become a 10 GB in GIMP! Attachment: screenshot_20230331-173239.jpg [ 21.53 KiB | Viewed 1042 times ] Thanks for the tips @teapot > The same height as the image., I confirm, same height or you will have 2 lines which was my first try... @Tim, that's a very nice plugin, I love the effect Maybe can you give us the possibility to chose the maximum number of frames as an option? |
Author: | trandoductin [ Fri Mar 31, 2023 7:53 am ] |
Post subject: | Re: LED-Animation Plug-in |
The problem is each frame is one pixel movement....so an option to skip frames might not work out smoothly as the width might not divide evenly... Let me know how you want to create frames if numbers don't divide evenly and I'll add it... |
Author: | PixLab [ Sat Apr 01, 2023 12:35 am ] |
Post subject: | Re: LED-Animation Plug-in |
trandoductin wrote: The problem is each frame is one pixel movement....so an option to skip frames might not work out smoothly as the width might not divide evenly... Let me know how you want to create frames if numbers don't divide evenly and I'll add it... I would say round the number up, I'll try to explain (if I understood what you are asking) For example User want maximum 63 frames, but numbers don't divide, but 72 is a good multiple, script will do 72, IMHO it's better to have just a little bit more frames than asked, than less If user do not input a number of frame, script works as it is working right now It just come to my mind, "what could be the very minimum number of frames that a user could ask?" I would say 2 to 10, maybe the user want to use your script for something else (as usual, programmer programs for a specific purpose and users use it for a completely different purpose ) |
Author: | lylejk [ Sat Apr 01, 2023 1:39 am ] |
Post subject: | Re: LED-Animation Plug-in |
Excellent marquee animation Tran. |
Author: | trandoductin [ Sun Apr 02, 2023 5:29 pm ] |
Post subject: | Re: LED-Animation Plug-in |
Thanks Lyle. |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |