It is currently Tue Aug 18, 2026 2:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 5:26 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2090
molly wrote:
me too, and it is so easy peasy.

Sure is.

_________________
Image


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

Joined: May 07, 2014
Posts: 4527
Location: Canada
I just found this out, but just in case you guys didn't know
after saving the file as .gif animation, you can reopen the .gif and change the layers delay time individually (the number then "ms" for milliseconds in the name of the layer) of each layer.
Below here I made it slow down (a higher number of ms) for frames that show the words and left the frames as fast for when the words are rotating.
Image

_________________
TinT


Top
 Post subject: Re: Image Rotator
PostPosted: Mon Aug 04, 2014 6:39 pm  (#23) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Tin good to see your script has moved to a thread of it's own :yes

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


Top
 Post subject: Re: Image Rotator
PostPosted: Tue Aug 05, 2014 6:50 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 590
Trandoductin, I love this script.

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Wed Aug 06, 2014 12:15 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: Jan 10, 2013
Posts: 863
Tin, thank you for the script!

_________________
bbbbbbbbbbbImage
bbbbbbbbbbb Be patient, English is not my language.


Top
 Post subject: Re: Image Rotator
PostPosted: Thu Aug 07, 2014 9:00 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 10, 2013
Posts: 863
Animation on the browser is slower and some shadows appear.
Being a .gif image appear many jaggies and resolution drops tremendously.


Attachments:
coinsflip4.gif
coinsflip4.gif [ 156.47 KiB | Viewed 1813 times ]
coinsflip2.gif
coinsflip2.gif [ 389.1 KiB | Viewed 1877 times ]

_________________
bbbbbbbbbbbImage
bbbbbbbbbbb Be patient, English is not my language.


Last edited by Akros on Fri Aug 08, 2014 7:32 am, edited 2 times in total.
Top
 Post subject: Re: Image Rotator
PostPosted: Thu Aug 07, 2014 10:08 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thanks for the script Tin.
I used to have rotating signature here made with some other script
(not sure but think it was one of the fencepost's scripts)
Took it down since it was too irritating and now have even more irritating blinking sig :mrgreen:

Can you write a separate script that would rotate path(s) instead of pixels?
If yes, creating animations like this could be a lot of fun.


Top
 Post subject: Re: Image Rotator
PostPosted: Thu Aug 07, 2014 10:47 pm  (#28) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4527
Location: Canada
K1TesseraEna, i don't think i can write a script that can rotate paths. if i do it'll only rotate the paths around the z axis (from you going toward the screen) like gimp rotate tool. I don't know if you rotate a path around the x or y axis like your example animation.
That beehive pattern sphere animation is cool btw!

just for fun an a combination of blinking and rotating
Image

_________________
TinT


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 5:37 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Nice script trandoductin - thank you.


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 8:26 am  (#30) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
There are some errors in your let* bindings:
Quote:
(dummy-variable-to-make-let-happy 0)
(visibles (get-visibles image))
(set! visibles (cdr visibles))
(current-layer -1)
(copied-layer -1)
(horizontal-rotation 0)
(vertical-rotation 0)
(new-name "")
(frame 0)
The dummy-variable should not be necessary and should be removed.

The set! should be removed. Its presence should generate a syntax error but what actually happens with the Script-fu interpreter is a variable named 'set!' is created and initialized to the value of 'visibles'; the '(cdr visibles)' is ignored. This 'set!' variable has no effect since 'set!' is a keyword and never evaluated as a variable.

The other bindings should be supplied with initial values per the Scheme specification. The fact that the Script-fu does not flag this as a syntax error is a bug and the actual result is not consistent (which is probably the reason you were compelled to introduce the dummy variable). It does not matter what the initial value is, but it should be present. Even if your script works without the initial value on your machine, it may not on someone else's, or with different (including future) versions of GIMP.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 8:39 am  (#31) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
K1TesseraEna wrote:
Can you write a separate script that would rotate path(s) instead of pixels?
If yes, creating animations like this could be a lot of fun.[/font]

Writing a script that rotates a path around an axis would be a challenge, but do-able*. The effect in your provided link, however, is not a simple rotation around a (straight) axis, but a rotation around a (curved) path. While not completely impossible, I believe accomplishing this in Script-fu would prove even more of a challenge than handling rotation around an axis (since there is no path-along-path function in the PDB).

If I find myself with some spare time, though, I will investigate.


* There is no perspective transform for paths in the Procedural DataBase. I actually implemented such function for my Warp Text script.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 10:12 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
You're right saulgoode. Animation I made was done using arc deformation with variable radius, xyz rotation
relative to the pivot point per frame plus some perspective transformation.

Sounds a bit complicated to do since path tool in gimp isn't exactly a full-blown feature [I guess it should/could not be
in raster based image editors] Maybe some simplified version of such a script would be feasible and interesting (for us)
to play with. :)


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 2:55 pm  (#33) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4527
Location: Canada
saulgoode wrote:
There are some errors in your let* bindings:
Quote:
(dummy-variable-to-make-let-happy 0)
(visibles (get-visibles image))
(set! visibles (cdr visibles))
(current-layer -1)
(copied-layer -1)
(horizontal-rotation 0)
(vertical-rotation 0)
(new-name "")
(frame 0)
The dummy-variable should not be necessary and should be removed.

The set! should be removed. Its presence should generate a syntax error but what actually happens with the Script-fu interpreter is a variable named 'set!' is created and initialized to the value of 'visibles'; the '(cdr visibles)' is ignored. This 'set!' variable has no effect since 'set!' is a keyword and never evaluated as a variable.

The other bindings should be supplied with initial values per the Scheme specification. The fact that the Script-fu does not flag this as a syntax error is a bug and the actual result is not consistent (which is probably the reason you were compelled to introduce the dummy variable). It does not matter what the initial value is, but it should be present. Even if your script works without the initial value on your machine, it may not on someone else's, or with different (including future) versions of GIMP.


Thank you saulgoode, I have made these changes (now updated in the first post).

_________________
TinT


Top
 Post subject: Re: Image Rotator
PostPosted: Fri Aug 08, 2014 6:11 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you Tran and Saul.

_________________
Image


Top
 Post subject: Re: Image Rotator
PostPosted: Sat Aug 09, 2014 12:29 am  (#35) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8457
Location: On the other side of your screen
Made sure I got the latest script so just downloaded it again
Image
Image
These are a combination of both and a vertical

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group