UsdPythonWrite

The UsdPythonWrite node lets you use Python in the Parameters tab to author USD layers. The resulting layer is composed with layers upstream.

Note:  The UsdPythonWrite node is not meant for standard workflow usage. We recommend you to use it for debugging and rapid testing.

Enabling the UsdPythonWrite Node

By default, the UsdPythonWrite node type is disabled. To enable it you must edit your launcher script.

For Windows

Copy and paste this environment variable into your launcher script.

set KATANA_ENABLE_USDPYTHONWRITE_NODE=1

For Linux

Copy and paste this environment variable into your launcher script.

export KATANA_ENABLE_USDPYTHONWRITE_NODE=1

Control (UI)

Default Value

Function

layerContent layer.definePrim("/root", "Scope") A Python script to describe a USD scene.
Edit in External Editor N/A

This feature allows you to edit your Python scripts using software other than Katana.

This opens an external editor, as set up in Edit > Preferences > externalTools > Editor, for editing the script without blocking Katana's user interface. Under editor enter the location of the application you want to use.

Katana monitors the text files you are editing, and when it detects that they have changed, it updates the node accordingly.