It is currently Fri Mar 29, 2024 6:43 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Image Rotator
PostPosted: Sun Aug 03, 2014 8:03 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
here's a simple script to assist in the animation.
It'll be available under Script-Fu/Create New/Rotate Plane Animation...
It'll create new layers to rotate all your visible frames, it'll delete original frames then you can save as .gif animation.
Attachment:
Rotate_Plane_Animation.scm [4.6 KiB]
Downloaded 305 times

you can select number of frames per (visibled layer) and rotation type (Horizontal/Vertical/Both) selecting "Both" will make it look like a diagonal rotation

Here's a sample run result
Image

_________________
TinT


Last edited by trandoductin on Fri Aug 08, 2014 2:53 pm, edited 3 times in total.

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: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 9:00 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very cool trin, thank you. Is this one of your scripts?

_________________
Image


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 9:07 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
yes, i just did it today

_________________
TinT


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 9:30 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Trin if you copy the the original layers to a list you can delete after (let (original-layers visibles) there are 2 transparent layers in there as well
Image

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


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 9:32 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
the transparent layers are products of rotating a plane to -90
Image

_________________
TinT


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 9:56 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Yes your right there Trin I didn't see that in there did you try this at the end to delete the original layers
(map (lambda (x) (gimp-image-remove-layer image x)) original-layers)

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


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 10:17 pm  (#7) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
Graechan thanks for that line of code, i have never used map function before.
The latest version (in first post) deletes original layers.
another sample with Graechan's avatar.
Image

_________________
TinT


Last edited by trandoductin on Fri Aug 08, 2014 2:54 pm, edited 2 times in total.

Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 10:49 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Trin it's something I picked up reading Fencepost's scripts and here is how it is normally used to perform a function on all the layers
(map (lambda (x) (gimp-drawable-set-visible x TRUE)) (vector->list (cadr (gimp-image-get-layers image))))

Trin you'll make my Goanna dizzy

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


Top
 Post subject: Sig Rotator
PostPosted: Sun Aug 03, 2014 10:58 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
Very cool script.

_________________
Image


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Sun Aug 03, 2014 11:14 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Warrior Trin has done an excellent job on this script :bigthup

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


Top
 Post subject: Sig Rotator
PostPosted: Mon Aug 04, 2014 3:57 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 17, 2014
Posts: 1426
Image

It’s amazing how fast you can write a script, Trin, for a tut that’s almost 4 years old :bigthup Congrats!

_________________
Ella's gallery - YouTube


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Mon Aug 04, 2014 6:11 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
This is a pic taken yesterday of my sister on Grandfather Mountain North Carolina
Image

_________________
Image


Top
 Post subject: Re: Fencepost's Sig Rotator Tutorial
PostPosted: Mon Aug 04, 2014 6:37 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
I made this for my sig on another forum. I like Becker knives, hence, a Beckerhead, haha.

Image

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 11:07 am  (#14) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 12978
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
This script looks to be a lot of fun, but I haven't any ideas yet on what to use it on.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 12:14 pm  (#15) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
You will come up with something Wallace, you are a very creative person.

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:05 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
Lots of fun, this script:

Image

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:20 pm  (#17) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3970
Location: Canada
glad you're enjoying the script Warrior! :)

_________________
TinT


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:23 pm  (#18) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
It is an excellent script, I love it

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:24 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
molly wrote:
It is an excellent script, I love it

It really is. I can see using this one quite often.

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:26 pm  (#20) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
me too, and it is so easy peasy.

_________________
Image


Top
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Retexture an image with another image as "Image Pattern" Plug-in

4

No new posts GIMP XCF image plug-in could not open image; File is Not 0 Bytes

4

No new posts Show image on web browser to fill 100% width AND image map

2

No new posts Assembling to look like image while using up tiles from another image.

1

No new posts Attachment(s) image name

2



* Login  



Powered by phpBB3 © phpBB Group