Applying scripts to movies
The Script feature lets you repeat the same actions for each frame in a movie. For example, you might want to apply an effect like Glass Distortion to a video clip. You can record a script that applies the Glass Distortion effect to a single image and then, with a single command, apply that script to the entire movie. A script can contain almost any action — a single command, a series of commands, or the many steps in creating an original drawing. You’ll devise scripts based on the needs of your project.
You cannot undo changes after applying a script to a movie. Before applying the script, you should become familiar with scripting and experiment with a separate sample image. You might want to work with a copy of the movie, or you might apply the script to a short sample movie to test it. For complete information on working with scripts, see Using scripts to automate tasks.
Using scripts to set grain position
You can use a script to apply a surface texture (paper grain) to an entire movie. In this case, you have several options for the position of the grain in each frame. You can put the grain in exactly the same position, move the grain randomly, or move it linearly by a set number of pixels.
Using scripts to apply brushstrokes
You can apply a recorded brushstroke to a movie. Corel Painter divides the stroke into as many segments as there are frames and places the segments in successive frames. This feature is most useful when used with the Image Hose. When you apply a brushstroke to a movie using the Image Hose brush, one or more Nozzle images are deposited on each frame. If the Nozzle file is an animated sequence — for example, a person walking — Corel Painter can drop successive images on successive frames. Play the movie back, and the person walks across the document window. For this to work, you must set up the Nozzle file appropriately and have the right Image Hose brush size. For more information, see Painting with the Image hose.
To create a script for a movie
1
Choose
Window
Scripts.
2
In the
Scripts panel, click the
Script options button

in the upper-right corner, and choose
Record Script.
3
Perform the actions you want included in the script, and click the
Stop button

in the
Scripts panel.
4
In the
Script Name dialog box, type a name for the script in the
Save as box.
To apply a script to a movie
1
Open the movie to which you want to apply the script.
2
Choose
Window
Scripts.
3
In the
Scripts panel, click the
Script options button

, and choose
Apply Script To Movie.
4
In the
Apply Script To Movie dialog box, double-click a script.
Corel Painter applies that script to each frame in the stack. If you have a few small frames in your movie, and the script is not a complicated one, the script can be applied quickly. If the movie has several large frames, a complicated script could take a long time.

You can apply only scripts that do not create new images.
To set grain position with a script
1
Record a script that applies surface texture or dye concentration to an entire image.
2
Choose
Movie
Set Grain Position.
3
In the
Set Grain Position dialog box, enable one of the following options:
•
Grain Stays Still — allows the grain to remain in the same position throughout the movie
•
Grain Moves Randomly — moves the grain as the movie plays. To use this option, you must disable the
Record Initial State option when recording your script. In the
Scripts panel, click the
Script options button

, and choose
Script Options. In the
Script Options dialog box, disable the
Record Initial State check box.
•
Grain Moves Linearly — increments the grain movement. Specify the number of pixels you want the grain to move horizontally and vertically from one frame to the next.
5
Choose
Window
Scripts.
6
In the
Scripts panel, click the
Script options button

, and choose
Apply Script To Movie to apply the grain script. Each frame is textured according to your selected method.
To apply a brushstroke script
1
Choose
Brushes
Record Stroke.
2
Create a brushstroke in the document window.
4
Choose
Movie
Apply Brush Stroke To Movie.