<li class="Bulleted"><a href="22-Scripting7.html#999095">Playing a Script from the Scripts Palette</a></li><br/>
<li class="Bulleted"><a href="22-Scripting7.html#999132">Replaying a Script at a New Resolution</a></li><br/>
</td>
</tr>
</table>
<blockquote>
<h2 id="1004555" class="Heading1">
<a name="1004555"> </a>Playing Scripts
</h2>
<p id="1002994" class="Body">
<a name="1002994"> </a>When you play your recorded script, you can sit back and watch the operations unfold. In Corel Painter, replaying a script of a painting is like watching the artist at work.
</p>
<h3 id="999095" class="Heading2">
<a name="999095"> </a>Playing a Script from the Scripts Palette
</h3>
<h5 id="999096" class="ToDoHead">
<a name="999096"> </a>To play a script
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="999673"> </a>On the Scripts palette, choose a script from the Script selector.</li>
<p id="1003282" class="ToDoBody">
<a name="1003282"> </a>If you want to load another script library, click the selector menu arrow and choose Load Library.
</p>
<li class="SmartList1" value="2"><a name="999117"> </a>Click the Play button. </li>
<p id="1004614" class="ToDoBody">
<a name="1004614"> </a>The button glows green during playback.
</p>
<li class="SmartList1" value="3"><a name="999118"> </a>Use the Stop, Pause, and Step Forward buttons to control playback.</li>
<li class="SmartList1"><a name="1003353"> </a>To switch between List and Thumbnails view in the Script selector, click the selector menu arrow and choose List or Thumbnails.</li>
<li class="SmartList1"><a name="1003345"> </a>You can also use <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Command</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">.</span> (Mac OS) or <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Ctrl</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">.</span> (Windows) to stop a script from playing.</li>
</ul>
<h3 id="999132" class="Heading2">
<a name="999132"> </a>Replaying a Script at a New Resolution
</h3>
<p id="999133" class="Body">
<a name="999133"> </a>Replaying a script at a higher resolution is a good way of creating a high-resolution image without working on a high-resolution image.
</p>
<p id="999134" class="Body">
<a name="999134"> </a>When you're creating the image, you can get smoother, more responsive performance by working at low resolution. Then, when you play back the script at a higher resolution, you get the benefit of a higher quality image.
</p>
<p id="999135" class="Body">
<a name="999135"> </a>The record-to-playback scaling ratio is limited. A factor of 4 is probably too much. For best results, experiment.
</p>
<h5 id="999136" class="ToDoHead">
<a name="999136"> </a>To record for resolution-independent playback
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="999137"> </a>Before you start recording, open a new document at the resolution in which you want to work. </li>
<a name="999139"> </a>This action creates a reference rectangle that is part of the recording. The rectangle must be recorded to play a session back into a higher resolution file later.
</p>
<li class="SmartList1" value="3"><a name="999140"> </a>Click the Record button.</li>
<li class="SmartList1" value="4"><a name="999141"> </a>Deselect the reference rectangle by doing one of the following:</li>
<li class="SmartList1" value="5"><a name="999142"> </a>Proceed with your script recording as usual.</li>
</ol>
<h5 id="999144" class="ToDoHead">
<a name="999144"> </a>To play back at a different resolution
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="999145"> </a>Create a new document with the resolution at which you want to play the script. </li>
<p id="999146" class="ToDoBody">
<a name="999146"> </a>If you want the resulting image to be a higher resolution than the original, create a document with proportionally larger dimensions. For example, if the original document is 500 X 500 pixels, make the new document 1000 X 1000 pixels to double the size.
</p>
<p id="1003322" class="ToDoBody">
<a name="1003322"> </a>If the destination document has a different aspect ratio from the original, the image created by the script will be proportionally distorted.
</p>
<li class="SmartList1" value="2"><a name="1003323"> </a>On the Scripts palette, click the Script selector arrow and choose the resolution-independent script you recorded.</li>
<li class="SmartList1" value="3"><a name="1003324"> </a>Before playing back the script, choose <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Select menu > All</span>, or press <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Command</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">A</span> (Mac OS) or <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Ctrl</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">A</span> (Windows) in the new document. The rectangle recorded at the outset of the original script is referenced to the selected rectangle in this document.</li>
<a name="1004625"> </a>The original script replays into the new document. All brushes, paper textures, and related functions are appropriately scaled for the new resolution.