Create a ticket
Follow

Q100412: How to create Nuke shortcuts with extra flags

SUMMARY

This article explains how to create desktop shortcuts to launch Nuke with additional flags, such as --safe for safe mode.

 

MORE INFORMATION

When launching Nuke, it can be beneficial to use various command flags to provide additional functionality. These can vary from things such as safe mode, which disables all plug-ins and customizations for troubleshooting purposes, to launching in terminal mode, which allows you to enter Python commands without launching the GUI.

The full list of command flags and their use cases can be found in our Online Help here: Command Line Operations

The most common way to launch Nuke with the addition flags is by opening a Terminal/Command Prompt window, and run the Nuke launch command from there with the flags applied. This method is great if you only need to do it occasionally, but if you regularly need to launch in terminal mode for example or launch including certain flags, then it can become a nuisance having to enter the same command every time.

Instead, you can create a desktop shortcut that includes the relevant command with flags, and is accessible on your machine as a clickable icon.

METHOD

Below are steps to create a shortcut on the desktop which launches Nuke 11.1v3 in safe mode. You can change the --safe flag for any combination of other command flags that you require when launching Nuke.

WINDOWS

1) Right Click the Desktop and select New > Shortcut

2) Enter the full path to the Nuke executable, with the --safe flag afterwards, as shown below:

3) Press Next

4) Give the shortcut an appropriate name and press Finish

5) When you double click the shortcut, Nuke 11.1v3 should open in safe mode 

MAC

1) Open a text editor and create a new empty file

2) Add the following code into the empty file. The second line consists of the full path to the Nuke application, with the --safe flag appended:

#!/bin/bash
/Applications/Nuke11.1v3/Nuke11.1v3.app/Contents/MacOS/Nuke11.1v3 --safe

3) Save the file to your desktop with an appropriate name, for example Nuke Safe Mode.app. If you save the file with no file extension, then Nuke will open with a Terminal window. If you save the file with a .app extension, then Nuke will open without a Terminal window.

4) Open a new Terminal window, and change directory to your desktop, using the command 

cd ~/Desktop

5) Run the following command in the Terminal window, changing "Nuke Safe Mode.app" for the name of your shortcut:

chmod 744 "Nuke Safe Mode.app"

6) When you double click the shortcut, Nuke 11.1v3 should open in safe mode

 

LINUX - CENTOS 6

1) Right Click the desktop and select Create Launcher...

2) Enter the Name of the shortcut, and the full path of the Nuke application, with the --safe flag on the end, as shown below:

3) Press OK

4) When you double click the shortcut, Nuke 11.1v3 should open in safe mode


FURTHER READING

Additional information and example flags you could apply to your Nuke shortcut, can be found in the articles linked below:

Q100038: Launching Nuke/NukeX/NukeStudio/Hiero in safe mode
Q100112: Launching Nuke in verbose mode and isolating potential customisations causing issues
Q100117: Launching Nuke with limited number of threads (-m flag)
Q100225: Launching Nuke in Performance Profiling mode (-P flag)
Q100378: How to disable the Frame Server for Nuke, Nuke Studio and Hiero

Was this article helpful?
/

We're sorry to hear that!

Please tell us why.
0 out of 0 found this helpful

Comments