20.05.2017 Views

Ganbar R. - NUKE 101. Professional Compositing and Visual Effects - 2011

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ToURING THE INTERFACE WITH A BASIC CoMPoSITE 29<br />

saving Nuke scripts<br />

Nuke saves its project files, or scripts, as ASCII files. An ASCII file is a text file that you<br />

can open in a text editor. ASCII files st<strong>and</strong> in contrast to binary files, which don’t make<br />

any sense when opened in a text editor <strong>and</strong> are only readable by specific applications.<br />

The ASCII file format of the Nuke script is great, <strong>and</strong> you explore this feature in<br />

Chapter 12. Nuke scripts have the .nk file extension.<br />

All Nuke script-related functions are accessible through the File menu <strong>and</strong> respond to<br />

st<strong>and</strong>ard hot keys for opening <strong>and</strong> saving files.<br />

1. Press Ctrl/Cmd-S to save the file, or choose File > Save.<br />

2. In the browser that displays, navigate to the chapter02 directory (that you copied<br />

onto your hard drive from this book’s disc). Name the script. Please use chapter02_v01.<br />

Nuke automatically adds the file extension.<br />

3. Press Enter/Return.<br />

Nuke just saved your script. You can quit Nuke, go have a coffee, come back,<br />

open the script, <strong>and</strong> continue working.<br />

By default Nuke autosaves your project every 30 seconds, or if you are not moving<br />

your mouse, it will save once after five seconds. But it doesn’t autosave if you haven’t<br />

saved your project yet. You have to save your project the first time. That’s why it is<br />

important to save your project early on.<br />

Note You can change<br />

the amount of time<br />

between autosaves in<br />

the Preferences pane.<br />

Another great feature in Nuke is the Save New Version option in the File menu. You<br />

will save different, updated versions of your script often when compositing, <strong>and</strong> Nuke<br />

has a smart way of making this easy for you. If you add these characters to your script<br />

name: “_v##”, where the # symbol is a number, using the Save New Version option in<br />

the File menu adds 1 to that number. So if you have a script called nuke_v01.nk <strong>and</strong><br />

you click File > Save New Version, your script will be saved as nuke_v02.nk. Very<br />

h<strong>and</strong>y. Let’s practice this with your script, which you named chapter02_v01.nk earlier.<br />

4. With nothing selected, press the Q key. This brings up the Current Info panel<br />

(FigUrE 2.15).<br />

FIGURE 2.15 The<br />

Current info panel is<br />

a quick way to see<br />

which script you are<br />

working on.<br />

tip If you are not sure<br />

what a hot key does or<br />

you don’t remember the<br />

hot key for something,<br />

you can choose Key<br />

Assignment from the<br />

Help menu.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!