With an active Python/BlinkScript file, use the command Nuke: Run Inside Nuke from the Command Palette or use the dedicated button in the editor's top right corner.
To use the Python stubs
Use the command Nuke: Add Python Stubs to add the stubs to your python.analysis.extraPaths setting.
Write import nuke into your script.
NOTE: Having a folder named nuke in your Workspace root-directory can cause problems for the suggestions.
NOTE: BlinkScript features are available in a basic form. If you would like to see something more, feel free to make a request or open a PR. Also, check out Material Icon Theme that adds a Nuke icon for the .blink file.
Simple code suggestion.
Startup saturation snippet.
The extension will create a blinkscript node named after the currently active file.
If the node already exists, it will only modify the code and recompile it.
The accepted file extension code are .cpp or .blink.
1.5. Available Commands
All commands are available by opening the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and typing in one of the following Command Name:
Nuke: Launch main executable
Launch main executable
Nuke: Launch alternative executable
Launch alternative executable
Nuke: Launch main executable with prompt
Launch main exec. with prompt for optional args
Nuke: Run Inside Nuke
Execute code inside Nuke
Nuke: Add Stubs to Workspace
Add stubs path to workspace settings
Nuke: Add NukeServerSocket
Add NukeServerSocket plugin to .nuke dir and menu.py
Nuke: Show Network Addresses
Show network addresses
Nuke: Debug Message
Quick test connection
Nuke: Run Code Inside Nuke command can get executed through a button in the Editor Toolbar.
The button can be disabled in the settings.
Nuke: Add NukeServerSocket will copy the plugin folder inside $HOME/.nuke and append
an import statement inside the menu.py file: import NukeServerSocket. If menu.py does not exist, it will get created.
Restart the terminal instance instead of creating new ones. Use with caution. This option will terminate every Nuke process spawned by the extension. Useful when rapid testing GUI plugins that don't need saving the composition.
Clear the previous console output text.
Show the execute code button in the editor toolbar.
If enabled, nukeTools.network.port and nukeTools.network.host will take over the default settings. This option is needed when connecting to another computer.
Specify a different port for the connection. This option will only work if nukeTools.network.enableManualConnection is enabled. The server address should be the same as in the Nuke plugin.
Same as the port. The host could be the local host or the local IP.
Show network debug information in the output window. Enabling this option will prevent the console from being cleared after code execution.