It is currently Fri Apr 19, 2024 9:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Animated Painting Using Animated Path Stroking Script
PostPosted: Tue Jan 28, 2014 9:43 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
I could have sworn this tutorial was already posted here, but I can't seem to find it. If it is, please delete this version.

In this tutorial, I will show you how to animate painting or coloring using my animated path stroke script, which can be found here>>>>>>: Fencepost's Path Suite.

Here's what I'll show you how to do in this tutorial:

Image

In a later lesson, I'll describe how to select portions of contiguous areas so that they can be colored separately.

This tutorial requires a general understanding of basic GIMP concepts: adding layers, text, selecting brushes, creating paths, etc. I provide lots of details/screenshots, but won't be covering every little specific. GIMP version 2.6.6 is being used for this tutorial.

Let's begin!

Step 1

Create or open a new image with the desired background. Duplicate the background and add some text or an object you'd like to paint. Here's what my image looks like:

Image

and my layers:

Image

Step 2

With one of your selection tools (i.e. magic wand, path tool, select by color, etc.), select the area you wish to paint. Since I will be painting some text, and the area around my text is transparent, I can simply right-click on the text layer and choose Alpha to Selection:

Image

and all of my text is now selected. I've highlighted the selected area in red in the screenshot below. Yours won't be red.

Image

Keep the selection active until told to deactivate.

Step 3

Next, we need to create a path to paint across. Select your Path Tool Button Image and begin adding points until your selected area is covered by a path. You don't have to make the spacing between the lines too close as you can choose a larger brush. Additionally, don't make your path too long as it could cause the script to not work (more about that in a moment). Here's what my path looks like. I started at the green dot and ended at the red dot (you won't have a green or red dot - if you wonder why I explain that....I've been asked on numerous occasions in other tutorials where the dots are!!!)

The order you place your points is the direction a path moves.

Image

Step 4

A moment ago I stated that you don't want your path to be too long or the script won't work. I intentionally designed the script like that because of speed issues. However, for most smaller images, we don't have anything to worry about. But, I've added a script to help you know whether you've passed that point. In the paths dialog right-click on the path you just created and choose Path Details...

Image

A dialog will appear requesting which "stroke" to get information about:

Image

