daz_get_node_hierarchy
Retrieve the complete hierarchy tree for a node, showing all descendants. Use to analyze skeleton structures, bone relationships, or complex scene hierarchies with configurable depth limits.
Instructions
Get complete hierarchy tree for a node with all descendants.
Returns the full hierarchical structure of a node, including all children, grandchildren, etc. Useful for understanding skeleton structure, bone relationships, and complex scene hierarchies.
Args: node_label: Display label or internal name of the root node. max_depth: Maximum recursion depth (default 10, 0 = unlimited). Use to limit deep hierarchies (e.g., Genesis 9 skeleton has 100+ bones).
Returns:
node: Root node label
hierarchy: Nested structure with:
label: Node display label
name: Internal name
type: DazScript class name
children: List of child hierarchies (recursive)
totalDescendants: Total number of descendants
Example: # Get skeleton hierarchy with depth limit result = daz_get_node_hierarchy("Genesis 9", max_depth=3) # Returns nested structure: hip -> abdomen -> chest -> ...
# Get full hierarchy (warning: can be large)
result = daz_get_node_hierarchy("Genesis 9", max_depth=0)
# Returns complete skeleton with all 100+ bones
# Get prop hierarchy
result = daz_get_node_hierarchy("Sword", max_depth=5)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_label | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||