It is currently 17 Dec 2017, 23:03

GIMP Python Fu ScriptsParallax Animation Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 7/13
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Parallax Animation Script for GIMP

Post#1 by tim » 08 Feb 2017, 13:38


Instruction:
1) create 3 layers (background will scroll at 1x speed, next layer above will scroll at 2x speed, 3rd layer (top most) will scroll at 4x speed). Ideally your layers should be horizontally seamless so that when they move you don't detect their boundaries on left/right so that they look like you're moving forever.
2) run script
3) delete original 3 layers at very bottom.
4) Optionally rename layers using with help of this script -> https://gimplearn.net/viewtopic.php?t=72
5) Save as animation.

Script location: Python-Fu->Parallax...
:download:
parallax.zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.37 KiB) Downloaded 65 times
Sample results:
gimp_learn_forum_parallax.gif
gimp_learn_forum_parallax.gif # (72.25 KiB) Viewed 504 times (Watermarked | Thumbnail)
parallax_scrolling_sample.gif
parallax_scrolling_sample.gif # (811.99 KiB) Viewed 504 times (Watermarked | Thumbnail)
----------------------------------------------------
Version 2 of script takes 4 layers (bottommost layer is stationary background) and the other 3 layers on top just like version 1
:download:
parallax (2).zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.41 KiB) Downloaded 43 times
Sample result:
parallax_scrolling_sample_3.gif
parallax_scrolling_sample_3.gif # (87.93 KiB) Viewed 481 times (Watermarked | Thumbnail)
---------------------------------------------------
Version 3 of script (speed improvements) and creates a new image of animation frames instead of adding them to working image.
:download:
parallax (3).zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.5 KiB) Downloaded 56 times
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 7/13
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#2 by tim » 08 Feb 2017, 14:25


If you want to create animations larger than image size...just create the whole image as wide as you like then after you run script.
narrow your canvas, when you export as animated .gif, it'll prompt you to Crop all layers...so that you have a view smaller than your scrolling layers.
parallax_scrolling_sample_2.gif
parallax_scrolling_sample_2.gif # (445.64 KiB) Viewed 493 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/13
Posts: 1929
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,280.37 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 410
United States of America

Post#3 by Pat625 » 08 Feb 2017, 15:35


Tin, as usual I am having some trouble again. How do you set a background if you want 3 scrolling layers and not be transparent. I was trying to do 3 scrolling layers over a stationary background but it is not working. I just get the text jumbling up over each other. What am I doing wrong?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 7/13
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#4 by tim » 08 Feb 2017, 15:38


The script only apply scrolling to 3 layers. so it expects 3 layers.
If you want stationary background. You might have to do scrolling 3 layers animation first then add that stationary background in using one of Graechan's script but i don't know which script though. I know he has some script that adds in a back ground for animation.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/13
Posts: 1929
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,280.37 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 410
United States of America

Post#5 by Pat625 » 08 Feb 2017, 15:40


Thanks Tin, I have that script. Do I add that after I run Parallax, or before?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 7/13
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1006
x 217
Contact:
Canada

Post#6 by tim » 08 Feb 2017, 15:50


After running parallax, you add your background and run Graechan's script.
Or you can use version 2 (that i just added to post #1). Which allows you to have a 4th layer (bottom most) as stationary background.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/13
Posts: 1929
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,280.37 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 410
United States of America

Post#7 by Pat625 » 08 Feb 2017, 21:30


Tin, I have been playing with parallax, I like it but would like to make it much slower. These old folk eyes can't read it fast enough. I have increased and decreased numbers but not a good outcome. Any suggestions? Thanks for adding the 4th layer for a stationary background.
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar gnerd (3), User avatar tim (2)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: animicule
2: gnerd
3: Ella
4: Pat625
5: Issabella
6: Ella
7: Issabella

Who is online

Users browsing this forum: No registered users and 3 guests