Quick links to procedures on this page:
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 Using the Image hose.
2
|
In the Scripts panel, click the Script options button in the upper-right corner, and choose Record Script. |
4
|
In the Script Name dialog box, type a name for the script in the Save as box. |
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. |
You can apply only scripts that do not create new images.
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. |
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. |
1
|
Choose Brushes Record Stroke. |
4
|
Choose Movie Apply Brush Stroke To Movie. |
Copyright 2017 Corel Corporation. All rights reserved.