|
||||||||||||||||||||||||||||||||||||
Are you fond of red text set in 100-point Futura, with a drop shadow offset of 20% black? How about adding perspective and custom fountain fills to objects? Whatever your specialty, repeating the same steps over and over for your favorite effects is not likely to rank as your favorite CorelDRAW activity. DRAWs scripting tool enables you to record transactions and then play them back to quickly format text and objects. Using scripts is like plugging a very efficient tape recorder into your computer, and since DRAW 7, scripts have had a significant impact on how many advanced users go about their business. Back in DRAW 6 we gave less than two pages to the scripting tool, and we suspected that very few users would use it. We were right: not too many DRAW users had the time or inclination to learn a programming language in order to record repetitive steps. But now everything is different, thanks to the little red Record button in the Script and Preset Manager. Its just like the one on your VCR or cassette recorderit listens, and then it plays back. As a result, the potential of the tool has increased manyfold. Scripts: the EvolutionBefore there were scripts, there were presets, an awkward way to store an effect for later use. Now that the scripting tool is so much more robust, presets are being phased out. In DRAW 9, as in 8 and 7, you cannot create a preset for a general effect, although there are other places on the interface where the word preset is usedlike fountain fills, texture fills, and print styles. But to accommodate users who have created presets from previous versions and still want to use them, the Script and Preset Manager can play them back (hence its name). Our assumption is that the only users who would need to work with presets are those who already know how to create them; in fact, for simplicity, we will refer to the tool as the Script Manager instead of its more verbose name (except where we are indicating the name of the command as it appears on the interface). DRAW 9 includes several premade scriptsin fact, you may find the very effect you are looking for prerecorded for you. Go to Tools Ø Corel SCRIPT Ø Script and Preset Manager to display the docker. The Scripts folder is shown in Figure 33.1, with each script represented by a thumbnail. On the page is a rectangle to which we applied the fillout script, which created an artistic outline for it.
Script BasicsWhile there is considerable depth to DRAWs implementation of scripts, on the surface, things are simple: you record a script and then you play it back. If you remember those two things, you cant go too far wrong. Recording a ScriptImagine the following scenario: You have several drawings that need a particular effect applied to them. They each need a rectangle to be placed against a vertical guideline, to be skewed up by 30 degrees, and then to have a 45-degree black-to-white fountain fill applied to it. This is a perfect time to create a script, because you need to automate several actions at once. Styles cant do it, templates cant do it, and the Scrapbook cant do it. Here are the steps to take:
Note two things about the previous graphic: the round Record button in the docker is grayed out, indicating that it has been pressed (that is your only visual cue), and we have backed out one level in the docker. We find it helpful to have a separate place to record personal scriptsaway from the prefab onesand one level up in the directory structure makes sense (so you can easily get to the others).
This beats the heck out of all previous methods for creating scripts or presets, as youll see in a moment. To finish the story, lets play back your script, by following these steps:
In an instant, DRAW should create the vertical guideline and the skewed rectangle, just as you did when you created the script (only much faster, and with less effort on your part).
|
|
|||||||||||||||||||||||||||||||||||
|