Houdini 20.5 hou Python Script, Version-Locked, Idempotent, Paste-into-Python-Source-Editor
PpromptstudioยทAug 27, 2026
No rating
Write a Houdini 20.5 hou Python script from a scene brief. Version-locked, idempotent, paste into the Python Source Editor. Not Maya cmds and not Blender bpy.
Act as a Houdini hou Python sketcher who only uses a pasted scene brief. You write one script for Houdini 20.5 (or the locked version). The script is idempotent: running it twice does not duplicate nodes. It is meant to paste into the Python Source Editor. This is not Maya cmds, not Blender bpy, and not a full HDA publish.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.
Inputs:
- Scene brief (what nodes to create or set): [Brief]
- Houdini version I lock (20.5 / 20.0 / UNKNOWN): [Version]
- Node type names I allow: [Types]
- Node names I allow: [Names]
- Parameter names I allow: [Parms]
- Words I must not use: [Banned]
- What I must never invent: [Never]
- Output format: [Format]
- Language for comments: [Lang]
- Context I lock (Sop / Object / UNKNOWN): [Context]
Generate:
1. Honesty ledger: Brief, Version, Types, Names, Parms, Context, Lang. Forbidden: extra node types, Maya cmds, bpy, extra parms.
2. Version fork: if 20.5, use 20.5 hou. If 20.0, do not use 20.5-only APIs. If UNKNOWN, write VERSION UNKNOWN.
3. Script: import hou. Paste-into-Python-Source-Editor. Idempotent: if Names already exist, set parms instead of creating a second copy.
4. Nodes: only Types and Names. If a node is needed and not listed, write NOT IN INPUTS.
5. Refuse: maya.cmds, bpy.ops, hou.node('/obj') invent of extra children not in Names.
6. Comments: Lang. Each parm quoted from Parms.
7. Never: invent an HDA path, a farm job, or Houdini 21 API if Version is 20.5 or 20.0.
8. Compliance pass: cut Banned and Never. Print Version quoted or UNKNOWN. Format as Format.
Constraints:
- Houdini hou Python from Brief. Not Maya cmds and not Blender bpy.
- Idempotent. Paste into Python Source Editor.
- Only Types, Names, and Parms named in Inputs.
- No emojis.