Deletes a node from the scene.
(self, path)
| 394 | return {"path": node.path(), "changes": changes} |
| 395 | |
| 396 | def delete_node(self, path): |
| 397 | """Deletes a node from the scene.""" |
| 398 | node = hou.node(path) |
| 399 | if not node: |
| 400 | raise ValueError(f"Node not found: {path}") |
| 401 | node_path = node.path() |
| 402 | node_name = node.name() |
| 403 | node.destroy() |
| 404 | return {"deleted": node_path, "name": node_name} |
| 405 | |
| 406 | def get_node_info(self, path): |
| 407 | """Returns detailed information about a single node.""" |