Since you've probably only created one individual path segment, you'll only have 1 stroke. (If you run into problems here, post a comment and I'll provide assistance.) A message window will pop up and provide you some basic information about the path. If highlighted statement below matches yours, no worries. Proceed. If the message says your path is too long, you'll either need to shorten your path or split it into segments. I won't be covering the details of splitting up paths nor will I be explaining how to paint more than one path. I have other path stroking tutorials that cover those details.

Image

Step 5

With our selection still active and the path drawn & path length verified, it's time to begin painting. There's really no need for our text/object layer at this point. You can delete it or drag it to the bottom of the layer stack where's it out of the way and make the duplicate of the background layer active. Here's what my layer dialog now looks like:

Image


Step 6


Let's pick a brush to paint with. Pick one that's wide enough to fill in the spaces, but don't pick a great big brush (that will really slow the script down). I'm using Galaxy (AP). Experiment.

Image

Also, I'm setting my brush spacing (the slider at the bottom of the brush dialog to 1). Set yours to whatever you want. You can always undo/redo if you don't like it. Try experimenting with setting the brush mode/opacity as well.

Image

Step 7

Now, with your selection still active (your selection is still active, right?!), go back to the paths dialog and right-click on your path. This time, choose Animated Path Stroking...

Image

In the dialog that appears, the following highlighted parameters are the ones we're most interested in:

Image

* As we previously discussed, you probably only have 1 stroke, so leave the top parameter at 1. (If you get an error and can't figure it out, post a comment and I'll walk you through it).
* Choose the number of frames you want to paint in. For this exercise, I picked 15. It's your animation, you choose!
* Unless you're planning on doing some additional work with the individual path segments that are created by the script, choose Paint Paths - Don't add path segments to image.
* Under Color Method choose Solid Color or Gradient (If you want to use a gradient, make sure you set a gradient length below. For this exercise, I'm painting with a solid color.)
* Set the foreground color
* If painting with a gradient, pick the desired gradient. If your gradient choice is one of the FG-BG options, make sure you pick the background color in the color swatch above this option.
* Set the gradient length (only necessary if painting with a gradient).

Click OK and the script will do the rest. After the script is finished running, go to Filters > Animation > Playback to see your animation in action. If you don't like what you see, go to Edit > Undo (Ctrl+Z) and fix what you don't like and try again. If you like what you see, deactivate your selection (Select > None) and save as an animated gif (File > Save or File > Save As...)

Here's my result again, with the animation timing of the first and last frames adjusted to a 1 second (1000 ms) delay.

Image

and here's one I painted with a gradient:

Image

Well, I hope this tutorial has been informative and you learned about some new tools. In a later lesson, I'll describe how to select portions of contiguous areas so that they can be colored separately. Make sure you show me your results.

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.


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: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 2:30 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Thanks fencepost, I love the animation tutorials. I need all the help I can get. :bigthup

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


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 2:55 am  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Good tutorial and a great script Fencepost
Image

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


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:09 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
fencepost, see the result of your plugin "Animated path stroking" + Decorate path.


Attachments:
conbagui_Carlos bling light.gif
conbagui_Carlos bling light.gif [ 106.65 KiB | Viewed 9373 times ]

_________________
Image
Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:13 am  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
cool Carlos

_________________
Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:20 am  (#6) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
Oh, Wow! That's snazzy, Carlos! Very nice and creative use of the script!

_________________
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: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:29 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
Thanks Molly and fencepost.

_________________
Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:46 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
Wow Carlos! I love that. Really creative.

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 7:26 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Instead of brush I used the eraser to do this
Image

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


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 7:28 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
Fabulous! That's what it's all about! Well, the hokey pokey is what it's all about, but you know what I mean! LOL

_________________
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: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 7:33 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
:ninja b FP
That is so cute Graechan :pengy :coolthup

_________________
Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 9:00 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thanks FencePost and Molly this script is fun to play with

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


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 9:02 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
Ok, I give up - I'm a newbie. I need a little help. I can't find the "path details". This is what shows up. "Import Path" is the last option in the dialogue.

Image

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 9:06 pm  (#14) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
Hmmm. Just for the sake of inquiry, did you refresh your scripts after you installed?

_________________
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: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 10:21 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
I did refresh my scripts - ahh but then I went to my scripts folder and found that I had just dropped it in there without taking the scm out of the folder :oops: . Once I did that and refreshed again, it worked. Thank you fencepost.

My first attempt...

Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Wed Jan 29, 2014 11:31 pm  (#16) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Dalia looks good for a first attempt

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


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Thu Jan 30, 2014 2:31 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Dec 23, 2013
Posts: 25
Nice tut fencepost, thanks for the script. One question, where do you adjust the delay for the first and last frames? I saw a delay option in the Export Image as gif dialog, but no option for choosing which frames. Did I miss something?


Attachments:
FP_Tut.gif
FP_Tut.gif [ 44.97 KiB | Viewed 2794 times ]

_________________
"I stay cool, and dig all jive, that's the way I stay alive. My motto, as I live and learn, is to dig, and be dug in return."
-Langston Hughes

Image
Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Thu Jan 30, 2014 5:06 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I just double click the first frame and change the delay there. Same thing with the last one.

_________________
Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Thu Jan 30, 2014 7:54 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Dec 23, 2013
Posts: 25
molly wrote:
I just double click the first frame and change the delay there. Same thing with the last one.

thanks Molly, I'll give it a shot.

_________________
"I stay cool, and dig all jive, that's the way I stay alive. My motto, as I live and learn, is to dig, and be dug in return."
-Langston Hughes

Image


Top
 Post subject: Re: Animated Painting Using Animated Path Stroking Script
PostPosted: Thu Jan 30, 2014 10:21 am  (#20) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
Nice work, Kellyman! Thanks for giving the tutorial a test drive.

_________________
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 new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Made An Animated GIF With An Ofnuts Script

35

No new posts Attachment(s) Falling snow animated Scheme Script for Gimp

121

No new posts Gimp filling the canvas not stroking the path - RESOLVED

7

No new posts Attachment(s) Two Animated Brushes

14

No new posts Attachment(s) Animated brush

8



* Login  



Powered by phpBB3 © phpBB Group