You are here: User Guide > Nuke > Configuring Nuke > Defining Common Preferences

Defining Common Preferences

The Nuke Preferences dialog (Edit > Preferences) allows any user to make myriad behavior and display adjustments to the interface. However, you may wish to assign certain default preferences for artists.

Defining Default Preferences

To define default preferences:

1.   Select Edit > Preferences to display the Preferences dialog.
2.   Modify the controls within the dialog as necessary. For descriptions of what the controls do, see The Available Preference Settings.
3.   Click Save Prefs. Nuke writes the modified preferences to a file called preferences8.0.nk, which is stored inside your [home directory]/.nuke directory.

TIP:  If you’re not sure of the location of your home directory, on Linux and Mac you can go to a terminal window and type echo $HOME. The terminal will return the path name to your home directory.
On Windows, you can find the .nuke directory under the directory pointed to by the HOME environment variable. If this variable is not set (which is common), the .nuke directory will be under the folder specified by the USERPROFILE environment variable. To find out if the HOME and USERPROFILE environment variables are set and where they are pointing at, enter %HOME% or %USERPROFILE% into the address bar in Windows Explorer. If the environment variable is set, the folder it’s pointing at is opened. If it’s not set, you get an error.
Here are examples of what the pathname may be on different platforms:
Linux: /users/login name
Mac: /Users/login name
Windows: drive letter:\Documents and Settings\login name (XP) or drive letter:\Users\login name (Vista)

4.   Move the resulting preferences8.0.nk file into your Nuke plug-in path directory.

For more information on plug-in path directories, see Loading Gizmos, NDK Plug-ins, and Python and TCL Scripts.

5.   If you haven’t already done so, create a file called menu.py in your plug-in path directory.
6.   Add the following entry in the menu.py file:

nuke.load ("preferences8.0.nk")

Your preferences now act as the defaults for your artists. However, should they make changes via Preferences dialog, these changes will override your defaults.

Deleting (and Resetting) the Preferences

To delete (and reset) the preferences:

1.   Open a terminal (or shell) as described for your operating system at the beginning of this chapter.
2.   Using the prompt, go to the .nuke directory, under your home directory.
3.   Enter pwd to display and verify the path.

You should see something similar to

/users/login name/.nuke (on Linux),

/Users/login name/.nuke (on Mac) or

drive letter:\Documents and Settings\login name\.nuke (on Windows XP) or

drive letter:\Users\login name\.nuke (on Windows Vista).

This is not always the case, however, because on Windows the .nuke folder can be found under the directory pointed to by the HOME environment variable or (if HOME is not set) the USERPROFILE environment variable.

To find out if the HOME and USERPROFILE environment variables are set and where they are pointing at, enter %HOME% or %USERPROFILE% into the address bar in Windows Explorer. If the environment variable is set, the folder it’s pointing at is opened. If it’s not set, you get an error.

4.   Enter rm preferences8.0.nk to delete the preference file.
5.   Close the terminal or shell.

The next time you launch Nuke, it rebuilds the file with the default preferences.