Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: [Script-Fu] Move Layers... (Similar to GAP's Move Path option)  (Read 1506 times)

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Move Layers... (Similar to GAP's Move Path option)
« on: January 20, 2010, 02:11:50 PM »
Are you a Mac user and want to do animations in GIMP, but GAP isn't compiled for you?  Are you able to use GAP, but find it a little bit daunting?  Well, here's my Move Layers script that based on GAP's Move Path functions.  This is a work in progress and I don't have all of the options in yet, but I've tried to give you as many options as possible. 

Download the script here: http://fencepost.gimpdome.com/Scripts/fp-script-fu-move-layer-anim.zip  Open the zip file and save the .scm file to your GIMP scripts folder (ie...C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts). Refresh your scripts and you're ready to go.  The script can be located under the Filters > Animation > Move Layer...

Some other useful scripts to use in conjunction with mine:

Saulgoode's
http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/combine-bg.scm
http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/anim-settings.scm


LIMN's
http://www.mediafire.com/?jzmre45q1oi (the split strokes script will let you separate all the strokes in a given path to individual paths)

Insanity Prevails
http://insanity-prevails.deviantart.com/art/Multi-Layer-Action-Scripts-72632286


I've prepared a couple of animations (there's a LOT more you can do with this script):

A simple ping pong:



Moving a layer along a path that you've created:



A ping pong along the path:



Here's one with the "up and right" option chosen and Layer Offset type to "Wrap around image"



Here's a picture of the dialog window:



* Choose the number of frames

*  Under the move layer options there are 11 options.  The first 8 don't actually move the layers across the screen but offset the information within the layer based on the number of frames you choose.  This is useful for snowfall, rain, or anything you need to scroll.  Works in conjunction with the Layer Offset Fill Type at the bottom of the interface.  The next 2 work by choosing coordinates.  The first, you choose the start and ending coordinates (where the layer will start from and where it will stop)  The next option your current layer position is set as the start point, you just enter the end point.  (Both of these options create a temporary path along which they move.  You can add this path to the image for your use later on if you desire.) 

*  Ping Pong Mode - lets you "bounce your animation back and forth)  The script will automatically eliminate the last layer in the animation as this would result in a delay (it's a copy of the beginning).

*  Ignore Background Layer During Ping Pong Mode - If you have a layer that will ultimately be merged with your animation, you probably don't want it included in the ping pong operation.  However, if you do want it added, just deselect this option.

*  Layer Handle for Placement (works only on Move Layer Options 9-11 since they are actually being moved):  The default places the very center of your layer on the coordinates.  Additionally, you can choose Top Left, Top Middle, Top Right, Middle Left, Middle Right, Bottom Left, Bottom Middle, or Bottom Right.

*  The starting and ending coordinates used with Move Layer Options 9 and 10.

*  As stated above, Move Layer Options 9 and 10 create a temporary path which each layer moves along.  You can add it to the image if so desired.

*  Blend Mode and Opacity - Set the blend mode/opacity for your layers.

*  Layer Offset Fill Type (Works only with Options 1-7) - When a layer is offset under Options 1-7, you can have the image wrap around so that there's no blank area, fill the blank area with the current background color, or just make it transparent.

As I stated, I'm working on some other options and will prepare a tutorial on using this script, but I encourage you to experiment.  If you have any questions, difficulties, or suggested features, please let me know.

Art
« Last Edit: January 20, 2010, 02:21:34 PM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline Darth_Gimp

  • Number One
  • *****
  • Posts: 2,894
  • Karma: 0
  • Faith, Folk, Family!
    • lds-jedi.deviantart.com
    • Odinic Rite
Re: [Script-Fu] Move Layers... (Similar to GAP's Move Path option)
« Reply #1 on: January 20, 2010, 09:47:07 PM »
that's rather cool 
GimpDome Group: http://gimpdome.deviantart.com/
My DeviantArt: http://lds-jedi.deviantart.com/

There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Move Layers... (Similar to GAP's Move Path option)
« Reply #2 on: January 21, 2010, 11:38:49 AM »
Thanks!
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Tags: