CH = Code Handler, ASSH = AssetHandler
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.jsonin the ASSH folder (and every other.jsonin 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 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.
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.


