Switch to full style
Post your GIMP animations here
Post a reply

Made An Animated GIF With An Ofnuts Script

Tue Apr 14, 2020 5:05 am

Image


I got the idea from Jimmy Marco's 'Falling Snow or Other Brush' script. I made some transparent bubbles that worked with the falling snow script but I kept getting some frozen bubbles.

My solution was to make a canvas twice the size of the finished gif and use a soap bubble brush on a transparent background.

I then used ofnuts 'copy and shift layer' script to move each layer up about 36px. Rather than use the script on a base layer I used it to shift up every subsequent layer on the Y axis. So its shifting up a layer once and then shifting it up again once and so on.
I have no idea if this is how the script is supposed to be used but it works :)

Re: Made An Animated GIF With An Ofnuts Script

Tue Apr 14, 2020 5:31 am

Congrats. Always more than one way to skin a cat. Way to be resourceful.

Re: Made An Animated GIF With An Ofnuts Script

Tue Apr 14, 2020 7:40 am

Hello, :)

You have frozen bubbles using my script ?? ... shame on me !

Your idea is very good and interesting.

I will follow it.

Good continuation and have fun. :)
@+++

Re: Made An Animated GIF With An Ofnuts Script

Wed Apr 15, 2020 7:25 pm

Image


This is a scaled-down version of a short video clip made with Gimp.

The 'copy and shift layer' script is predictable using the double canvas size method.
When the animation is done I scale the canvas size down to half size. It's easy to do.

I would like the script to shift the layer last shifted automatically.

Image


This is how the script runs. I had to do this 60 times to make the GIF above. It always opens with the last values so it's not too bad but I would like that part automated.

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 5:58 am

A better solution is on the way :)

Image

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 6:09 am

Merci Monsieur. :cheers

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 7:28 am

Doesn't look right. Gravity should make the bubbles go straight up. But that would work for snow or leaves. Something like this example I made with Aviutl.

Image

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 10:20 am

[quote="racer-x"]Doesn't look right. Gravity should make the bubbles go straight up.

The "shake" is a setting. Now, if the glass in on your yacht's sun deck table and there is some swell, the bubbles won't go straight up.

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 3:15 pm

Get `ofn-scroll-layer` from you-know-where.

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 3:21 pm

"ofn-scroll-layer" in google reports gibberish, wouldn't it be easier to post a link?

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 3:54 pm

Just type "ofnuts" in Google and the first suggestion is the right one.

Otherwise: http://sourceforge.net/projects/gimp-to ... s/scripts/

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 8:46 pm

Useful script, thank you Ofnuts :tyspin

I wonder if it would be worth having an option for the user to specify a maximum number of frames produced? For example when the layer to be scrolled is more tiled less frames are needed.

e.g. for a layer of size image 640x480 with Step V -5 of course the script generates 96 frames.

But I made the layer a 2x2 tile, so only need 48 frames. I can get this by deleting the unwanted frames but that would be more awkward the more frames are involved.

(Minor point but the champagne images aren't showing in the ofn-scroll-layer.html page, think the filenames changed case).

Image

Re: Made An Animated GIF With An Ofnuts Script

Fri Apr 17, 2020 9:47 pm

The plugin looks good with excellent documentation. This is just the animation ofnuts made from the html.


Image


I'm going to finish a gif I started with the old plugin before I start with this one. I suspect there is a new effect hiding in these plugins.

It's not easy writing a plugin that is used across multiple systems. Also in animation the eye seems to be drawn to any defect in the animation.
I've found bubbles are easy because the beginning and end can just be a space in the 'flow'.

Hi teapot. You started all of these rising bubbles :) The following deletes every second file either even or odd numbers on linux:

Code:
rm -f *[13579].png

Code:
rm -f *[24680].png


Note. If you use the top one then file 2 becomes file 1 after you re-number. Running it again would delete 2 files in the series. That means alternate between these and re-number if removing multiple files.

Re: Made An Animated GIF With An Ofnuts Script

Sat Apr 18, 2020 3:08 am

teapot wrote:I wonder if it would be worth having an option for the user to specify a maximum number of frames produced? For example when the layer to be scrolled is more tiled less frames are needed.

e.g. for a layer of size image 640x480 with Step V -5 of course the script generates 96 frames.

But I made the layer a 2x2 tile, so only need 48 frames. I can get this by deleting the unwanted frames but that would be more awkward the more frames are involved.

Give a max number, no, but a pair of tiling factors, yes.

teapot wrote:(Minor point but the champagne images aren't showing in the ofn-scroll-layer.html page, think the filenames changed case).


As far as I can tell they have matching cases in the ZIP and in the HTML (I'm on Linux, so case-sensitivity of file names is a fact of life). The final animation is a WEBP image that is supported in decent browsers.

Re: Made An Animated GIF With An Ofnuts Script

Sat Apr 18, 2020 5:28 am

Updated with support for tiles.

Re: Made An Animated GIF With An Ofnuts Script

Sat Apr 18, 2020 6:10 am

Image


Maybe this should come with some sort of health warning? :rofl

This started as 400 frames and I reduced it to 200, then 100 using the method above.

Re: Made An Animated GIF With An Ofnuts Script

Sat Apr 18, 2020 9:37 pm

Tas_mania, I'm going boggle eyed :hehe

ofnuts wrote:Give a max number, no, but a pair of tiling factors, yes.
Thank you :bigthup

ofnuts wrote: As far as I can tell they have matching cases in the ZIP and in the HTML (I'm on Linux, so case-sensitivity of file names is a fact of life). The final animation is a WEBP image that is supported in decent browsers.
Thanks, it was me mucking up my directory :oops:

Image

Re: Made An Animated GIF With An Ofnuts Script

Sun Apr 19, 2020 5:18 am

teapot wrote:
[ Image ]


Cleverly done :)

Re: Made An Animated GIF With An Ofnuts Script

Mon Apr 20, 2020 6:47 pm

Hi ofnuts.
I found a problem using the scroll-layer script. I would like to animate this image horizontally.
Image


With settings of 1 horizontal step and 1 horizontal tile I get 3840 layers at 87Gb image size. That's too big for my computer to use. Is it possible to get less layers? The script works OK with animated GIFs but I like making 1280X720px images for video.

Re: Made An Animated GIF With An Ofnuts Script

Mon Apr 20, 2020 7:14 pm

Your image is 960px (zoomed at 25%, so 3840px wide). If each frame is shifted 1px, you need 3840 frames for a full cycle... if you had less frames the animation wouldn't be continuous. If you want less frames use a bigger step or a smaller image o( tile the image). Note also that the layer is much taller (4x) than necessary... this costs you RAM.
Post a reply