It is currently Tue Nov 10, 2026 10:04 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Animation script request (SOLVED) thanks Ofnuts!
PostPosted: Fri Jun 22, 2012 1:09 pm  (#1) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
I thought there was a script that would
1) take all the layers of an XCF
2) duplicate them
3) stack them in reverse order and paste them back into the original xcf

Causing a ping-pong or reverse animation effect.

Example
Image

So far i can not find one that does this. My request is for a SCM or PYTHON script that will do this.

_________________
Image


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: Animation script request
PostPosted: Fri Jun 22, 2012 1:42 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
It seems the most obvious animation script to produce but I've never come across one.


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 1:49 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
If I remember correctly there was discussion, about a reverse order script like this, recently. Not sure about the duplicate part though. I'm on a mission now to find it.

ed., Have you looked at the extra options in the "Clone-Layer Tool".
http://registry.gimp.org/node/25422

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Last edited by Odinbc on Fri Jun 22, 2012 1:54 pm, edited 1 time in total.

Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 1:52 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
There is a reverse layer script but it doesn't ping pong the animation.


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 2:49 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
I know it seems like it would be easy to implement but i have found nothing so far. :)
With the GIF i posted i had to
Name the XCF
Save it
Open it as a new image.
Reverse the layer order
Save it
Re open as layers into the first XCF file.

That could be scripted i think.

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:06 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
mirror-layers here:

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

Adds entry at bottom of "Image" menu. Duplicate all layers in reverse order on top of the existing ones.
It will not duplicate the top layer (come to think of it, it should also avoid duplicating the last, I think, tell me if that would be better).

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:18 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you ofnuts.
I have a mirror-0.0.py and now this mirror-layers-0-0.py. These are different plug-ins aren't they?

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:34 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
Thanks Ofnuts! :)

It works excellent. Great idea to not copy the top layer.
It seems to work cleaner without the last one also so if you want to have it do that it will be okay.
Image


I can't believe this isn't actually a menu item in default stack menus.

Thanks again!

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:35 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
molly wrote:
Thank you ofnuts.
I have a mirror-0.0.py and now this mirror-layers-0-0.py. These are different plug-ins aren't they?
Must be, since I don't remember writing mirror-0.0.py and I just wrote mirror-layers-0-0.py...

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:37 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
ofnuts wrote:
molly wrote:
Thank you ofnuts.
I have a mirror-0.0.py and now this mirror-layers-0-0.py. These are different plug-ins aren't they?
Must be, since I don't remember writing mirror-0.0.py and I just wrote mirror-layers-0-0.py...


Molly what does Mirror do? Reflection of another layer perhaps?

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:41 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Rod wrote:
It seems to work cleaner without the last one also so if you want to have it do that it will be okay.

Fixed in v0.1 :)

_________________
Image


Top
 Post subject: Re: Animation script request
PostPosted: Fri Jun 22, 2012 3:44 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
ofnuts wrote:
Rod wrote:
It seems to work cleaner without the last one also so if you want to have it do that it will be okay.

Fixed in v0.1 :)


Thank you my friend. :)

_________________
Image


Top
 Post subject: Re: Animation script request (SOLVED) thanks Ofnuts!
PostPosted: Fri Jun 22, 2012 6:54 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
I dont know Rod. All I know is I have that and also the one ofnuts just posted and they are both by him according to the site, they are next to each other on his list.
Image


Attachments:
mirror-0.0.py.7z [2.26 KiB]
Downloaded 109 times

_________________
Image
Top
 Post subject: Re: Animation script request (SOLVED) thanks Ofnuts!
PostPosted: Fri Jun 22, 2012 7:16 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16253
That one is for mirroring paths Molly
http://registry.gimp.org/node/25986

But check this out :lol
Of all the days this could be posted at the registry. :)
http://registry.gimp.org/node/26525

_________________
Image


Top
 Post subject: Re: Animation script request (SOLVED) thanks Ofnuts!
PostPosted: Fri Jun 22, 2012 7:20 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Rod wrote:
That one is for mirroring paths Molly
http://registry.gimp.org/node/25986

But check this out :lol
Of all the days this could be posted at the registry. :)
http://registry.gimp.org/node/26525


Nice one Rod. Very useful.


Top
 Post subject: Re: Animation script request (SOLVED) thanks Ofnuts!
PostPosted: Fri Jun 22, 2012 7:28 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Yes that is a coincidence. Thanks for the script Rod.

_________________
Image


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group