1. Home
  2. Docs
  3. AssetHandler Documentatio...
  4. Code Handler

Code Handler

CH = Code Handler, ASSH = AssetHandler

Screenshot from version 1.20.0. The current version may look different.

The Code Handler is a small library for code snippets and node setups. Open it with the CodeHandler button at the top of the ASSH or with the shelf tool Code Handler.

Databases

The snippets are stored in JSON databases. Choose the database in the Database menu:

  • Shared: Database/Code_Database.json in the ASSH folder (and every other .json in that folder)
  • Personal: $HOUDINI_USER_PREF_DIR/plugins/ns_AssetHandler/CodeHandler/Database/<USER>_Code_Database.json, created on the first start

New entries are not saved automatically. Press Save DB before you close the Code Handler. Backup saves a copy of the database first.

Store code

Select a node and press Get Code. The Code Handler reads the code from:

  • VEX: Attribute, Volume and Deformation Wrangle, KineFX Rig Attribute Wrangle, Copernicus Wrangle
  • Python: Python SOP, KineFX Rig Python, TOP Python Script
  • OpenCL: the Copernicus OpenCL node
  • OSL: Redshift OSL and the Octane OSL nodes

Add Code writes the selected snippet into a new node of the right type, Replace Code replaces the code of the selected node.

Store VEX snippetsScreenshot from version 1.11. The current version may look different.

Store node setups

Get Nodes stores the selected nodes as Python code. Exec rebuilds them in the current network.

Locked nodes (built-in tools, HDAs, solvers) are stored without their inner changes. Unlock them before you press Get Nodes.

Store setups as Python codeScreenshot from version 1.11. The current version may look different.

Search and notes

Search by Name, Tag, Author or Type. Every entry can have tags and a description; in Edit Mode you can format the text (bold, colour), add links and pictures.