It is currently Mon Sep 21, 2026 5:53 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Combining animated gifs in GAP
PostPosted: Thu Feb 23, 2012 10:18 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 23, 2012
Posts: 7
GIMP Version: 2.6.11
Operating System: Windows
OS Version: Windows 7 64
GIMP Experience: Intermediate Level

List any relevant plug-ins or scripts:
GAP



Hey all;

Sorry if this is out of place, but I can't find a GAP forum to post on....

I'm trying to make an animation of an oscilloscope wave trace. I want it to start out just shooting a straight line across the page, then after a while I want it to trace out a short sawtooth wave pattern, after which I want a logo to come up.

So far I'm 2 for 3. I have an animation for the flatline and the sawtooth, but how do I combine them in GAP? Is there some way to take 1 animation, have it play for several seconds, then switch to another animation and play it for a while? I think I could achieve the same thing by changing the background after several seconds, but I can't see a way to do that either.

Any ideas?

Thanks


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Thu Feb 23, 2012 10:41 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
If you are happy with the timing on your animations, just open animation 1 then open as layers animation 2 and you should have a single animation. Using this method would not require GAP.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 5:25 pm  (#3) 
Offline
GimpChat Member

Joined: Feb 23, 2012
Posts: 7
Thanks for your reply Graechan. That did work. The only problem is that I need the first animation to loop for several seconds (instead of just playing through once and then going to the 2nd animation), and then have the 2nd animation run for several seconds as well.

Can you suggest a method to achieve this in either GIMP or GAP?

Thanks again


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 5:54 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Try changing this in the layers (100ms) to 400ms instead.This will allow the layer to play longer.
I believe each 100 ms is a tenth of a second, so you may want to have it even longer. :)

_________________
Image


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 6:06 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Yes, I was just making a screen shot of what Rod already told you. I don't know how many layers you have in your project but all the layers that you want to pause longer just raise the frame rate to a higher number. The higher it is, the longer it will pause.

Image


I also made a 30 frame animation you can check out. It is in the xcf format so you can open it in Gimp and experiment with the frames. I changed it to replace, then on the second layer I changed the frame rate to (1500ms) so it will pause every time it gets to that frame. If you want the animation to be continuous, change that back to (100ms)

attachment below for the 3-D xcf file


Attachments:
3-D fun.xcf [7.97 MiB]
Downloaded 217 times

_________________
Image
Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 7:53 pm  (#6) 
Offline
GimpChat Member

Joined: Feb 23, 2012
Posts: 7
Thanks for the replies.

Molly, I downloaded your xcf (thanks for the hard work!), but I think you misunderstood me. I don't want the animation to stop altogether, I want it to loop rather than play just once before the next animation kicks in. So maybe the 1st animation would play, say, 40 times, then the 2nd animation would do the same thing, and so on.

Maybe I can describe what I'm trying to achieve: Imagine a scope or EKG trace. I want to have it trace a flatline for about 30 seconds, after which it will trace out a waveform for about 30 seconds. I thought about maybe cutting and pasting all the layers a number of times, but I don't know if that's even possible in the layers dialog, and I thought there may be an easier less time consuming method in any case.

Thanks again


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 8:36 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
You could just layer the animation.
For instance say your animation #1 is 10 frames, so you would place those in as layers 1-10 and then place the same layers above the 10th layer or on top.(copying this as many times as you wish), Gimp has no limit to layers.
Then do the same with your #2 animation.Put those frames on top and add the same ones on top of that.
So you would have your first animation loop as many times as you wish , and then your wave animation would loop as many times as you wish.Then it would loop back to the first layer/frame in the beginning, and replay.
Animation #1 would loop as many times as you need
Then animation 2 would loop consecutively.

I could help you more if i could see the actual animation or gif file.

_________________
Image


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 8:51 pm  (#8) 
Offline
GimpChat Member

Joined: Feb 23, 2012
Posts: 7
Thanks for your reply Rod.

Yes this is something that I was thinking would be a solution. However, I can't figure out a way to copy and paste all the frames at once. Each animation is 30 frames, and I may redo that to make it more smooth in the future. Copying and pasting something like that 1 frame at a time 30 or 40 times over will be hugely time consuming.

Is there a way to select more than 1 frame to duplicate? I've been trying to find a way using the Layers dialog window but can't get it happening.

I've enclosed the files I'm animating. It's with the flatline first, something like 30 or 40 times, then do that wave thing 30 or 40 times.

Thanks again everyone for your help.

Attachment:
New Wave 1.gif
New Wave 1.gif [ 701.87 KiB | Viewed 6821 times ]


Attachments:
New Flatline.gif
New Flatline.gif [ 407.25 KiB | Viewed 6821 times ]
Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 10:43 pm  (#9) 
Offline
GimpChat Member

Joined: Feb 23, 2012
Posts: 7
I found an answer to my question. All I need to do is keep opening the gif as layers until I have it playing as long as necessary, then do the same with the 2nd loop.

Given the first response to my original post, I guess it should've been obvious, but I never really thought of using the open layers option that way.

Thanks all


Top
 Post subject: Re: Combining animated gifs in GAP
PostPosted: Fri Feb 24, 2012 11:03 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
tempus when you open animation 1, you would still have animation 1 as a file so go to animation 1 again and open as layers as many times as you require before doing same with animation 2. When finished you could also use Filters > Animation > Optimise(for GIF) to minimise your filesize before saving

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group