<li class="Bulleted"><a href="23-Video9.html#1006139">Automatic Selecting and Scripting for Efficiency in Compositing</a></li><br/>
<li class="Bulleted"><a href="23-Video9.html#1006237">Cloning a Movie</a></li><br/>
<li class="Bulleted"><a href="23-Video9.html#999617">Tracing a Movie</a></li><br/>
</td>
</tr>
</table>
<blockquote>
<h2 id="1006989" class="Heading1">
<a name="1006989"> </a>Rotoscoping
</h2>
<p id="1007003" class="Body">
<a name="1007003"> </a>Rotoscoping is the process of painting on a movie, applying effects to a movie, or compositing a portion of the images from one movie with the images of another. This is often done to put the action of a person filmed in one place on a background filmed in another. You can also use rotoscoping to remove an element from a video clip. As an example, we made a short movie of an owl on a roost. After capturing the video digitally, we imported it into Corel Painter and removed the roost frame by frame, using the masking tools.
<a name="1007011"> </a><i>At the top is a frame of a movie showing an owl perched on a roost. The bottom left frame shows the owl without the roost. The bottom right frame shows the mask used to hide the roost.
</i></p>
<p id="1007012" class="Body">
<a name="1007012"> </a>Rotoscoping is also useful for adding a background to an animation. The process is the same whether you're working with digitized video or painted animation cells.
</p>
<h3 id="1008970" class="Heading2">
<a name="1008970"> </a>Applying Effects to a Single Frame
</h3>
<p id="1008971" class="Body">
<a name="1008971"> </a>You can paint on, or apply effects to any frame in a movie. For information about applying effects, refer to <a href="15-Effects3.html#998944">"Basics of Applying Effects"</a>.
</p>
<h5 id="1008973" class="ToDoHead">
<a name="1008973"> </a>To paint on or apply an effect to a single frame
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1008974"> </a>Using the Frame Stacks palette, go to the frame you want to work in. To go to a frame, you can click on the thumbnail of the frame or click the Step Forward button <img src="images/23-Video14.jpg" height="16" width="16" border="0" hspace="0" vspace="0" />
to advance to the frame. You can also choose<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline"> </span><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Go to Frame</span><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline"> </span>and enter the number of the frame to which you want to go.</li>
<li class="SmartList1" value="2"><a name="1008975"> </a>When the frame appears in the image window, you can use any of the Natural-Media tools to modify the image. Anything you can do in a single image, you can do in a frame. Paint with a brush, add layers, or apply an effect to a selection or to the entire image. </li>
<p id="1008976" class="ToDoBody">
<a name="1008976"> </a>Paint on the image in the image window-not on the thumbnail in the Frame Stacks palette.
</p>
<li class="SmartList1" value="3"><a name="1008977"> </a>When you're ready to work on the next frame, click the Step Forward button. </li>
<p id="1009110" class="ToDoBody">
<a name="1009110"> </a>Changing frames automatically saves the frame. You cannot undo changes after the frame is saved.
</p>
</ol>
<h3 id="1009120" class="Heading2">
<a name="1009120"> </a>Applying Scripts to Movies
</h3>
<p id="1009124" class="Body">
<a name="1009124"> </a>The Script feature in Corel Painter 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, then with a single command, apply that script to the entire movie.
</p>
<p id="1009125" class="Body">
<a name="1009125"> </a>For complete information on working with scripts, refer to <a href="22-Scripting2.html#1000483">"Scripting"</a>.
</p>
<p id="1009129" class="Body">
<a name="1009129"> </a>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.
</p>
<p id="1009130" class="Body">
<a name="1009130"> </a>There is no Undo for applying a script to a movie. 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.
</p>
<h5 id="1009132" class="ToDoHead">
<a name="1009132"> </a>To create a script for a movie
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1009133"> </a>Become familiar with recording a script in <a href="22-Scripting2.html#1000483">"Scripting"</a>.</li>
<li class="SmartList1" value="2"><a name="1009137"> </a>Working with a separate sample image, determine the precise set of actions you want to record as a script; for example, applying the Adjust Colors or Brightness/Contrast effect.</li>
<li class="SmartList1" value="3"><a name="1009138"> </a>When you've determined the actions, start over with your sample image. This time, record the entire process as a script. </li>
<li class="SmartList1" value="4"><a name="1009139"> </a>Save the script and assign it a descriptive name-you might want to use it on a different project sometime in the future.</li>
</ol>
<h5 id="1009141" class="ToDoHead">
<a name="1009141"> </a>To apply a script to a movie
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1009142"> </a>Open the movie to which you want to apply the script. </li>
<li class="SmartList1" value="3"><a name="1009144"> </a>A dialog appears listing the scripts in the current library and offers options for using them.</li>
<li class="SmartList1" value="4"><a name="1009145"> </a>Double-click the script you saved.</li>
<p id="1009149" class="ToDoBody">
<a name="1009149"> </a>Corel Painter applies that script to each frame in the stack. If you have 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.
</p>
</ol>
<h3 id="1009151" class="Heading2">
<a name="1009151"> </a>Using Scripts to Set Grain Position
</h3>
<p id="1009152" class="Body">
<a name="1009152"> </a>You might 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.
</p>
<p id="1009153" class="Body">
<a name="1009153"> </a>For instructions on applying surface texture and dye concentration, refer to <a href="15-Effects3.html#998944">"Basics of Applying Effects"</a>. For instructions on recording a script, refer to <a href="22-Scripting2.html#1000483">"Scripting"</a>.
</p>
<h5 id="1009160" class="ToDoHead">
<a name="1009160"> </a>To set grain position
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1009161"> </a>Record a script that applies surface texture or dye concentration to an entire image. </li>
<li class="SmartList1" value="2"><a name="1009162"> </a>Choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Set Grain Position</span>. The Frame-to-Frame Grain Position dialog appears.</li>
<li class="SmartList1" value="3"><a name="1009164"> </a>Choose one of the following options:</li>
<p id="1009165" class="ToDoBody">
<a name="1009165"> </a><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Grain Stays Still</span>-this option allows the grain to remain in the same position throughout the movie.
</p>
<p id="1009166" class="ToDoBody">
<a name="1009166"> </a><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Grain Moves Randomly</span>-this option moves the grain as the movie plays.
</p>
<p id="1009167" class="ToDoBody">
<a name="1009167"> </a><span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Grain Moves Linearly</span>-this option increments the grain movement. Fill in the number of pixels you want the grain to move horizontally and vertically from one frame to the next.
<li class="SmartList1" value="5"><a name="1009169"> </a>Apply the grain script by choosing <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Apply Script to Movie</span>. Each frame is textured according to your selected method.</li>
<li class="SmartList1"><a name="1012994"> </a>If you choose Grain Moves Randomly, you must disable the Record Initial State option when recording your script. For more information, refer to <a href="22-Scripting6.html#999026">"Recording Scripts"</a>. </li>
</ul>
<h3 id="1009181" class="Heading2">
<a name="1009181"> </a>Using Scripts to Apply Brush Strokes
</h3>
<p id="1009185" class="Body">
<a name="1009185"> </a>Corel Painter also lets you apply a brush stroke to a movie.
</p>
<p id="1009189" class="Body">
<a name="1009189"> </a>Corel Painter divides the stroke into as many segments as there are frames and places the segments in successive frames.
</p>
<p id="1009190" class="Body">
<a name="1009190"> </a>This feature is most useful when used with the Image Hose. When you apply a brush stroke to a movie using the Image Hose brush, Corel Painter deposits one or more Nozzle images 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 image window. For this to work, you must set up the Nozzle file appropriately and have the right Image Hose brush size. For more information, refer to <a href="17-Hose4.html#998977">"Using the Image Hose"</a>.
</p>
<h5 id="1009200" class="ToDoHead">
<a name="1009200"> </a>To apply a brush stroke script
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1009201"> </a>Record a brush stroke.</li>
<p id="1013544" class="ToDoBody">
<a name="1013544"> </a>For more information on this feature, refer to <a href="06-Painting13.html#1013418">"Recording and Playing Back Strokes"</a>.
</p>
<li class="SmartList1" value="2"><a name="1009205"> </a>Open a movie file. </li>
<a name="1013344"> </a>You can composite two movies together into one-for example, you can composite a foreground action against a new background. To do this, you must create a selection in each frame of the foreground movie. For information about selections, refer to <a href="12-Selections4.html#999057">"Creating Selections"</a>. You can also create an alpha channel for each frame and load it as a selection as you work. For more information, refer to <a href="13-Channels4.html#1009217">"Creating Channels"</a>.
</p>
<p id="1013331" class="Body">
<a name="1013331"> </a>When creating selections in the foreground movie, if the background is uniform-all white, for example- you can take advantage of the automatic selection and script features. For more information, refer to <a href="23-Video9.html#1006139">"Automatic Selecting and Scripting for Efficiency in Compositing"</a>.
</p>
<p id="1013130" class="Body">
<a name="1013130"> </a>The drawing mode determines whether Corel Painter draws inside or outside of a selection, so you can create selections that either include or exclude the foreground image-whichever is easiest-then set the drawing mode accordingly. For more information about drawing modes, refer to <a href="12-Selections3.html#998986">"Selecting a Drawing Mode"</a>.
</p>
<h5 id="1013041" class="ToDoHead">
<a name="1013041"> </a>To composite one movie with another
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1013042"> </a>Open the foreground movie.</li>
<li class="SmartList1" value="2"><a name="1013077"> </a>In each frame, create a selection that defines the foreground image.</li>
<p id="1013094" class="ToDoBody">
<a name="1013094"> </a>Because the foreground image continues to move, the selection in each frame must be different.
</p>
<li class="SmartList1" value="3"><a name="1013048"> </a>When each frame of the foreground is properly protected by a selection, rewind the movie to frame 1.</li>
<li class="SmartList1" value="4"><a name="1013171"> </a>Open the background movie or image. </li>
<p id="1013165" class="ToDoBody">
<a name="1013165"> </a>If the background is a movie, rewind it to frame 1.
</p>
<li class="SmartList1" value="5"><a name="1013049"> </a>Do one of the following:</li>
</ol>
<ul>
<li class="Bulleted2"><a name="1013180"> </a>Select the background movie and choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Set Movie Clone Source</span>. </li>
<li class="Bulleted2"><a name="1013176"> </a>Select the background image and choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">File menu > Clone Source > [Image Title]</span>.</li>
</ul>
<ol type="1">
<li class="SmartList1" value="6"><a name="1013050"> </a>Select the foreground movie.</li>
<li class="SmartList1" value="7"><a name="1013202"> </a>Click the Drawing Mode button in the bottom-left corner of the document window and choose one of the following:</li>
Draw Inside</span>-choose this mode if you selected the portion of the image that you want to replace.</li>
<p id="1013249" class="ToDoBody">
<a name="1013249"> </a>You can also invert the selection instead of changing the drawing mode.
</p>
</ul>
<ol type="1">
<li class="SmartList1" value="8"><a name="1013051"> </a>On the Brush selector bar, choose Cloners from the Brush selector, and choose a variant from the Variant selector. </li>
<p id="1013274" class="ToDoBody">
<a name="1013274"> </a>If you want to bring the background across perfectly, select the Straight Cloner variant.
</p>
<li class="SmartList1" value="9"><a name="1013296"> </a>Paint in the foreground movie to replace the background using the clone source. </li>
<a name="1013301"> </a>If your clone source is a movie, Corel Painter automatically advances the foreground and clone source movies by one frame. The movies stay synchronized as you proceed.
</p>
<li class="SmartList1" value="11"><a name="1013317"> </a>Repeat step 10 for each frame in the movie.</li>
<li class="SmartList1"><a name="1013056"> </a>If you want to automate the painting process, you can record the complete painting of one frame as a script, then apply that script to the entire movie. Of course, this assumes that the entire movie can use the cloned background. For more information, refer to <a href="23-Video9.html#1009120">"Applying Scripts to Movies"</a>.</li>
<a name="1006139"> </a>Automatic Selecting and Scripting for Efficiency in Compositing
</h3>
<p id="1013386" class="Body">
<a name="1013386"> </a>When compositing movies, it takes a long time to generate selections and paint in the background for each frame. Scripting can make this much easier and faster. For information about recording scripts, refer to <a href="22-Scripting2.html#1000483">"Scripting"</a>.
</p>
<p id="1013390" class="Body">
<a name="1013390"> </a>You can create a selection based on image characteristics or color. You do this once and record the process as a script. You can then apply the script to all frames in your movie. For information about creating selections based on image characteristics, refer to <a href="12-Selections4.html#1014518">"Creating an Auto Selection"</a>. For information about creating selections based on color, refer to <a href="12-Selections4.html#999214">"Selecting By Color"</a>.
</p>
<h5 id="1007232" class="ToDoHead">
<a name="1007232"> </a>To use Scripting and Auto Select to create a movie
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1006145"> </a>Work with a separate, sample image to determine whether <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Auto Select </span>or <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Color Select</span> works best with your image. </li>
<li class="SmartList1" value="2"><a name="1006146"> </a>When you've determined the settings for the best method, start over. This time, record the Auto Select or Color Select process as a script. When you've finished creating the selection, stop recording. Save the script.</li>
<li class="SmartList1" value="3"><a name="1006147"> </a>Open the frame stack you wish to create selections in. </li>
<li class="SmartList1" value="5"><a name="1010281"> </a>In the dialog box, select the Auto Select or Color Select script you saved.</li>
<p id="1006151" class="ToDoBody">
<a name="1006151"> </a>Corel Painter applies the script to each frame in the stack.
</p>
</ol>
<h3 id="1006237" class="Heading2">
<a name="1006237"> </a>Cloning a Movie
</h3>
<p id="999564" class="Body">
<a name="999564"> </a>Cloning from one movie to another is almost like cloning from one image to another. The only difference is that you are cloning from one sequence of frames to another sequence of frames. In this case, by advancing one frame in the clone frame stack, Corel Painter automatically advances one frame in the source frame stack.
</p>
<p id="1007329" class="Body">
<a name="1007329"> </a>When you set a movie clone source, the current frame in the clone is matched to the current frame in the source. If both movies are rewound to frame 1, the clone-to-source correspondence is 1-1, 2-2, 3-3. This means that the source for frame 1 in the clone movie is frame 1 in the source movie, and so on. If you like, you can create a different correspondence by choosing other frames before setting the movie clone source. For example, if the current frame of the clone movie is frame 1 and the current frame of the source movie is frame 5, the correspondence would be 1-5, 2-6, 3-7. This means that the source for frame 1 in the clone movie is frame 5 in the source movie, and so on.
</p>
<p id="1007429" class="Body">
<a name="1007429"> </a>For information on cloning brushes, refer to <a href="11-Cloning3.html#1000147">"Cloning Imagery"</a>.
</p>
<p id="1007433" class="Body">
<a name="1007433"> </a>You can control the areas cloned by setting up a selection in the clone movie. For complete information on creating selections, refer to <a href="12-Selections3.html#998948">"Working with Selections"</a>.
</p>
<p id="1007355" class="Body">
<a name="1007355"> </a>Additionally, you can use Auto Clone to do the cloning. You can also record an Auto Clone script and apply the script to the new movie with a Cloner brush selected. For more information about using Auto Clone, refer to <a href="15-Effects12.html#1000917">"Auto Clone"</a> or <a href="11-Cloning8.html#1006658">"Using Auto Clone"</a>. For information about working with scripts, refer to <a href="22-Scripting6.html#999026">"Recording Scripts"</a>.
</p>
<h5 id="999579" class="ToDoHead">
<a name="999579"> </a>To clone a movie
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="999580"> </a>Choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">File menu > Open</span> and open the source movie you want to clone. </li>
<li class="SmartList1" value="2"><a name="999581"> </a>Create a new movie with the same dimensions and number of frames as the source. </li>
<p id="1007494" class="ToDoBody">
<a name="1007494"> </a>With these two frame stacks open, you're ready to clone the source into the new movie.
</p>
<li class="SmartList1" value="3"><a name="1007395"> </a>Select frame 1 of the new movie.</li>
<li class="SmartList1" value="4"><a name="999586"> </a>With the source movie selected, choose the first frame you want to clone.</li>
<li class="SmartList1" value="5"><a name="1007410"> </a>Choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Set Movie Clone Source</span>. </li>
<li class="SmartList1" value="6"><a name="999589"> </a>Select the new movie. </li>
<li class="SmartList1" value="7"><a name="1010284"> </a>Using any Cloner brush, paint on the image window. </li>
<p id="1010285" class="ToDoBody">
<a name="1010285"> </a>You will be painting the source movie into the clone.
</p>
<li class="SmartList1" value="8"><a name="1007298"> </a>When you're finished cloning in one frame, advance to the next one.</li>
<p id="1010295" class="ToDoBody">
<a name="1010295"> </a>Corel Painter automatically advances the clone source to maintain the frame-to-frame correspondence.
<li class="SmartList1"><a name="1013456"> </a>If you have a Corel Painter movie open and you choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">File menu > Clone</span>, Corel Painter will create a clone only of the frame in the image window. </li>
</ul>
<h5 id="1007315" class="ToDoHead">
<a name="1007315"> </a>To apply an Auto Clone script to a movie
</h5>
<p id="999608" class="Body">
<a name="999608"> </a>First record the Auto Clone effect on a sample image and save the script.
</p>
<ol type="1">
<li class="SmartList1" value="1"><a name="999609"> </a>Open the frame stack you wish to clone in. </li>
<li class="SmartList1" value="3"><a name="999611"> </a>In the dialog, select a saved Auto Clone script. </li>
<p id="999615" class="ToDoBody">
<a name="999615"> </a>Corel Painter clones the source movie into the destination movie.
</p>
</ol>
<h3 id="999617" class="Heading2">
<a name="999617"> </a>Tracing a Movie
</h3>
<p id="999618" class="Body">
<a name="999618"> </a>Have you ever wanted to animate your own cartoon, but didn't know where to start? The Tracing Paper feature in Corel Painter makes it possible to trace the contents of a movie into a brand-new animated feature. This is particularly useful with video as the source.
</p>
<p id="999638" class="Body">
<a name="999638"> </a>For best results, the source should have the same frame rate you intend for the animation. For more information on frame rates, refer to <a href="23-Video7.html#1005881">"Frame Rate-A Matter of Time"</a>.
</p>
<h5 id="999643" class="ToDoHead">
<a name="999643"> </a>To trace a movie
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="999644"> </a>Choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">File menu > Open</span> and open the source movie you want to trace. </li>
<li class="SmartList1" value="2"><a name="999645"> </a>Create a new movie with the same dimensions and number of frames as the source. </li>
<p id="999646" class="ToDoBody">
<a name="999646"> </a>With these two frame stacks open, you're ready to trace the source into the new movie.
</p>
<li class="SmartList1" value="3"><a name="999647"> </a>With the original movie selected and rewound to frame 1, choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Movie menu > Set Movie Clone Source</span>. </li>
<li class="SmartList1" value="4"><a name="999648"> </a>Select the new movie and choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Canvas menu > Tracing Paper</span>. </li>
<p id="1010299" class="ToDoBody">
<a name="1010299"> </a>The first frame of the original movie appears ghosted in the first frame of the new movie.
</p>
<li class="SmartList1" value="5"><a name="999651"> </a>Trace the first frame using any of the Corel Painter tools, textures, and effects.</li>