It is currently Wed Nov 22, 2017 4:20 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Simple Animated Shapes
PostPosted: Thu Dec 26, 2013 12:04 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
ImageImage

In this tutorial, I will show you how create the following simple animations using my animated path stroke script, which can be found here>>>>>>: Fencepost's Path Suite.

The script zip file was updated today (December 26, 2013) to include brushes from GIMP 2.6. GIMP 2.8 no longer uses them, but in order to run the script effectively without having to modify the script itself, please add the brushes to your GIMP brushes folder here: C:/Program Files/GIMP-2.0/share/gimp2.0/brushes There have been no changes to the script, so if you have the previous version, there is no need to install it.

While the animations in this tutorial are simple examples of what can be accomplished with the script, the possibilities are great.

Let's Begin!

Step 1

Open a new image (200 X 200) with a white layer. Add a second layer filled with white.

Image

Step 2

Add some guides to your image to help with placement of the paths. This isn't absolutely necessary, but I did it for teaching purpose.

Go to Image > Guides > New Guides By Percent... The following dialog will appear:

Image

Add the following vertical guides (you'll have to add them one by one): 50%, 60%, 80%, and 90%. Add the following horizontal guides: 10%, 20%, 40%, and 50%.

Your image should now resemble this:

Image

Make sure that Show Guides and Snap to Guides are turned on:

Image

Step 3

Select your Path Tool Button Image

and click at the following locations. When you get to number 5 hold down the Ctrl key while clicking the mouse button to close the path. The order you place your points is the direction a path moves.

Image

Step 4

Let's start our animation!

Activate your top layer by clicking on it in the layer dialog window:

Image

In the brush dialog, select your brush and adjust the spacing as necessary. I chose Brush "Circle Fuzzy (07)" and set the spacing to 1.0

Image

Right-click on the path we just created in the Paths Dialog window and choose Animated Path Stroking...

Image

The following window will appear. I won't cover the all the options in the dialog window (only those we need to use); however, I encourage you to experiment with them later to see what the script can do.

For this animation, we will tell the script that we want to paint on 15 layers (since the second layer of the stack is active, it will start painting on this layer.) The script uses the current active paint tool (in this case the paintbrush) and the chosen brush.

Next, under Paint and Path Options we'll just tell it to paint the individual path segments, but don't add them to the image. If you needed them for later, you could add them, but we don't.

Image

Hit OK.

The following animation should result. You can view it by going to Filters > Animation > Playback...

Image

Step 5

Next, let's rotate our path for petal #2. Double-click the rotate tool

Image

and click on the path button, as shown:

Image

Now, click on the image with the rotate tool and enter the following information. Choose Rotate after you're done.

Image

Step 6

With the path rotated, again activate the 2nd layer from the bottom in the layer stack (you should now have 16 layers):

Image

Right-click on the path in the path dialog and run the Animated Path Stroking script again using the same settings as before.

Your outcome should look like this:

Image

Step 7

Repeat steps 5 & 6, two more times and your animation should look like so:

Image

Pretty simple, eh?!


Next, let's reverse a couple of the way the petals are drawn. As you may recall, the way a path is drawn is the direction it will be painted. For this animation, we'll use a couple of other scripts included in my path suite, to simplify things a little.

Step 1

Follow the steps above until you get your first animated petal:

Image

Step 2

Add a reversed copy of the path to the image. We already know what direction the original path goes, but what if we didn't know? Right-click on the path in the path dialog and choose, Path Direction... (Use of the Path Direction script is optional and you can skip directly to Step 3. Currently, the script is written in English only and those using a different translation of GIMP may cause an error when running the Path Direction script. Thank Carlos Diniz for bringing this to my attention.)

Image

A dialog will appear, requesting which stroke are you wanting to find the direction of. A stroke is an individual path. A path may contain several individual strokes. However, since we only created on stroke in our path, so leave it at the default of 1. If you choose a stroke number that doesn't exist, the script will give you an error.

Image

A new layer will be added to your image. It will show the direction of the path (green is the starting point and red the ending point.) The script will also tell you if the path is closed or not. Just because 2 ends of a path are right next to (or on top of) each other, does not mean it's closed. Your image should look like this:

Image

To reverse the direction of a path, you can simply Right-Click on the path and choose Reverse Path Direction...

Image

A dialog will appear requesting which stroke to reverse. Again, there's only one stroke, so click OK.

Image

A new path will be added to the list.

Image

Let's test it's direction (Right-Click on the new path and choose Path Direction...There's only one stroke in this path so leave it at 1 and click OK). A new layer will appear showing that it's been reversed. Remember green is the beginning and red the ending.

Reversed path direction: Image

Original path direction: Image

Now delete the two "direction layers" that were added. (Don't delete the reversed path, however.)

Step 3

Activate the 2nd layer from the bottom in the animation.

Step 4

Now, activate the original path in the paths dialog

Image

and rotate it 180 degrees using the same method described in Step 5 above.

Image

Step 5

Run the Animated Path Stroking script using the same settings as before. You should now have this:

Image

Step 6

Activate the 2nd layer from the bottom as shown before.

Step 7


Activate the reversed copy of the path:

Image

and, using the rotate tool, rotate it 90 degrees.

Image

Step 8

Run the Path Stroking script again using the same settings.

Step 9

Repeat Steps 6 - 8 one last time (using the reversed path rotated 180 degrees) and your final animation will look like so:

Image

Well, I hope this tutorial has been informative and you learned about some new tools. Make sure you show me your results. Once you understand the techniques, try experimenting with your own paths.

Cheers!

Art

_________________
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.


Last edited by fencepost on Mon Jan 27, 2014 10:26 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: Simple Animated Shapes
PostPosted: Thu Dec 26, 2013 12:06 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14135
Thanks for posting that one Fencepost, I remember doing that one before and it was a fun one.

_________________
Image


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Thu Dec 26, 2013 1:11 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5130
Location: Metro Vancouver, BC
I can see I'm going to be busy with your new batch of tutorials. :)

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


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Thu Dec 26, 2013 3:40 pm  (#4) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13984
Location: USA
Very cool! :)

Image


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Thu Dec 26, 2013 4:41 pm  (#5) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13984
Location: USA
I like how you can also use different brushes such as the animated vine brush. :)

Image


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Fri Dec 27, 2013 10:51 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
fencepost, I tested your script following the tut "Simple Animated Shapes" and it worked correctly, but the step in which you taught the way to reverse the path an error message appeared. The problem is that when GIMP is translated, the gradient's name automatically changes which prevented your script to find the gradient "FG to BG (HSV clockwise hue)." As this gradient is not important to the functioning of the script, but only for demonstrative effect of inversion, suggest you put an alert in the tutorial for those people who are using the GIMP in other countries that do not use the English language. The same happened with a script that had a brush "clipboard" which in Portuguese, was translated by "área de transferência." I reported this and the script has been adapted to other languages​​.
Translation of the error message: Error to execute fp-script-fu-vector-direction. ...... The gradient 'FG to BG (HSV clockwise hue) was not found.'


Attachments:
Error message FG to BG.png
Error message FG to BG.png [ 17.07 KiB | Viewed 5047 times ]

_________________
Image
Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Sat Dec 28, 2013 10:49 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jun 25, 2013
Posts: 142
Location: Wyoming, Michigan
Image

_________________
Image
http://tonysteeleebw.deviantart.com/


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Sun Dec 29, 2013 3:56 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
Great work, everyone! Thanks for trying it out. @Carlos, I added the "optional" statement regarding the Path Direction script. Thanks for bringing it to my attention and my apologies for the issue.

_________________
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.


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Sun Dec 29, 2013 4:17 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14135
Nice job Tony.

_________________
Image


Top
 Post subject: Re: Simple Animated Shapes
PostPosted: Thu Oct 27, 2016 8:41 am  (#10) 
Offline
GimpChat Member

Joined: Dec 29, 2015
Posts: 217
Can anybody explain dialogue box of this script. Or does anybody know how to start different alphabet paths in sequence not simultaneously?


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Simple path shapes

114

No new posts Attachment(s) [Solved]Simple Simple New Layer(s) Plugin Request/Link

17

No new posts Attachment(s) Animated Painting Using Animated Path Stroking Script

31

No new posts Attachment(s) Shapes Help

7

No new posts random-shapes.py

8



* Login  



Powered by phpBB3 © phpBB Group