Compatibility#
Setup#
Add and select Nuke's preferences folder to add the Prism integration.Settings... > User > DCC apps > Nuke > Add![[Nuke - Add Integration]](../../_static/plugins/nuke/01_Nuke_AddIntegration.png)
Hint
Make sure to select Nuke's preferences folder .nuke, not the installation folder. The default preferences folder locations are:
Windows:
%USERPROFILE%\.nukeLinux:
~/.nukemacOS:
~/.nuke
Update the Prism Integration#
Settings... > User > DCC apps > Nuke > AddRemove the Prism Integration#
Settings... > User > DCC apps > Nuke > RemoveStudio Setup via Environment Variables#
1PRISM_ROOT="C:\Program Files\Prism Pipeline"
2NUKE_PATH="C:\ProgramData\Prism2\plugins\Nuke\Integration"
Hint
Include the integration folder in the existing NUKE_PATH rather than
replacing other plugin paths. See Foundry's NUKE_PATH documentation for details.
NUKE_PATH to a studio-managed folder and add the following to its menu.py:1import os
2import nuke
3
4os.environ["PRISM_ROOT"] = r"C:\Program Files\Prism Pipeline"
5nuke.pluginAddPath(r"C:\ProgramData\Prism2\plugins\Nuke\Integration")
Note
Avoid loading the integration from both the preferences folder and NUKE_PATH. Prism would be loaded twice.
Access Prism#
![[Nuke - Access]](../../_static/plugins/nuke/02_Nuke_Access.png)
Prism Tool |
Description |
|---|---|
Save |
Save the current scene. |
Save Version |
Save and version up the scene. |
Save Comment... |
Save, version up the scene and add a comment/thumbnail. |
Project Browser... |
Open the Project Browser to browse scenes and published media. |
Settings... |
Open the Prism Settings to configure Prism. |
Manage Media Versions... |
Review and update media versions used by "Read" nodes. |
Import Shotcam |
Import the latest camera product for the current shot. |
Export Nodes... |
Open the "Export Selected Nodes" window for selected Nuke nodes. |
Read... |
Browse published media and create a "Read" node. |
Import Shots... |
Select shots and build the multi-shot node setup (experimental feature, only available when enabled). |
Save Scenefiles#
Prism > Save Version or Prism > Save Comment...).Save Comment... opens a window where a "Comment", "Description" and "Preview" can be added.OK 2 to save and version up the scenefile:![[Nuke - Save Comment]](../../_static/plugins/nuke/03_Nuke_SaveComment.png)
Save Unmanaged Scenefiles#
Prism > Project Browser...), navigate to the "Scenefiles" tab and select an "Entity", "Department" and "Task".Create new version from current 1 from the context menu:![[Nuke - Save Current]](../../_static/plugins/nuke/04_Nuke_SaveCurrent.png)
Import Media#
Prism > Read...) or by using the R shortcut inside Nuke's "Node Graph".Open 1 to import the selection into the "Node Graph".![[Nuke - Import Read]](../../_static/plugins/nuke/05_Nuke_ImportRead.png)
Import via the Project Browser#
Prism > Project Browser...) and navigate to the "Media" tab.Import Media... 1 from the context menu, or simply drag and drop it into Nuke.![[Nuke - Import Project Browser]](../../_static/plugins/nuke/06_Nuke_ImportProjectBrowser.png)
Import Options |
Description |
|---|---|
Current AOV |
Import the current selected AOV. |
All AOVs |
Import all available AOVs. |
Layout all AOVs |
Layout all available AOVs inside Nuke's "Node Graph". |
Update an Existing Read Node#
Browse... 1.Open 2 to update the image or image sequence of the "Read" 3 node:![[Nuke - Import Update]](../../_static/plugins/nuke/07_Nuke_ImportUpdate.png)
Manage Media Versions#
Prism > Manage Media Versions...).Update to Latest 1 from the context menu.![[Nuke - Manage Media Versions - Update]](../../_static/plugins/nuke/08_Nuke_ManageMediaVersions_Update.png)
Group by Shot to organize the list by shots, or use Refresh to reload the list.Exclude from Manage Media Versions.Note
The "Manage Media Versions" tool lists only selected "Read" nodes inside Nuke's "Node Graph". If no "Read" nodes are selected, all available "Read" nodes are listed.
Switch Shots#
Switch Shot 1 dropdown to switch its media to the corresponding identifier in another shot:![[Nuke - Manage Media Versions - Change Shot]](../../_static/plugins/nuke/09_Nuke_ManageMediaVersions_ChangeShot.png)
Note
This only works if a media version with the same identifier is available in the other shot. The latest found version is imported by default.
Version Check on Scene Open#
Show Versions... to review the updates in the "Manage Media Versions" tool:![[Nuke - Manage Media Versions - Notification]](../../_static/plugins/nuke/10_Nuke_ManageMediaVersions_Notification.png)
1PRISM_NUKE_CHECK_MEDIA_ON_SCENE_OPEN=0
Render Media#
W shortcut inside Nuke's "Node Graph".Render 1.OK 2 in the "Render" window to start the render:![[Nuke - Render Media]](../../_static/plugins/nuke/11_Nuke_RenderMedia.png)
Show Previous Versions... to browse previously rendered versions, or use Create Read to load the last rendered output back into Nuke as a "Read" node.Hint
The "Version" is set to auto by default. To overwrite an existing version or to render to a specific version, disable the auto checkbox and set a version number.
Submit to the Render Farm#
Submit Job 1 and click Render to open the "Prism Farm Submitter" window.Submit 2 to render the composition on the render farm:![[Nuke - Render Media - Farm Submitter]](../../_static/plugins/nuke/12_Nuke_RenderMedia_FarmSubmitter.png)
Note
The "Prism Farm Submitter" requires a compatible render farm plugin such as Deadline.
Import Cameras#
Prism > Import Shotcam) 1.![[Nuke - Import Cameras]](../../_static/plugins/nuke/13_Nuke_ImportCameras.png)
Note
This action is not available for asset scenefiles.
Import Products#
Prism > Project Browser...) and navigate to the "Products" tab.Import 1 from the context menu.![[Nuke - Import Products]](../../_static/plugins/nuke/14_Nuke_ImportProducts.png)
Hint
To import custom cameras that are not "ShotCam" products, use Import Camera from the context menu. The camera is imported as a "Camera" node in Nuke's "Node Graph".
Export Products#
Execute 1.OK 2 in the "Execute" window to start the export:![[Nuke - Export Products]](../../_static/plugins/nuke/15_Nuke_ExportProducts.png)
Show Previous Versions... to browse previously exported versions, or use Create ReadGeo to load the last exported product back into Nuke as a "ReadGeo" node.Hint
The "Version" is set to auto by default. To overwrite an existing version or to export to a specific version, disable the auto checkbox and set a version number.
Submit Job and click Execute to send the export to the render farm via the "Prism Farm Submitter" window.Note
The "Prism Farm Submitter" requires a compatible render farm plugin such as Deadline.
Import Nodes#
Prism > Project Browser...) and navigate to the "Products" tab.Import 1 from the context menu.Livegroup 2 in the pop-up window.![[Nuke - Import Nodes]](../../_static/plugins/nuke/16_Nuke_ImportNodes.png)
Livegroup), nodes can be imported as a "Precomp" node (Precomp) or pasted into Nuke's "Node Graph" (Paste Nodes).Export Nodes#
Prism > Export Nodes...) 1.Export 2:![[Nuke - Export Nodes]](../../_static/plugins/nuke/17_Nuke_ExportNodes.png)
Note
The scene needs to be saved in the Prism project first.
Scene Building#
Run Scene Building#
Build new Scene 1 from the context menu:![[Nuke - Scene Building - Run]](../../_static/plugins/nuke/18_Nuke_SceneBuilding_Run.png)
Hint
Hold Ctrl while selecting "Build new Scene" to review the upcoming steps before they run.
Update Scene Building#
Update Scene... 2 from the context menu:![[Nuke - Scene Building - Update]](../../_static/plugins/nuke/19_Nuke_SceneBuilding_Update.png)
Scene Building Settings#
Settings... > Project > Scene Building > Nuke![[Nuke - Scene Building - Settings]](../../_static/plugins/nuke/20_Nuke_SceneBuilding_Settings.png)
Edit Settings... 2 to configure each step.Remove it or change its order with Move Up and Move Down 4.Check for updates when opening scenefiles 5 to run Update Scene... automatically each time a scenefile is opened.Scene Building Steps#
Set Framerange: |
|
|---|---|
Description: |
Synchronizes the scene's frame range with the defined shot frame range.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Framerange to apply: |
Select
Shotrange (default) or Shotrange + Handles. |
Set FPS: |
|
|---|---|
Description: |
Synchronizes the scene's FPS with the defined shot or project FPS.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Set Resolution: |
|
|---|---|
Description: |
Synchronizes the scene's resolution with the defined shot or project resolution.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Import Products: |
|
|---|---|
Description: |
Imports tagged products from the selected sources.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Tags: |
Configure tags to match. Defaults to
to_@department@, to_@task@. |
Ignore Master Versions: |
Enable to import the latest product version instead of the master version.
Disabled by default.
|
Products from source entity: |
Enable to import tagged products of the current entity.
Enabled by default.
|
Products from connected assets: |
Enable to import tagged products from connected assets.
Enabled by default.
|
Products from parent entities (sequence, episode): |
Enable to import tagged products from parent sequence or episode entities.
Disabled by default.
|
Products from custom entities: |
Enable to import tagged products from custom entities.
Disabled by default.
|
Custom entities: |
Select the entities to include when Products from custom entities is enabled.
Empty by default.
|
Import Shot Cameras: |
|
|---|---|
Description: |
Imports available ShotCam (shot camera) products.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Run Code: |
|
|---|---|
Description: |
Executes custom Python code.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Code: |
Add Python code to be run. Available variables are
core, self, context, and step. |
Load Media: |
|
|---|---|
Description: |
Imports tagged media as "Read" nodes.
|
Apply to task: |
Restrict which "Entities", "Departments", or "Tasks" this step runs on.
By default, the selection is
*-*-*, which applies to all without restrictions. |
Identifiers: |
Add comma-separated patterns matching the media identifiers.
Defaults to
plate*, light*. |
Further Reading#
Multi-Shot Workflow (Experimental)#
Note
The multi-shot workflow is experimental and requires Nuke 17.0+. It must be enabled explicitly:
1PRISM_NUKE_ENABLE_MULTISHOT=1
Import and Switch Shots#
Prism > Import Shots...) 1.Add 2 to import the selection into the "Node Graph":![[Nuke - MultiShot - Import Shots]](../../_static/plugins/nuke/21_Nuke_MultiShot_ImportShots.png)
Shot: - 2 menu, located in the main menu bar, to set a shot as active:![[Nuke - MultiShot - Switch Shots]](../../_static/plugins/nuke/22_Nuke_MultiShot_SwitchShots.png)
1PRISM_NUKE_MULTISHOT_IDENTIFIERS=Plate
Plate,Lighting.Hint
The available AOVs in the first selected shot determine the initial "Read" node setup. Additional "Read" nodes are created for those AOVs, but only the first "Read" is connected to the shared graph automatically.
Add Shot....Render Multiple Shots#
Render 1.Render Locally 2 in the "Prism - Render Locally - All Shots" window to start the render:![[Nuke - MultiShot - Render Multiple Shots]](../../_static/plugins/nuke/23_Nuke_MultiShot_RenderMultipleShots.png)
Submit Job and click Render to open the "Prism - Submit Jobs - All Shots" window.Multi-Shot Scene Building#
Multishot Setup step can be configured in the Prism Settings:Settings... > Project > Scene Building > NukeNuke-Specific Settings#
User Preferences#
Settings... > User > DCC apps > NukeSetting |
Description |
|---|---|
Nuke Version |
Select
Default, NukeX, NukeX (Non-Commercial), Indie, Assist, Studio, Studio (Non-Commercial), or Non-Commercial.Prism uses the corresponding launch option when starting Nuke.
|
Use relative paths |
Use relative paths to load media, cameras and products via
%PRISM_JOB in Nuke 15.2+, or %PRISM_JOB% in older versions.Disabled by default.
|
Open Prism window with "R" shortcut |
Adds the
Read... tool to the Prism menu (Prism > Read...) and overrides the R shortcut to add a "Read" node to Nuke's "Node Graph" and open the "Select Media" window.Enabled by default.
|
Use WritePrism gizmo |
Adds the "WritePrism" gizmo to Nuke's "Toolbar" and overrides the
W shortcut inside Nuke's "Node Graph" to add a "WritePrism" node instead of the "Write" node.Disabled by default.
|
Load OIIO |
Enables loading OpenImageIO in Nuke.
Disabled by default.
PRISM_NUKE_LOAD_OIIO can override this preference. Loading external OIIO libraries is not supported in some Nuke versions and might cause Nuke to crash. |
Note
The "WritePrism" node was the first implementation to render a Nuke composition in Prism. Use the native "Write" node instead, which includes a "Prism" tab in the node's "Properties" panel (the new default since the "WritePrism" node is disabled by default).
Nuke-Specific Features from Other Prism Plugins#
Media Extension#
media conversion checkbox to the "Prism" tab of the "Write" node's "Properties" panel. This allows rendered media to be automatically converted afterward.preset dropdown.edit... to adjust the selected preset and click refresh to reload the changes.Settings... > Project > Media) include the Enforce OCIO in Nuke setting, which prompts users to enable OCIO color management when opening a scenefile.Project Management#
auto publish to <Project Manager>: Publish rendered media automatically to the selected Project Manager.Publish previous render: Publish the "Write" node's previously rendered media version without rendering it again.
Enable Media Publishes is disabled in the "Project Management" settings.USD#
Environment Variables#
The following variables are used to configure the Nuke plugin:
Variable |
Description |
|---|---|
|
Shows the newer-media prompt when opening a scene.
1 by default. Set to 0 to disable. |
|
Adds Prism controls to new "Read" nodes.
1 by default. Set to 0 to disable. |
|
Adds Prism controls to new "Write" and "WriteGeo" nodes.
1 by default. Set to 0 to disable. |
|
Adds the Prism
Add Shot... control to "VariableSwitch" nodes.1 by default. Set to 0 to disable. |
|
Includes dependencies from nodes not connected to a "Write", "WritePrism", or "WriteGeo" node when collecting job dependencies.
1 by default. Set to 0 to limit collection to connected nodes. |
|
Creates a new scenefile version when submitting a render job.
0 by default. Set to 1 to enable. |
|
Warns when submitting an earlier render version that may overwrite output.
0 by default. Set to 1 to enable. |
|
If set, overrides the
Load OIIO user preference.1 enables loading. Another non-empty value disables it. If unset or empty, the user preference is used (off by default). |
|
Enables the experimental multi-shot workflow.
0 by default. Set to 1 (requires Nuke 17.0+). |
|
Comma-separated media identifiers used to create the multi-shot "Read" nodes.
Defaults to
Plate. |
|
Shows the plugin's default scenefile presets.
1 by default. Set to 0 to hide them. |
Frequently Asked Questions#
Why are there no media previews in Nuke? / I'm getting NumPy warnings and errors?
Prism uses NumPy for features such as media previews and conversions. Warnings or errors can occur if the available NumPy version is incompatible with the Python version bundled with Nuke.
On Windows, install a compatible NumPy version using Nuke's Python interpreter. Run the following in Nuke's Script Editor (Nuke may become unresponsive while the installation runs):
1import os
2import subprocess
3import sys
4
5python_path = os.path.join(os.path.dirname(sys.executable), "python.exe")
6subprocess.run(
7 [python_path, "-m", "pip", "install", "--user", "numpy"],
8 check=True,
9)
On Linux, install a compatible NumPy and OpenImageIO version using Nuke's Python interpreter. Run the following in Nuke's Script Editor (Nuke may become unresponsive while the installation runs):
1import os
2import subprocess
3import sys
4
5python_path = os.path.join(os.path.dirname(sys.executable), "python3")
6subprocess.run(
7 [python_path, "-m", "pip", "install", "--user", "numpy", "OpenImageIO"],
8 check=True,
9)
Why can't I submit renders to the render farm?
The "Prism Farm Submitter" requires a compatible render farm plugin, such as Deadline. Install and set up the render farm plugin first.
Why are the multi-shot features not available in Nuke?
The multi-shot workflow is experimental and requires Nuke 17.0+.
It must be enabled explicitly with the PRISM_NUKE_ENABLE_MULTISHOT=1 environment variable.
Why do new "Read" or "Write" nodes not have a "Prism" tab?
The Prism controls on new nodes are controlled by the PRISM_NUKE_READ_ADD_KNOBS and PRISM_NUKE_WRITE_ADD_KNOBS environment variables.
Both are enabled and set to 1 by default. If the tab is missing, check that they are not set to 0.
Why is no newer-version notification shown when opening a scenefile?
The check is controlled by the PRISM_NUKE_CHECK_MEDIA_ON_SCENE_OPEN environment variable.
It is enabled and set to 1 by default. If the notification does not appear, check that the variable is not set to 0.
![[Logo: Nuke]](../../_static/banner_logos/nuke_logo.png)