vibrante-node 2.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. src/core/__init__.py +0 -0
  2. src/core/engine.py +484 -0
  3. src/core/events.py +32 -0
  4. src/core/graph.py +74 -0
  5. src/core/integrity.py +925 -0
  6. src/core/loader.py +56 -0
  7. src/core/manifest.py +910 -0
  8. src/core/models.py +59 -0
  9. src/core/persistence.py +27 -0
  10. src/core/python_to_workflow.py +182 -0
  11. src/core/registry.py +314 -0
  12. src/core/workflow_to_python.py +801 -0
  13. src/main.py +188 -0
  14. src/models/__init__.py +0 -0
  15. src/nodes/__init__.py +0 -0
  16. src/nodes/ai/__init__.py +1 -0
  17. src/nodes/base.py +174 -0
  18. src/nodes/builtins/__init__.py +0 -0
  19. src/nodes/builtins/group_node.py +210 -0
  20. src/nodes/builtins/nodes.py +452 -0
  21. src/nodes/print.py +19 -0
  22. src/nodes/test.py +19 -0
  23. src/ui/__init__.py +0 -0
  24. src/ui/canvas/__init__.py +0 -0
  25. src/ui/canvas/backdrop.py +223 -0
  26. src/ui/canvas/canvas_search_bar.py +222 -0
  27. src/ui/canvas/edge.py +98 -0
  28. src/ui/canvas/mini_map.py +138 -0
  29. src/ui/canvas/node_search_popup.py +270 -0
  30. src/ui/canvas/scene.py +1149 -0
  31. src/ui/canvas/sticky_note.py +123 -0
  32. src/ui/canvas/view.py +285 -0
  33. src/ui/code_editor.py +435 -0
  34. src/ui/export_python_dialog.py +490 -0
  35. src/ui/gemini_api_dialog.py +41 -0
  36. src/ui/gemini_chat.py +370 -0
  37. src/ui/import_python_dialog.py +122 -0
  38. src/ui/library_panel.py +246 -0
  39. src/ui/log_panel.py +315 -0
  40. src/ui/node_builder.py +841 -0
  41. src/ui/node_widget.py +1009 -0
  42. src/ui/port_widget.py +116 -0
  43. src/ui/script_editor.py +53 -0
  44. src/ui/scripting_console.py +270 -0
  45. src/ui/settings_window.py +575 -0
  46. src/ui/window.py +2012 -0
  47. src/utils/color_manager.py +50 -0
  48. src/utils/config_manager.py +71 -0
  49. src/utils/env_manager.py +232 -0
  50. src/utils/highlighter.py +110 -0
  51. src/utils/paths.py +30 -0
  52. src/utils/prism_config.py +300 -0
  53. src/utils/prism_core.py +80 -0
  54. src/utils/qt_compat.py +159 -0
  55. src/utils/runtime.py +80 -0
  56. vibrante_node/CLA.md +96 -0
  57. vibrante_node/COMMERCIAL_LICENSE.md +170 -0
  58. vibrante_node/LICENSE +178 -0
  59. vibrante_node/LICENSES/AGPL-3.0.txt +661 -0
  60. vibrante_node/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  61. vibrante_node/LICENSES/CC-BY-4.0.txt +396 -0
  62. vibrante_node/LICENSES/GPL-3.0.txt +674 -0
  63. vibrante_node/LICENSES/LGPL-3.0.txt +165 -0
  64. vibrante_node/LICENSES/README.md +65 -0
  65. vibrante_node/THIRD_PARTY_NOTICES.txt +3277 -0
  66. vibrante_node/__init__.py +2 -0
  67. vibrante_node/app.py +60 -0
  68. vibrante_node/docs/AUTOMATION_API.html +785 -0
  69. vibrante_node/docs/DEVELOPER.html +891 -0
  70. vibrante_node/docs/DOCUMENTATION.html +2761 -0
  71. vibrante_node/docs/LICENSE.txt +35 -0
  72. vibrante_node/docs/NODE_BUILDER_API.html +1155 -0
  73. vibrante_node/docs/RELEASE_v1.0.5.html +140 -0
  74. vibrante_node/docs/RELEASE_v1.1.0.html +163 -0
  75. vibrante_node/docs/RELEASE_v1.1.5.html +286 -0
  76. vibrante_node/docs/RELEASE_v1.2.0.html +175 -0
  77. vibrante_node/docs/RELEASE_v1.3.0.html +168 -0
  78. vibrante_node/docs/RELEASE_v1.4.0.html +160 -0
  79. vibrante_node/docs/RELEASE_v1.5.0.html +432 -0
  80. vibrante_node/docs/RELEASE_v1.6.0.html +293 -0
  81. vibrante_node/docs/RELEASE_v1.6.1.html +171 -0
  82. vibrante_node/docs/RELEASE_v1.7.0.html +270 -0
  83. vibrante_node/docs/RELEASE_v1.8.0.html +201 -0
  84. vibrante_node/docs/RELEASE_v1.8.1.html +124 -0
  85. vibrante_node/docs/RELEASE_v1.8.2.html +119 -0
  86. vibrante_node/docs/RELEASE_v1.8.3.html +125 -0
  87. vibrante_node/docs/RELEASE_v1.8.4.html +210 -0
  88. vibrante_node/docs/RELEASE_v1.8.5.html +223 -0
  89. vibrante_node/docs/RELEASE_v2.0.0.html +284 -0
  90. vibrante_node/docs/RELEASE_v2.1.0.html +259 -0
  91. vibrante_node/docs/RELEASE_v2.1.1.html +156 -0
  92. vibrante_node/docs/RELEASE_v2.2.0.html +369 -0
  93. vibrante_node/docs/RELEASE_v2.2.1.html +168 -0
  94. vibrante_node/docs/RELEASE_v2.3.0.html +185 -0
  95. vibrante_node/docs/RELEASE_v2.4.0.html +446 -0
  96. vibrante_node/docs/RELEASE_v2.5.0.html +478 -0
  97. vibrante_node/docs/RELEASE_v2.5.1.html +190 -0
  98. vibrante_node/docs/USER_GUIDE.html +1407 -0
  99. vibrante_node/docs/index.html +103 -0
  100. vibrante_node/docs/portal/01_introduction.html +1177 -0
  101. vibrante_node/docs/portal/02_getting_started.html +1267 -0
  102. vibrante_node/docs/portal/03_user_guide.html +1736 -0
  103. vibrante_node/docs/portal/04_workflow_tutorials.html +1473 -0
  104. vibrante_node/docs/portal/05_node_development.html +1562 -0
  105. vibrante_node/docs/portal/06_backend_architecture.html +1373 -0
  106. vibrante_node/docs/portal/07_frontend_architecture.html +1588 -0
  107. vibrante_node/docs/portal/08_api_reference.html +2336 -0
  108. vibrante_node/docs/portal/09_advanced_topics.html +1664 -0
  109. vibrante_node/docs/portal/10_contribution_guide.html +1263 -0
  110. vibrante_node/docs/portal/11_troubleshooting.html +1108 -0
  111. vibrante_node/docs/portal/12_examples_library.html +1498 -0
  112. vibrante_node/docs/portal/13_general_purpose_automation.html +1472 -0
  113. vibrante_node/docs/portal/14_custom_nodes_api.html +1960 -0
  114. vibrante_node/docs/portal/index.html +605 -0
  115. vibrante_node/docs/portal/integrations_blender.html +605 -0
  116. vibrante_node/docs/portal/integrations_deadline.html +536 -0
  117. vibrante_node/docs/portal/integrations_houdini.html +787 -0
  118. vibrante_node/docs/portal/integrations_maya.html +675 -0
  119. vibrante_node/docs/portal/integrations_prism.html +628 -0
  120. vibrante_node/docs/portal/search.json +1 -0
  121. vibrante_node/docs/validation.json +333 -0
  122. vibrante_node/examples/arnold_lighting/orchestration_notes.md +45 -0
  123. vibrante_node/examples/arnold_lighting/prompt.md +47 -0
  124. vibrante_node/examples/automation/01_linear_chain.py +10 -0
  125. vibrante_node/examples/automation/02_batch_update_prefix.py +8 -0
  126. vibrante_node/examples/automation/03_reset_scene.py +5 -0
  127. vibrante_node/examples/automation/04_batch_execution.py +9 -0
  128. vibrante_node/examples/automation/05_git_backup.py +6 -0
  129. vibrante_node/examples/automation/06_reset_math_nodes.py +12 -0
  130. vibrante_node/examples/automation/07_stress_test_grid.py +8 -0
  131. vibrante_node/examples/automation/08_scene_summary.py +8 -0
  132. vibrante_node/examples/automation/09_toggle_bools.py +8 -0
  133. vibrante_node/examples/automation/10_session_report.py +7 -0
  134. vibrante_node/examples/automation/11_simple_math_node.py +7 -0
  135. vibrante_node/examples/cinematic_camera/orchestration_notes.md +56 -0
  136. vibrante_node/examples/cinematic_camera/prompt.md +50 -0
  137. vibrante_node/examples/cinematic_explosion/orchestration_notes.md +76 -0
  138. vibrante_node/examples/cinematic_explosion/prompt.md +47 -0
  139. vibrante_node/examples/cinematic_explosion/review.md +75 -0
  140. vibrante_node/examples/dust_wave/orchestration_notes.md +43 -0
  141. vibrante_node/examples/dust_wave/prompt.md +40 -0
  142. vibrante_node/examples/nodes/async_delay.py +21 -0
  143. vibrante_node/examples/nodes/connection_logger.py +25 -0
  144. vibrante_node/examples/nodes/data_filter.py +19 -0
  145. vibrante_node/examples/nodes/dict_merge.py +20 -0
  146. vibrante_node/examples/nodes/dict_summary.py +21 -0
  147. vibrante_node/examples/nodes/dropdown_selector.py +29 -0
  148. vibrante_node/examples/nodes/env_reader.py +18 -0
  149. vibrante_node/examples/nodes/list_item_picker.py +85 -0
  150. vibrante_node/examples/nodes/list_stats.py +27 -0
  151. vibrante_node/examples/nodes/logic_threshold.py +23 -0
  152. vibrante_node/examples/nodes/math_square.py +30 -0
  153. vibrante_node/examples/nodes/random_list.py +18 -0
  154. vibrante_node/examples/nodes/reactive_config.py +24 -0
  155. vibrante_node/examples/nodes/safety_reset.py +31 -0
  156. vibrante_node/examples/nodes/string_reverse.py +16 -0
  157. vibrante_node/icons/210429_DeadlineFreeOn10RenderMachines.jpg +0 -0
  158. vibrante_node/icons/README.md +39 -0
  159. vibrante_node/icons/blender_icon.png +0 -0
  160. vibrante_node/icons/braces.png +0 -0
  161. vibrante_node/icons/braces.svg +1 -0
  162. vibrante_node/icons/builder.png +0 -0
  163. vibrante_node/icons/check.png +0 -0
  164. vibrante_node/icons/check.svg +1 -0
  165. vibrante_node/icons/chevron-right.svg +3 -0
  166. vibrante_node/icons/code.png +0 -0
  167. vibrante_node/icons/code.svg +4 -0
  168. vibrante_node/icons/computer-window.png +0 -0
  169. vibrante_node/icons/data.png +0 -0
  170. vibrante_node/icons/data.svg +5 -0
  171. vibrante_node/icons/database-search.png +0 -0
  172. vibrante_node/icons/database-search.svg +5 -0
  173. vibrante_node/icons/database-zap.png +0 -0
  174. vibrante_node/icons/database-zap.svg +5 -0
  175. vibrante_node/icons/database.png +0 -0
  176. vibrante_node/icons/database.svg +5 -0
  177. vibrante_node/icons/dice.png +0 -0
  178. vibrante_node/icons/dice.svg +1 -0
  179. vibrante_node/icons/divide.svg +5 -0
  180. vibrante_node/icons/file-input.svg +6 -0
  181. vibrante_node/icons/file-plus.png +0 -0
  182. vibrante_node/icons/file-plus.svg +6 -0
  183. vibrante_node/icons/file-text.png +0 -0
  184. vibrante_node/icons/file-text.svg +7 -0
  185. vibrante_node/icons/folder-plus.png +0 -0
  186. vibrante_node/icons/folder-plus.svg +5 -0
  187. vibrante_node/icons/folder.png +0 -0
  188. vibrante_node/icons/folder.svg +3 -0
  189. vibrante_node/icons/gear.png +0 -0
  190. vibrante_node/icons/gear.svg +1 -0
  191. vibrante_node/icons/git-branch.svg +6 -0
  192. vibrante_node/icons/hash.png +0 -0
  193. vibrante_node/icons/hash.svg +1 -0
  194. vibrante_node/icons/houdini.svg +4 -0
  195. vibrante_node/icons/houdini_icon.png +0 -0
  196. vibrante_node/icons/http.png +0 -0
  197. vibrante_node/icons/list-check.png +0 -0
  198. vibrante_node/icons/list-check.svg +7 -0
  199. vibrante_node/icons/list-plus.svg +10 -0
  200. vibrante_node/icons/list.png +0 -0
  201. vibrante_node/icons/list.svg +8 -0
  202. vibrante_node/icons/logic.png +0 -0
  203. vibrante_node/icons/logic.svg +7 -0
  204. vibrante_node/icons/math.png +0 -0
  205. vibrante_node/icons/math.svg +4 -0
  206. vibrante_node/icons/maya_icon.jpg +0 -0
  207. vibrante_node/icons/message.png +0 -0
  208. vibrante_node/icons/message.svg +3 -0
  209. vibrante_node/icons/minus.svg +3 -0
  210. vibrante_node/icons/multiply.png +0 -0
  211. vibrante_node/icons/multiply.svg +1 -0
  212. vibrante_node/icons/online-library.png +0 -0
  213. vibrante_node/icons/percentage.svg +5 -0
  214. vibrante_node/icons/plus.png +0 -0
  215. vibrante_node/icons/plus.svg +1 -0
  216. vibrante_node/icons/print.png +0 -0
  217. vibrante_node/icons/print.svg +5 -0
  218. vibrante_node/icons/prism_icon.png +0 -0
  219. vibrante_node/icons/refresh.svg +6 -0
  220. vibrante_node/icons/repeat.svg +6 -0
  221. vibrante_node/icons/scales.png +0 -0
  222. vibrante_node/icons/scales.svg +1 -0
  223. vibrante_node/icons/shuffle.svg +7 -0
  224. vibrante_node/icons/string.png +0 -0
  225. vibrante_node/icons/string.svg +5 -0
  226. vibrante_node/icons/terminal.png +0 -0
  227. vibrante_node/icons/terminal.svg +1 -0
  228. vibrante_node/icons/timer.png +0 -0
  229. vibrante_node/icons/timer.svg +4 -0
  230. vibrante_node/icons/toggle-switch.svg +5 -0
  231. vibrante_node/icons/uppercase.png +0 -0
  232. vibrante_node/icons/uppercase.svg +1 -0
  233. vibrante_node/icons/variable-get.svg +4 -0
  234. vibrante_node/icons/variable-set.svg +6 -0
  235. vibrante_node/icons/variable.png +0 -0
  236. vibrante_node/icons/variable.svg +5 -0
  237. vibrante_node/icons/vibrante-node-icon.png +0 -0
  238. vibrante_node/icons/vibrante-node-logo.png +0 -0
  239. vibrante_node/icons/vibrante-node-main_logo.png +0 -0
  240. vibrante_node/icons/vibrante-node-resize_main_logo.png +0 -0
  241. vibrante_node/logo.png +0 -0
  242. vibrante_node/mcp_cli.py +36 -0
  243. vibrante_node/node_examples/Split_String.json +35 -0
  244. vibrante_node/node_examples/async_delay.json +32 -0
  245. vibrante_node/node_examples/delay_timer.json +29 -0
  246. vibrante_node/node_examples/file_reader.json +29 -0
  247. vibrante_node/node_examples/fruit_selector.json +37 -0
  248. vibrante_node/node_examples/json_parser.json +29 -0
  249. vibrante_node/node_examples/line_counter.json +29 -0
  250. vibrante_node/node_examples/list_append.json +32 -0
  251. vibrante_node/node_examples/list_images_recursive.json +55 -0
  252. vibrante_node/node_examples/logic_and.json +34 -0
  253. vibrante_node/node_examples/logic_compare.json +36 -0
  254. vibrante_node/node_examples/math_abs.json +29 -0
  255. vibrante_node/node_examples/math_add.json +32 -0
  256. vibrante_node/node_examples/reactive_config.json +28 -0
  257. vibrante_node/node_examples/string_uppercase.json +29 -0
  258. vibrante_node/nodes/Dropdown_Selector.json +27 -0
  259. vibrante_node/nodes/add_integers.json +34 -0
  260. vibrante_node/nodes/blender_action_bake_animation.json +23 -0
  261. vibrante_node/nodes/blender_action_custom.json +21 -0
  262. vibrante_node/nodes/blender_action_export_alembic.json +22 -0
  263. vibrante_node/nodes/blender_action_export_fbx.json +23 -0
  264. vibrante_node/nodes/blender_action_export_gltf.json +21 -0
  265. vibrante_node/nodes/blender_action_export_obj.json +19 -0
  266. vibrante_node/nodes/blender_action_export_usd.json +23 -0
  267. vibrante_node/nodes/blender_action_import_alembic.json +18 -0
  268. vibrante_node/nodes/blender_action_import_fbx.json +18 -0
  269. vibrante_node/nodes/blender_action_import_gltf.json +18 -0
  270. vibrante_node/nodes/blender_action_import_obj.json +18 -0
  271. vibrante_node/nodes/blender_action_new_blend.json +18 -0
  272. vibrante_node/nodes/blender_action_open_blend.json +18 -0
  273. vibrante_node/nodes/blender_action_render.json +23 -0
  274. vibrante_node/nodes/blender_action_save_blend.json +18 -0
  275. vibrante_node/nodes/blender_action_scene_info.json +17 -0
  276. vibrante_node/nodes/blender_action_set_frame_range.json +20 -0
  277. vibrante_node/nodes/blender_action_set_render_settings.json +27 -0
  278. vibrante_node/nodes/blender_get_action_result.json +22 -0
  279. vibrante_node/nodes/blender_headless.json +86 -0
  280. vibrante_node/nodes/compare.json +48 -0
  281. vibrante_node/nodes/console_print.json +29 -0
  282. vibrante_node/nodes/create_dictionary.json +18 -0
  283. vibrante_node/nodes/create_folder.json +17 -0
  284. vibrante_node/nodes/create_list.json +18 -0
  285. vibrante_node/nodes/deadline_blender_submit.json +38 -0
  286. vibrante_node/nodes/deadline_houdini_submit.json +38 -0
  287. vibrante_node/nodes/deadline_job_status.json +28 -0
  288. vibrante_node/nodes/deadline_maya_submit.json +40 -0
  289. vibrante_node/nodes/delay_timer.json +26 -0
  290. vibrante_node/nodes/example_random_float.json +35 -0
  291. vibrante_node/nodes/file_append.json +18 -0
  292. vibrante_node/nodes/file_write.json +18 -0
  293. vibrante_node/nodes/for_loop.json +46 -0
  294. vibrante_node/nodes/get_dict_value.json +19 -0
  295. vibrante_node/nodes/get_list_item.json +19 -0
  296. vibrante_node/nodes/houdini_action_bake_animation.json +20 -0
  297. vibrante_node/nodes/houdini_action_custom.json +20 -0
  298. vibrante_node/nodes/houdini_action_export_alembic.json +20 -0
  299. vibrante_node/nodes/houdini_action_export_camera_alembic.json +20 -0
  300. vibrante_node/nodes/houdini_action_export_fbx.json +18 -0
  301. vibrante_node/nodes/houdini_action_import_alembic.json +18 -0
  302. vibrante_node/nodes/houdini_action_import_camera.json +17 -0
  303. vibrante_node/nodes/houdini_action_import_fbx.json +18 -0
  304. vibrante_node/nodes/houdini_action_import_obj.json +18 -0
  305. vibrante_node/nodes/houdini_action_new_hip.json +16 -0
  306. vibrante_node/nodes/houdini_action_open_hip.json +17 -0
  307. vibrante_node/nodes/houdini_action_save_hip.json +17 -0
  308. vibrante_node/nodes/houdini_action_scene_info.json +16 -0
  309. vibrante_node/nodes/houdini_action_set_frame_range.json +18 -0
  310. vibrante_node/nodes/houdini_get_action_result.json +21 -0
  311. vibrante_node/nodes/houdini_headless.json +85 -0
  312. vibrante_node/nodes/houdini_scene_snapshot.json +41 -0
  313. vibrante_node/nodes/http_request.json +76 -0
  314. vibrante_node/nodes/if_condition.json +45 -0
  315. vibrante_node/nodes/list_directory.json +17 -0
  316. vibrante_node/nodes/list_images_recursive.json +41 -0
  317. vibrante_node/nodes/list_item_picker.json +41 -0
  318. vibrante_node/nodes/list_length.json +17 -0
  319. vibrante_node/nodes/logical_gate.json +45 -0
  320. vibrante_node/nodes/loop_body.json +62 -0
  321. vibrante_node/nodes/math_add.json +17 -0
  322. vibrante_node/nodes/math_divide.json +17 -0
  323. vibrante_node/nodes/math_modulo.json +17 -0
  324. vibrante_node/nodes/math_multiply.json +36 -0
  325. vibrante_node/nodes/math_subtract.json +17 -0
  326. vibrante_node/nodes/maya_action_assign_material.json +18 -0
  327. vibrante_node/nodes/maya_action_bake_animation.json +21 -0
  328. vibrante_node/nodes/maya_action_create_render_layer.json +19 -0
  329. vibrante_node/nodes/maya_action_custom.json +20 -0
  330. vibrante_node/nodes/maya_action_export_alembic.json +22 -0
  331. vibrante_node/nodes/maya_action_export_camera_alembic.json +20 -0
  332. vibrante_node/nodes/maya_action_export_fbx.json +18 -0
  333. vibrante_node/nodes/maya_action_import_alembic.json +17 -0
  334. vibrante_node/nodes/maya_action_import_camera.json +17 -0
  335. vibrante_node/nodes/maya_action_import_fbx.json +17 -0
  336. vibrante_node/nodes/maya_action_import_obj.json +17 -0
  337. vibrante_node/nodes/maya_action_list_references.json +16 -0
  338. vibrante_node/nodes/maya_action_new_scene.json +16 -0
  339. vibrante_node/nodes/maya_action_open_scene.json +18 -0
  340. vibrante_node/nodes/maya_action_playblast.json +22 -0
  341. vibrante_node/nodes/maya_action_reference_alembic.json +18 -0
  342. vibrante_node/nodes/maya_action_reference_scene.json +18 -0
  343. vibrante_node/nodes/maya_action_save_scene.json +18 -0
  344. vibrante_node/nodes/maya_action_scene_info.json +16 -0
  345. vibrante_node/nodes/maya_action_set_aovs.json +18 -0
  346. vibrante_node/nodes/maya_action_set_frame_range.json +18 -0
  347. vibrante_node/nodes/maya_action_set_render_settings.json +23 -0
  348. vibrante_node/nodes/maya_get_action_result.json +21 -0
  349. vibrante_node/nodes/maya_headless.json +27 -0
  350. vibrante_node/nodes/mcp_call_tool.json +19 -0
  351. vibrante_node/nodes/mcp_list_tools.json +18 -0
  352. vibrante_node/nodes/mcp_server_init.json +23 -0
  353. vibrante_node/nodes/message_node.json +32 -0
  354. vibrante_node/nodes/prism_add_integration.json +49 -0
  355. vibrante_node/nodes/prism_build_entity.json +45 -0
  356. vibrante_node/nodes/prism_change_project.json +37 -0
  357. vibrante_node/nodes/prism_core_info.json +37 -0
  358. vibrante_node/nodes/prism_core_init.json +46 -0
  359. vibrante_node/nodes/prism_create_category.json +44 -0
  360. vibrante_node/nodes/prism_create_entity.json +60 -0
  361. vibrante_node/nodes/prism_create_playblast.json +56 -0
  362. vibrante_node/nodes/prism_create_product_version.json +64 -0
  363. vibrante_node/nodes/prism_create_project.json +50 -0
  364. vibrante_node/nodes/prism_create_scene_from_preset.json +59 -0
  365. vibrante_node/nodes/prism_eval.json +42 -0
  366. vibrante_node/nodes/prism_get_aovs.json +29 -0
  367. vibrante_node/nodes/prism_get_asset_by_name.json +69 -0
  368. vibrante_node/nodes/prism_get_asset_type_by_name.json +62 -0
  369. vibrante_node/nodes/prism_get_asset_types_by_project.json +55 -0
  370. vibrante_node/nodes/prism_get_assets_by_project.json +41 -0
  371. vibrante_node/nodes/prism_get_assets_by_type.json +69 -0
  372. vibrante_node/nodes/prism_get_config.json +48 -0
  373. vibrante_node/nodes/prism_get_current_scene.json +37 -0
  374. vibrante_node/nodes/prism_get_departments.json +37 -0
  375. vibrante_node/nodes/prism_get_entity_info.json +69 -0
  376. vibrante_node/nodes/prism_get_entity_path.json +69 -0
  377. vibrante_node/nodes/prism_get_export_path.json +26 -0
  378. vibrante_node/nodes/prism_get_latest_product_path.json +34 -0
  379. vibrante_node/nodes/prism_get_media.json +29 -0
  380. vibrante_node/nodes/prism_get_media_versions.json +33 -0
  381. vibrante_node/nodes/prism_get_plugin.json +35 -0
  382. vibrante_node/nodes/prism_get_preset_scenes.json +35 -0
  383. vibrante_node/nodes/prism_get_product_versions.json +33 -0
  384. vibrante_node/nodes/prism_get_products.json +29 -0
  385. vibrante_node/nodes/prism_get_project_by_name.json +55 -0
  386. vibrante_node/nodes/prism_get_project_config_path.json +26 -0
  387. vibrante_node/nodes/prism_get_scene_files.json +45 -0
  388. vibrante_node/nodes/prism_get_scene_path.json +23 -0
  389. vibrante_node/nodes/prism_get_sequence_by_project.json +48 -0
  390. vibrante_node/nodes/prism_get_sequences_by_project.json +41 -0
  391. vibrante_node/nodes/prism_get_shot_by_name.json +62 -0
  392. vibrante_node/nodes/prism_get_shot_by_sequence.json +55 -0
  393. vibrante_node/nodes/prism_get_shot_info.json +69 -0
  394. vibrante_node/nodes/prism_get_shots.json +29 -0
  395. vibrante_node/nodes/prism_get_shots_by_project_sequence.json +48 -0
  396. vibrante_node/nodes/prism_get_shots_by_sequence.json +48 -0
  397. vibrante_node/nodes/prism_get_tasks.json +39 -0
  398. vibrante_node/nodes/prism_import_product.json +37 -0
  399. vibrante_node/nodes/prism_list_plugins.json +25 -0
  400. vibrante_node/nodes/prism_list_projects.json +25 -0
  401. vibrante_node/nodes/prism_login_token.json +33 -0
  402. vibrante_node/nodes/prism_monkey_patch.json +46 -0
  403. vibrante_node/nodes/prism_open_scene.json +33 -0
  404. vibrante_node/nodes/prism_popup.json +40 -0
  405. vibrante_node/nodes/prism_register_callback.json +58 -0
  406. vibrante_node/nodes/prism_save_scene_version.json +90 -0
  407. vibrante_node/nodes/prism_send_cmd.json +54 -0
  408. vibrante_node/nodes/prism_set_config.json +55 -0
  409. vibrante_node/nodes/prism_studio_assign_project.json +43 -0
  410. vibrante_node/nodes/prism_trigger_callback.json +42 -0
  411. vibrante_node/nodes/prism_usd_department_layer_path.json +35 -0
  412. vibrante_node/nodes/prism_usd_entity_path.json +29 -0
  413. vibrante_node/nodes/prism_usd_sublayer_path.json +41 -0
  414. vibrante_node/nodes/prism_usd_update_department_layer.json +33 -0
  415. vibrante_node/nodes/prism_usd_update_sublayer.json +33 -0
  416. vibrante_node/nodes/python_script.json +17 -0
  417. vibrante_node/nodes/scene_intent_extractor.json +25 -0
  418. vibrante_node/nodes/set_dict_value.json +20 -0
  419. vibrante_node/nodes/string_concat.json +47 -0
  420. vibrante_node/nodes/string_length.json +16 -0
  421. vibrante_node/nodes/string_lowercase.json +16 -0
  422. vibrante_node/nodes/string_replace.json +18 -0
  423. vibrante_node/nodes/string_split.json +17 -0
  424. vibrante_node/nodes/string_uppercase.json +16 -0
  425. vibrante_node/nodes/variable_node.json +42 -0
  426. vibrante_node/nodes/while_loop.json +18 -0
  427. vibrante_node/splash.png +0 -0
  428. vibrante_node/vfx_workflows/01_prism_project_overview.json +492 -0
  429. vibrante_node/vfx_workflows/02_maya_asset_publish.json +776 -0
  430. vibrante_node/vfx_workflows/03_multi_shot_alembic_export.json +856 -0
  431. vibrante_node/vfx_workflows/04_deadline_render_pipeline.json +994 -0
  432. vibrante_node/vfx_workflows/05_houdini_fx_pipeline.json +1056 -0
  433. vibrante_node/vfx_workflows/06_blender_multi_format_export.json +1206 -0
  434. vibrante_node/website_examples/database_query.json +69 -0
  435. vibrante_node/website_examples/email_notification.json +104 -0
  436. vibrante_node/website_examples/file_batch_processor.json +62 -0
  437. vibrante_node/website_examples/folder_monitor.json +55 -0
  438. vibrante_node/website_examples/hou_sop_chain.json +69 -0
  439. vibrante_node/website_examples/http_request.json +90 -0
  440. vibrante_node/website_examples/image_resizer.json +90 -0
  441. vibrante_node/website_examples/llm_text_generation.json +90 -0
  442. vibrante_node/website_examples/prism_multi_asset_publisher.json +76 -0
  443. vibrante_node/website_examples/regex_replace.json +69 -0
  444. vibrante_node/workflows/If_condition.json +134 -0
  445. vibrante_node/workflows/Maya_WorkFlow.json +464 -0
  446. vibrante_node/workflows/asset_intelligence_pipeline.json +259 -0
  447. vibrante_node/workflows/concat_string_with_loop.json +262 -0
  448. vibrante_node/workflows/delay_time.json +74 -0
  449. vibrante_node/workflows/example_workflow_maya_prism_demo.json +503 -0
  450. vibrante_node/workflows/example_workflow_prism_demo.json +276 -0
  451. vibrante_node/workflows/example_workflow_prism_demo_02.json +221 -0
  452. vibrante_node/workflows/extract_FPS_from_maya_scene.json +265 -0
  453. vibrante_node/workflows/for_each.json +260 -0
  454. vibrante_node/workflows/get_list_item.json +151 -0
  455. vibrante_node/workflows/hou_mcp_scene_context_demo.json +67 -0
  456. vibrante_node/workflows/list_recursive_images.json +103 -0
  457. vibrante_node/workflows/logic_if_example.json +262 -0
  458. vibrante_node/workflows/logic_if_with_variables.json +210 -0
  459. vibrante_node/workflows/loop_break_example.json +197 -0
  460. vibrante_node/workflows/loop_operation_example.json +382 -0
  461. vibrante_node/workflows/mcp_list_tools_demo.json +90 -0
  462. vibrante_node/workflows/prism_assets_workflow.json +131 -0
  463. vibrante_node/workflows/python_script_node.json +89 -0
  464. vibrante_node/workflows/run_in_sequence.json +158 -0
  465. vibrante_node/workflows/scene_intent_pipeline.json +134 -0
  466. vibrante_node/workflows/scene_planning_pipeline.json +258 -0
  467. vibrante_node/workflows/semantic_scene_intent.json +96 -0
  468. vibrante_node/workflows/setup_maya_scene.json +352 -0
  469. vibrante_node/workflows/tutorial_maya_headless_prism_pipeline.json +593 -0
  470. vibrante_node/workflows/two_way_switch.json +341 -0
  471. vibrante_node/workflows/while_loop_class_example.json +192 -0
  472. vibrante_node/workflows/while_loop_example.json +184 -0
  473. vibrante_node/workflows/while_loop_retry_example.json +276 -0
  474. vibrante_node-2.5.1.dist-info/METADATA +715 -0
  475. vibrante_node-2.5.1.dist-info/RECORD +487 -0
  476. vibrante_node-2.5.1.dist-info/WHEEL +5 -0
  477. vibrante_node-2.5.1.dist-info/entry_points.txt +3 -0
  478. vibrante_node-2.5.1.dist-info/licenses/CLA.md +96 -0
  479. vibrante_node-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
  480. vibrante_node-2.5.1.dist-info/licenses/LICENSE +178 -0
  481. vibrante_node-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
  482. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  483. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
  484. vibrante_node-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
  485. vibrante_node-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
  486. vibrante_node-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
  487. vibrante_node-2.5.1.dist-info/top_level.txt +2 -0
@@ -0,0 +1,2336 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="description" content="Vibrante-Node v2.5.1 — API Reference">
7
+ <title>API Reference — Vibrante-Node Docs</title>
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/styles/atom-one-dark.min.css">
9
+ <style>
10
+ /* ── Reset & Variables ─────────────────────────────────────────────────── */
11
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
12
+ :root {
13
+ --bg: #1e1e2e;
14
+ --surface: #181825;
15
+ --surface2: #11111b;
16
+ --border: #313244;
17
+ --text: #cdd6f4;
18
+ --subtext: #a6adc8;
19
+ --muted: #6c7086;
20
+ --lavender: #b4befe;
21
+ --blue: #89b4fa;
22
+ --teal: #94e2d5;
23
+ --green: #a6e3a1;
24
+ --yellow: #f9e2af;
25
+ --peach: #fab387;
26
+ --red: #f38ba8;
27
+ --pink: #f5c2e7;
28
+ --mauve: #cba6f7;
29
+ --sidebar-w: 260px;
30
+ --toc-w: 220px;
31
+ --header-h: 56px;
32
+ --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
33
+ --mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
34
+ }
35
+
36
+ /* ── Layout ─────────────────────────────────────────────────────────────── */
37
+ html { scroll-behavior: smooth; }
38
+ body {
39
+ font-family: var(--font);
40
+ background: var(--bg);
41
+ color: var(--text);
42
+ line-height: 1.7;
43
+ min-height: 100vh;
44
+ display: grid;
45
+ grid-template-rows: var(--header-h) 1fr;
46
+ grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
47
+ grid-template-areas:
48
+ "header header header"
49
+ "sidebar content toc";
50
+ }
51
+
52
+ /* ── Header ─────────────────────────────────────────────────────────────── */
53
+ .header {
54
+ grid-area: header;
55
+ position: sticky; top: 0; z-index: 200;
56
+ background: var(--surface2);
57
+ border-bottom: 1px solid var(--border);
58
+ display: flex; align-items: center; gap: 16px;
59
+ padding: 0 24px;
60
+ }
61
+ .header-logo {
62
+ font-weight: 700; font-size: 1.05em;
63
+ color: var(--mauve);
64
+ text-decoration: none;
65
+ white-space: nowrap;
66
+ }
67
+ .header-version {
68
+ font-size: .78em;
69
+ background: var(--border);
70
+ color: var(--subtext);
71
+ padding: 2px 8px; border-radius: 12px;
72
+ }
73
+ .header-spacer { flex: 1; }
74
+ .search-wrap { position: relative; }
75
+ #search-input {
76
+ background: var(--surface);
77
+ border: 1px solid var(--border);
78
+ border-radius: 8px;
79
+ color: var(--text);
80
+ font-family: var(--font);
81
+ font-size: .9em;
82
+ padding: 6px 14px 6px 36px;
83
+ width: 260px;
84
+ outline: none;
85
+ transition: border-color .15s;
86
+ }
87
+ #search-input:focus { border-color: var(--mauve); }
88
+ .search-icon {
89
+ position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
90
+ color: var(--muted); pointer-events: none; font-size: .9em;
91
+ }
92
+ #search-results {
93
+ position: absolute; top: calc(100% + 8px); right: 0;
94
+ width: 380px; max-height: 420px; overflow-y: auto;
95
+ background: var(--surface);
96
+ border: 1px solid var(--border);
97
+ border-radius: 10px;
98
+ box-shadow: 0 8px 32px rgba(0,0,0,.5);
99
+ display: none; z-index: 300;
100
+ }
101
+ #search-results.visible { display: block; }
102
+ .search-result-item {
103
+ padding: 10px 16px;
104
+ border-bottom: 1px solid var(--border);
105
+ cursor: pointer;
106
+ transition: background .1s;
107
+ }
108
+ .search-result-item:last-child { border-bottom: none; }
109
+ .search-result-item:hover { background: var(--bg); }
110
+ .search-result-title { color: var(--blue); font-weight: 600; font-size: .9em; }
111
+ .search-result-excerpt { color: var(--subtext); font-size: .82em; margin-top: 2px; line-height: 1.4; }
112
+ .search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: .9em; }
113
+
114
+ /* ── Sidebar ─────────────────────────────────────────────────────────────── */
115
+ .sidebar {
116
+ grid-area: sidebar;
117
+ position: sticky; top: var(--header-h);
118
+ height: calc(100vh - var(--header-h));
119
+ overflow-y: auto;
120
+ background: var(--surface);
121
+ border-right: 1px solid var(--border);
122
+ padding: 20px 0;
123
+ scrollbar-width: thin;
124
+ scrollbar-color: var(--border) transparent;
125
+ }
126
+ .sidebar::-webkit-scrollbar { width: 4px; }
127
+ .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
128
+
129
+ .sidebar-group { margin-bottom: 4px; }
130
+ .sidebar-group-title {
131
+ font-size: .7em;
132
+ text-transform: uppercase;
133
+ letter-spacing: .1em;
134
+ color: var(--muted);
135
+ padding: 10px 20px 4px;
136
+ font-weight: 600;
137
+ }
138
+ .sidebar-link {
139
+ display: flex; align-items: center; gap: 8px;
140
+ padding: 6px 20px;
141
+ color: var(--subtext);
142
+ text-decoration: none;
143
+ font-size: .88em;
144
+ border-left: 3px solid transparent;
145
+ transition: all .12s;
146
+ line-height: 1.3;
147
+ }
148
+ .sidebar-link:hover { color: var(--text); background: var(--bg); }
149
+ .sidebar-link.active {
150
+ color: var(--mauve);
151
+ border-left-color: var(--mauve);
152
+ background: rgba(180,190,254,.06);
153
+ font-weight: 600;
154
+ }
155
+ .sidebar-num {
156
+ font-size: .7em;
157
+ color: var(--muted);
158
+ background: var(--border);
159
+ border-radius: 4px;
160
+ padding: 1px 5px;
161
+ flex-shrink: 0;
162
+ }
163
+ .sidebar-divider {
164
+ border: none;
165
+ border-top: 1px solid var(--border);
166
+ margin: 12px 16px;
167
+ }
168
+
169
+ /* ── Content ─────────────────────────────────────────────────────────────── */
170
+ .content {
171
+ grid-area: content;
172
+ min-width: 0;
173
+ padding: 40px 48px 80px;
174
+ max-width: 860px;
175
+ }
176
+ .content-inner { max-width: 820px; }
177
+
178
+ /* Breadcrumb */
179
+ .breadcrumb {
180
+ font-size: .8em;
181
+ color: var(--muted);
182
+ margin-bottom: 28px;
183
+ display: flex; align-items: center; gap: 6px;
184
+ }
185
+ .breadcrumb a { color: var(--blue); text-decoration: none; }
186
+ .breadcrumb a:hover { text-decoration: underline; }
187
+ .breadcrumb-sep { color: var(--border); }
188
+
189
+ /* Typography */
190
+ h1 { font-size: 2em; color: var(--mauve); border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 20px 0 20px; }
191
+ h2 { font-size: 1.45em; color: var(--blue); margin: 40px 0 14px; padding-top: 8px; }
192
+ h3 { font-size: 1.15em; color: var(--teal); margin: 28px 0 10px; }
193
+ h4 { font-size: 1em; color: var(--pink); margin: 20px 0 8px; }
194
+ h5 { font-size: .95em; color: var(--yellow); margin: 16px 0 6px; }
195
+ p { margin-bottom: 16px; color: var(--text); }
196
+ a { color: var(--blue); }
197
+ a:hover { text-decoration: underline; }
198
+ strong { color: var(--peach); }
199
+ em { color: var(--yellow); font-style: italic; }
200
+
201
+ ul, ol { margin: 10px 0 16px 24px; }
202
+ li { margin-bottom: 6px; }
203
+ li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }
204
+
205
+ blockquote {
206
+ border-left: 4px solid var(--mauve);
207
+ padding: 10px 20px;
208
+ margin: 16px 0;
209
+ background: rgba(180,190,254,.05);
210
+ border-radius: 0 8px 8px 0;
211
+ color: var(--subtext);
212
+ }
213
+ blockquote strong { color: var(--mauve); }
214
+
215
+ hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
216
+
217
+ /* Code */
218
+ code {
219
+ background: var(--surface2);
220
+ color: var(--red);
221
+ padding: 2px 7px; border-radius: 5px;
222
+ font-family: var(--mono); font-size: .87em;
223
+ }
224
+ pre {
225
+ background: var(--surface2) !important;
226
+ border: 1px solid var(--border);
227
+ border-radius: 10px;
228
+ padding: 20px 22px;
229
+ overflow-x: auto;
230
+ margin: 16px 0 22px;
231
+ position: relative;
232
+ }
233
+ pre code {
234
+ background: none !important;
235
+ color: inherit !important;
236
+ padding: 0; font-size: .9em;
237
+ border-radius: 0;
238
+ }
239
+ /* Copy button */
240
+ .copy-btn {
241
+ position: absolute; top: 10px; right: 12px;
242
+ background: var(--border);
243
+ color: var(--subtext);
244
+ border: none; border-radius: 5px;
245
+ padding: 3px 10px; font-size: .75em;
246
+ cursor: pointer; transition: all .12s;
247
+ font-family: var(--font);
248
+ }
249
+ .copy-btn:hover { background: var(--mauve); color: var(--surface2); }
250
+ .copy-btn.copied { background: var(--green); color: var(--surface2); }
251
+
252
+ /* Tables */
253
+ table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: .9em; }
254
+ th { background: var(--border); color: var(--mauve); padding: 10px 14px; text-align: left; font-weight: 600; }
255
+ td { border-top: 1px solid var(--border); padding: 9px 14px; color: var(--text); }
256
+ tr:nth-child(even) td { background: rgba(17,17,27,.4); }
257
+ td code { font-size: .85em; }
258
+
259
+ /* Callout boxes */
260
+ .callout {
261
+ border-radius: 8px;
262
+ padding: 14px 18px;
263
+ margin: 16px 0 22px;
264
+ border-left: 4px solid;
265
+ }
266
+ .callout-note { background: rgba(137,180,250,.08); border-color: var(--blue); }
267
+ .callout-tip { background: rgba(166,227,161,.08); border-color: var(--green); }
268
+ .callout-warning { background: rgba(249,226,175,.08); border-color: var(--yellow); }
269
+ .callout-danger { background: rgba(243,139,168,.08); border-color: var(--red); }
270
+ .callout-title { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
271
+ .callout-note .callout-title { color: var(--blue); }
272
+ .callout-tip .callout-title { color: var(--green); }
273
+ .callout-warning .callout-title { color: var(--yellow); }
274
+ .callout-danger .callout-title { color: var(--red); }
275
+
276
+ /* Validation badges */
277
+ .val-badge {
278
+ display: inline-block; font-size: .78em; font-weight: 600;
279
+ padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
280
+ border: 1px solid transparent; letter-spacing: .02em;
281
+ }
282
+ .val-badge-ok { background: rgba(166,227,161,.12); border-color: var(--green); color: var(--green); }
283
+ .val-badge-warn { background: rgba(249,226,175,.12); border-color: var(--yellow); color: var(--yellow); }
284
+ .val-badge-error { background: rgba(243,139,168,.12); border-color: var(--red); color: var(--red); }
285
+ .val-badge-unknown { background: rgba(108,112,134,.12); border-color: #6c7086; color: #6c7086; }
286
+
287
+ /* Prev/Next navigation */
288
+ .page-nav {
289
+ display: flex; justify-content: space-between;
290
+ margin-top: 60px; padding-top: 24px;
291
+ border-top: 1px solid var(--border);
292
+ gap: 16px;
293
+ }
294
+ .page-nav-link {
295
+ display: flex; flex-direction: column;
296
+ text-decoration: none;
297
+ padding: 14px 20px;
298
+ background: var(--surface);
299
+ border: 1px solid var(--border);
300
+ border-radius: 10px;
301
+ min-width: 200px;
302
+ transition: border-color .15s;
303
+ max-width: 48%;
304
+ }
305
+ .page-nav-link:hover { border-color: var(--mauve); }
306
+ .page-nav-label { font-size: .75em; color: var(--muted); margin-bottom: 4px; }
307
+ .page-nav-title { color: var(--blue); font-weight: 600; font-size: .95em; }
308
+ .page-nav-link.prev .page-nav-label::before { content: '← '; }
309
+ .page-nav-link.next { margin-left: auto; text-align: right; }
310
+ .page-nav-link.next .page-nav-label::after { content: ' →'; }
311
+
312
+ /* ── TOC (right panel) ───────────────────────────────────────────────────── */
313
+ .toc {
314
+ grid-area: toc;
315
+ position: sticky; top: var(--header-h);
316
+ height: calc(100vh - var(--header-h));
317
+ overflow-y: auto;
318
+ padding: 28px 16px 28px 8px;
319
+ scrollbar-width: thin;
320
+ scrollbar-color: var(--border) transparent;
321
+ }
322
+ .toc-title {
323
+ font-size: .72em;
324
+ text-transform: uppercase;
325
+ letter-spacing: .1em;
326
+ color: var(--muted);
327
+ font-weight: 600;
328
+ margin-bottom: 12px;
329
+ padding-left: 8px;
330
+ }
331
+ .toc-link {
332
+ display: block;
333
+ padding: 4px 8px;
334
+ color: var(--subtext);
335
+ text-decoration: none;
336
+ font-size: .82em;
337
+ border-left: 2px solid transparent;
338
+ border-radius: 0 4px 4px 0;
339
+ transition: all .12s;
340
+ line-height: 1.35;
341
+ margin-bottom: 1px;
342
+ }
343
+ .toc-link:hover { color: var(--text); border-left-color: var(--border); }
344
+ .toc-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.05); }
345
+ .toc-link.toc-h3 { padding-left: 20px; font-size: .79em; }
346
+ .toc-link.toc-h4 { padding-left: 32px; font-size: .76em; color: var(--muted); }
347
+
348
+ /* ── Responsive ──────────────────────────────────────────────────────────── */
349
+ @media (max-width: 1100px) {
350
+ body { grid-template-columns: var(--sidebar-w) 1fr 0; }
351
+ .toc { display: none; }
352
+ }
353
+ @media (max-width: 760px) {
354
+ body { grid-template-columns: 0 1fr 0; grid-template-rows: var(--header-h) 1fr; }
355
+ .sidebar { display: none; }
356
+ .content { padding: 24px 20px 60px; }
357
+ #search-input { width: 180px; }
358
+ }
359
+
360
+ /* ── Index / landing page ────────────────────────────────────────────────── */
361
+ .hero { text-align: center; padding: 60px 0 48px; }
362
+ .hero h1 { border: none; font-size: 2.8em; }
363
+ .hero .tagline { color: var(--subtext); font-size: 1.15em; margin-top: 10px; }
364
+ .hero .version-badge {
365
+ display: inline-block;
366
+ background: var(--border); color: var(--mauve);
367
+ padding: 4px 14px; border-radius: 20px; font-size: .85em;
368
+ margin-top: 14px;
369
+ }
370
+ .group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 36px; }
371
+ .doc-card {
372
+ background: var(--surface);
373
+ border: 1px solid var(--border);
374
+ border-radius: 12px;
375
+ padding: 20px 24px;
376
+ text-decoration: none;
377
+ color: var(--text);
378
+ transition: border-color .15s, background .15s;
379
+ display: block;
380
+ }
381
+ .doc-card:hover { border-color: var(--mauve); background: rgba(180,190,254,.04); }
382
+ .doc-card-num { font-size: .72em; color: var(--muted); margin-bottom: 4px; }
383
+ .doc-card-title { color: var(--blue); font-weight: 700; font-size: 1em; margin-bottom: 6px; }
384
+ .doc-card-desc { color: var(--subtext); font-size: .85em; line-height: 1.5; }
385
+ .group-title { color: var(--teal); font-size: 1.1em; font-weight: 600; margin: 32px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
386
+ </style>
387
+ <span id="portal-base" data-base="" style="display:none"></span>
388
+ </head>
389
+ <body>
390
+
391
+ <!-- ── Header ─────────────────────────────────────────────────────────── -->
392
+ <header class="header">
393
+ <a class="header-logo" href="index.html">Vibrante-Node</a>
394
+ <span class="header-version">v2.5.1</span>
395
+ <div class="header-spacer"></div>
396
+ <div class="search-wrap">
397
+ <span class="search-icon">&#128269;</span>
398
+ <input id="search-input" type="text" placeholder="Search docs… (/)" autocomplete="off" spellcheck="false">
399
+ <div id="search-results"></div>
400
+ </div>
401
+ </header>
402
+
403
+ <!-- ── Sidebar ────────────────────────────────────────────────────────── -->
404
+ <nav class="sidebar">
405
+ <div class="sidebar-group">
406
+ <div class="sidebar-group-title">Overview</div>
407
+ <a class="sidebar-link" href="01_introduction.html"><span class="sidebar-num">01</span>Introduction</a>
408
+ <a class="sidebar-link" href="02_getting_started.html"><span class="sidebar-num">02</span>Getting Started</a>
409
+ </div>
410
+ <div class="sidebar-group">
411
+ <div class="sidebar-group-title">Using the App</div>
412
+ <a class="sidebar-link" href="03_user_guide.html"><span class="sidebar-num">03</span>User Guide</a>
413
+ <a class="sidebar-link" href="04_workflow_tutorials.html"><span class="sidebar-num">04</span>Workflow Tutorials</a>
414
+ </div>
415
+ <div class="sidebar-group">
416
+ <div class="sidebar-group-title">Developing Nodes</div>
417
+ <a class="sidebar-link" href="05_node_development.html"><span class="sidebar-num">05</span>Node Development Guide</a>
418
+ <a class="sidebar-link" href="14_custom_nodes_api.html"><span class="sidebar-num">14</span>Custom Nodes API</a>
419
+ <a class="sidebar-link active" href="08_api_reference.html"><span class="sidebar-num">08</span>API Reference</a>
420
+ </div>
421
+ <div class="sidebar-group">
422
+ <div class="sidebar-group-title">Architecture</div>
423
+ <a class="sidebar-link" href="06_backend_architecture.html"><span class="sidebar-num">06</span>Backend Architecture</a>
424
+ <a class="sidebar-link" href="07_frontend_architecture.html"><span class="sidebar-num">07</span>Frontend Architecture</a>
425
+ </div>
426
+ <div class="sidebar-group">
427
+ <div class="sidebar-group-title">Advanced</div>
428
+ <a class="sidebar-link" href="09_advanced_topics.html"><span class="sidebar-num">09</span>Advanced Topics</a>
429
+ <a class="sidebar-link" href="10_contribution_guide.html"><span class="sidebar-num">10</span>Contribution Guide</a>
430
+ </div>
431
+ <div class="sidebar-group">
432
+ <div class="sidebar-group-title">Reference</div>
433
+ <a class="sidebar-link" href="11_troubleshooting.html"><span class="sidebar-num">11</span>Troubleshooting</a>
434
+ <a class="sidebar-link" href="12_examples_library.html"><span class="sidebar-num">12</span>Examples Library</a>
435
+ <a class="sidebar-link" href="13_general_purpose_automation.html"><span class="sidebar-num">13</span>General Purpose Automation</a>
436
+ </div>
437
+
438
+ </nav>
439
+
440
+ <!-- ── Main content ───────────────────────────────────────────────────── -->
441
+ <main class="content">
442
+ <div class="content-inner">
443
+ <nav class="breadcrumb"><a href="index.html">Docs</a><span class="breadcrumb-sep">›</span><span>API Reference</span></nav>
444
+ <div class="val-badge val-badge-ok" title="Verified against source code">&#10003; Verified</div>
445
+ <p># Full API Reference — Vibrante-Node v2.5.0</p>
446
+ <p>This document is the complete public API reference for all classes, signals,<br />
447
+ and utilities available to node authors, workflow automation scripts, and<br />
448
+ plugin developers.</p>
449
+ <hr />
450
+ <h2 id="table-of-contents">Table of Contents</h2>
451
+ <ol>
452
+ <li><a href="#1-basenode">BaseNode</a></li>
453
+ <li><a href="#2-port">Port</a></li>
454
+ <li><a href="#3-networkexecutor">NetworkExecutor</a></li>
455
+ <li><a href="#4-graphmanager">GraphManager</a></li>
456
+ <li><a href="#5-noderegistry">NodeRegistry</a></li>
457
+ <li><a href="#6-workflowmodel">WorkflowModel</a></li>
458
+ <li><a href="#7-nodeinstancemodel">NodeInstanceModel</a></li>
459
+ <li><a href="#8-connectionmodel">ConnectionModel</a></li>
460
+ <li><a href="#9-portmodel">PortModel</a></li>
461
+ <li><a href="#10-nodedefinitionjson">NodeDefinitionJSON</a></li>
462
+ <li><a href="#11-stickynotemodel">StickyNoteModel</a></li>
463
+ <li><a href="#12-backdropmodel">BackdropModel</a></li>
464
+ <li><a href="#13-scripting-console-api">Scripting Console API</a></li>
465
+ <li><a href="#14-automation-api">Automation API</a></li>
466
+ <li><a href="#15-configmanager">ConfigManager</a></li>
467
+ <li><a href="#16-houbridge">HouBridge</a></li>
468
+ <li><a href="#17-prism-integration">Prism Integration</a></li>
469
+ </ol>
470
+ <hr />
471
+ <h2 id="1-basenode">1. BaseNode</h2>
472
+ <p><strong>Module:</strong> <code>src.nodes.base</code></p>
473
+ <p>Abstract base class for all custom nodes. See<br />
474
+ <a href="14_custom_nodes_api.md">14_custom_nodes_api.md</a> for the full developer guide.</p>
475
+ <h3 id="class-attributes">Class attributes</h3>
476
+ <table>
477
+ <thead>
478
+ <tr>
479
+ <th>Attribute</th>
480
+ <th>Type</th>
481
+ <th>Default</th>
482
+ <th>Description</th>
483
+ </tr>
484
+ </thead>
485
+ <tbody>
486
+ <tr>
487
+ <td><code>name</code></td>
488
+ <td><code>str</code></td>
489
+ <td><code>"BaseNode"</code></td>
490
+ <td>Registry key. Must match <code>node_id</code>.</td>
491
+ </tr>
492
+ <tr>
493
+ <td><code>node_id</code></td>
494
+ <td><code>str</code></td>
495
+ <td>(injected by registry)</td>
496
+ <td>Same as <code>name</code> for JSON nodes.</td>
497
+ </tr>
498
+ <tr>
499
+ <td><code>description</code></td>
500
+ <td><code>str</code></td>
501
+ <td><code>""</code></td>
502
+ <td>Shown in UI tooltips.</td>
503
+ </tr>
504
+ <tr>
505
+ <td><code>category</code></td>
506
+ <td><code>str</code></td>
507
+ <td><code>"General"</code></td>
508
+ <td>Library grouping.</td>
509
+ </tr>
510
+ <tr>
511
+ <td><code>icon_path</code></td>
512
+ <td><code>Optional[str]</code></td>
513
+ <td><code>None</code></td>
514
+ <td>Relative path to SVG/PNG icon.</td>
515
+ </tr>
516
+ <tr>
517
+ <td><code>memory</code></td>
518
+ <td><code>Dict[str, Any]</code></td>
519
+ <td><code>{}</code></td>
520
+ <td>Class-level shared dict, cleared each run.</td>
521
+ </tr>
522
+ </tbody>
523
+ </table>
524
+ <h3 id="instance-attributes">Instance attributes</h3>
525
+ <table>
526
+ <thead>
527
+ <tr>
528
+ <th>Attribute</th>
529
+ <th>Type</th>
530
+ <th>Description</th>
531
+ </tr>
532
+ </thead>
533
+ <tbody>
534
+ <tr>
535
+ <td><code>inputs</code></td>
536
+ <td><code>Dict[str, Port]</code></td>
537
+ <td>Input ports keyed by name.</td>
538
+ </tr>
539
+ <tr>
540
+ <td><code>outputs</code></td>
541
+ <td><code>Dict[str, Port]</code></td>
542
+ <td>Output ports keyed by name.</td>
543
+ </tr>
544
+ <tr>
545
+ <td><code>parameters</code></td>
546
+ <td><code>Dict[str, Any]</code></td>
547
+ <td>Widget values, output cache, internal state.</td>
548
+ </tr>
549
+ <tr>
550
+ <td><code>parameter_types</code></td>
551
+ <td><code>Dict[str, Type]</code></td>
552
+ <td>Optional type hints for <code>add_parameter()</code>.</td>
553
+ </tr>
554
+ </tbody>
555
+ </table>
556
+ <h3 id="constructor">Constructor</h3>
557
+ <pre><code class="language-python">def __init__(self, use_exec: bool = True)
558
+ </code></pre>
559
+ <p>Adds <code>exec_in</code> (input) and <code>exec_out</code> (output) of type <code>exec</code> when<br />
560
+ <code>use_exec=True</code>.</p>
561
+ <h3 id="methods">Methods</h3>
562
+ <table>
563
+ <thead>
564
+ <tr>
565
+ <th>Signature</th>
566
+ <th>Returns</th>
567
+ <th>Description</th>
568
+ </tr>
569
+ </thead>
570
+ <tbody>
571
+ <tr>
572
+ <td><code>add_input(name, type="any", widget_type=None, options=None, default=None)</code></td>
573
+ <td>None</td>
574
+ <td>Add input port + initialize parameter.</td>
575
+ </tr>
576
+ <tr>
577
+ <td><code>add_output(name, type="any", default=None)</code></td>
578
+ <td>None</td>
579
+ <td>Add output port + initialize parameter.</td>
580
+ </tr>
581
+ <tr>
582
+ <td><code>add_exec_input(name="exec_in")</code></td>
583
+ <td>None</td>
584
+ <td>Add exec-type input.</td>
585
+ </tr>
586
+ <tr>
587
+ <td><code>add_exec_output(name="exec_out")</code></td>
588
+ <td>None</td>
589
+ <td>Add exec-type output.</td>
590
+ </tr>
591
+ <tr>
592
+ <td><code>add_parameter(name, param_type, default=None)</code></td>
593
+ <td>None</td>
594
+ <td>Add internal non-port parameter.</td>
595
+ </tr>
596
+ <tr>
597
+ <td><code>rebuild_ports()</code></td>
598
+ <td>None</td>
599
+ <td>Notify canvas to refresh port layout.</td>
600
+ </tr>
601
+ <tr>
602
+ <td><code>is_port_connected(name, is_input)</code></td>
603
+ <td><code>bool</code></td>
604
+ <td>Query wire connection state.</td>
605
+ </tr>
606
+ <tr>
607
+ <td><code>is_stopped()</code></td>
608
+ <td><code>bool</code></td>
609
+ <td>True if pipeline cancellation requested.</td>
610
+ </tr>
611
+ <tr>
612
+ <td><code>async set_output(name, value)</code></td>
613
+ <td>None</td>
614
+ <td>Reactive value push + exec chain trigger.</td>
615
+ </tr>
616
+ <tr>
617
+ <td><code>clear_outputs()</code></td>
618
+ <td>None</td>
619
+ <td>Reset outputs to defaults (called by engine).</td>
620
+ </tr>
621
+ <tr>
622
+ <td><code>set_parameter(name, value)</code></td>
623
+ <td>None</td>
624
+ <td>Set parameter; handles dropdown list updates.</td>
625
+ </tr>
626
+ <tr>
627
+ <td><code>get_parameter(name, default=None)</code></td>
628
+ <td><code>Any</code></td>
629
+ <td>Safe parameter read.</td>
630
+ </tr>
631
+ <tr>
632
+ <td><code>log_info(msg)</code></td>
633
+ <td>None</td>
634
+ <td>Info-level log message.</td>
635
+ </tr>
636
+ <tr>
637
+ <td><code>log_success(msg)</code></td>
638
+ <td>None</td>
639
+ <td>Success-level log message.</td>
640
+ </tr>
641
+ <tr>
642
+ <td><code>log_error(msg)</code></td>
643
+ <td>None</td>
644
+ <td>Error-level log message.</td>
645
+ </tr>
646
+ <tr>
647
+ <td><code>restore_from_parameters(parameters)</code></td>
648
+ <td>None</td>
649
+ <td>Override to recreate dynamic ports.</td>
650
+ </tr>
651
+ <tr>
652
+ <td><code>async on_parameter_changed(name, value)</code></td>
653
+ <td>None</td>
654
+ <td>Override for reactive parameter response.</td>
655
+ </tr>
656
+ <tr>
657
+ <td><code>async on_plug(port, is_input, node, port)</code></td>
658
+ <td>None</td>
659
+ <td>Override for async connection event.</td>
660
+ </tr>
661
+ <tr>
662
+ <td><code>on_plug_sync(port, is_input, node, port)</code></td>
663
+ <td>None</td>
664
+ <td>Override for sync connection event.</td>
665
+ </tr>
666
+ <tr>
667
+ <td><code>async on_unplug(port, is_input)</code></td>
668
+ <td>None</td>
669
+ <td>Override for async disconnect event.</td>
670
+ </tr>
671
+ <tr>
672
+ <td><code>on_unplug_sync(port, is_input)</code></td>
673
+ <td>None</td>
674
+ <td>Override for sync disconnect event.</td>
675
+ </tr>
676
+ <tr>
677
+ <td><code>async execute(inputs)</code></td>
678
+ <td><code>dict</code></td>
679
+ <td><strong>Abstract. Implement in every node.</strong></td>
680
+ </tr>
681
+ </tbody>
682
+ </table>
683
+ <hr />
684
+ <h2 id="2-port">2. Port</h2>
685
+ <p><strong>Module:</strong> <code>src.nodes.base</code></p>
686
+ <p>Describes a single input or output connection point.</p>
687
+ <h3 id="constructor_1">Constructor</h3>
688
+ <pre><code class="language-text">Port(
689
+ name: str,
690
+ data_type: str = &quot;any&quot;,
691
+ widget_type: str = None,
692
+ options: List[str] = None,
693
+ default: Any = None
694
+ )
695
+ </code></pre>
696
+ <h3 id="attributes">Attributes</h3>
697
+ <table>
698
+ <thead>
699
+ <tr>
700
+ <th>Attribute</th>
701
+ <th>Type</th>
702
+ <th>Description</th>
703
+ </tr>
704
+ </thead>
705
+ <tbody>
706
+ <tr>
707
+ <td><code>name</code></td>
708
+ <td><code>str</code></td>
709
+ <td>Port name. Unique within node inputs or outputs.</td>
710
+ </tr>
711
+ <tr>
712
+ <td><code>data_type</code></td>
713
+ <td><code>str</code></td>
714
+ <td><code>string</code>, <code>int</code>, <code>float</code>, <code>bool</code>, <code>list</code>, <code>dict</code>, <code>any</code>, or <code>exec</code>.</td>
715
+ </tr>
716
+ <tr>
717
+ <td><code>widget_type</code></td>
718
+ <td><code>Optional[str]</code></td>
719
+ <td>Inline editor type. <code>None</code> = no editor.</td>
720
+ </tr>
721
+ <tr>
722
+ <td><code>options</code></td>
723
+ <td><code>Optional[List[str]]</code></td>
724
+ <td>Dropdown options. Non-<code>None</code> only for <code>dropdown</code> widgets.</td>
725
+ </tr>
726
+ <tr>
727
+ <td><code>default</code></td>
728
+ <td><code>Any</code></td>
729
+ <td>Default value when unconnected.</td>
730
+ </tr>
731
+ </tbody>
732
+ </table>
733
+ <p>Port objects are data-only and have no methods. Ports are stored in<br />
734
+ <code>node.inputs</code> and <code>node.outputs</code> dicts, keyed by <code>name</code>.</p>
735
+ <hr />
736
+ <h2 id="3-networkexecutor">3. NetworkExecutor</h2>
737
+ <p><strong>Module:</strong> <code>src.core.engine</code></p>
738
+ <p>The async execution engine. Receives a <code>GraphManager</code>, prepares all node<br />
739
+ instances, and runs the graph.</p>
740
+ <h3 id="constructor_2">Constructor</h3>
741
+ <pre><code class="language-text">NetworkExecutor(graph_manager: GraphManager)
742
+ </code></pre>
743
+ <p><code>NetworkExecutor</code> is a <code>QObject</code>. It emits Qt signals for UI feedback.</p>
744
+ <h3 id="signals">Signals</h3>
745
+ <table>
746
+ <thead>
747
+ <tr>
748
+ <th>Signal</th>
749
+ <th>Signature</th>
750
+ <th>Description</th>
751
+ </tr>
752
+ </thead>
753
+ <tbody>
754
+ <tr>
755
+ <td><code>node_started</code></td>
756
+ <td><code>(UUID)</code></td>
757
+ <td>Emitted just before a node's <code>execute()</code> is called.</td>
758
+ </tr>
759
+ <tr>
760
+ <td><code>node_finished</code></td>
761
+ <td><code>(UUID, str)</code></td>
762
+ <td>Emitted after a node completes. <code>str</code> is <code>"success"</code> or <code>"failed"</code>.</td>
763
+ </tr>
764
+ <tr>
765
+ <td><code>node_error</code></td>
766
+ <td><code>(UUID, str)</code></td>
767
+ <td>Emitted when a node raises an unhandled exception. <code>str</code> is the error message.</td>
768
+ </tr>
769
+ <tr>
770
+ <td><code>node_output</code></td>
771
+ <td><code>(UUID, dict)</code></td>
772
+ <td>Emitted after <code>execute()</code> returns or after <code>set_output()</code>. <code>dict</code> maps port names to values.</td>
773
+ </tr>
774
+ <tr>
775
+ <td><code>node_log</code></td>
776
+ <td><code>(UUID, str, str)</code></td>
777
+ <td>Emitted by <code>log_info/error/success</code>. Args: node UUID, message, level string (<code>"info"</code>, <code>"error"</code>, <code>"success"</code>).</td>
778
+ </tr>
779
+ <tr>
780
+ <td><code>execution_finished</code></td>
781
+ <td><code>(bool)</code></td>
782
+ <td>Emitted when the entire pipeline completes. <code>bool</code> is <code>True</code> if not stopped.</td>
783
+ </tr>
784
+ </tbody>
785
+ </table>
786
+ <h3 id="methods_1">Methods</h3>
787
+ <h4 id="run-async">run (async)</h4>
788
+ <pre><code class="language-python">async def run(self, init_only: bool = False) -&gt; None
789
+ </code></pre>
790
+ <p>Executes the full pipeline. The execution sequence:</p>
791
+ <ol>
792
+ <li><code>BaseNode.memory.clear()</code> — shared memory reset.</li>
793
+ <li>Precalculate exec-driven node set and data connection lookup maps.</li>
794
+ <li>For each node: instantiate, <code>restore_from_parameters()</code>, sync parameters,<br />
795
+ <code>clear_outputs()</code>, wire engine hooks.</li>
796
+ <li><code>_bootstrap_prism_if_needed()</code> — initialise PrismCore if a<br />
797
+ <code>prism_core_init</code> node is present.</li>
798
+ <li><code>_run_init_nodes()</code> — run nodes with <code>init_priority &gt; 0</code> sequentially.</li>
799
+ <li>If <code>init_only=True</code>, stop here and emit <code>execution_finished(True)</code>.</li>
800
+ <li>Identify entry nodes (nodes with exec-out but no wired exec-in, plus all<br />
801
+ data-only connected nodes).</li>
802
+ <li>Kick off all entry nodes as async tasks; wait for all to complete.</li>
803
+ <li>Emit <code>execution_finished(not self._is_stopped)</code>.</li>
804
+ </ol>
805
+ <p>When no exec connections exist, falls back to classic topological-sort<br />
806
+ data-flow execution (layers run in parallel via <code>asyncio.gather</code>).</p>
807
+ <p><strong>Parameters:</strong><br />
808
+ - <code>init_only</code> — When <code>True</code>, only the init phase runs (steps 1–6 above).<br />
809
+ Used after loading a saved workflow to trigger auth/login nodes automatically.</p>
810
+ <h4 id="stop">stop</h4>
811
+ <pre><code class="language-python">def stop(self) -&gt; None
812
+ </code></pre>
813
+ <p>Requests cancellation. Sets <code>_is_stopped = True</code> and cancels all active<br />
814
+ asyncio tasks. Calls <code>_finished_event.set()</code> to unblock the wait loop.</p>
815
+ <h3 id="internal-attributes-read-only">Internal attributes (read-only)</h3>
816
+ <table>
817
+ <thead>
818
+ <tr>
819
+ <th>Attribute</th>
820
+ <th>Type</th>
821
+ <th>Description</th>
822
+ </tr>
823
+ </thead>
824
+ <tbody>
825
+ <tr>
826
+ <td><code>node_instances</code></td>
827
+ <td><code>Dict[UUID, BaseNode]</code></td>
828
+ <td>Live node instances keyed by UUID.</td>
829
+ </tr>
830
+ <tr>
831
+ <td><code>node_results</code></td>
832
+ <td><code>Dict[UUID, Dict[str, Any]]</code></td>
833
+ <td>Output result cache keyed by UUID → port name.</td>
834
+ </tr>
835
+ <tr>
836
+ <td><code>_is_stopped</code></td>
837
+ <td><code>bool</code></td>
838
+ <td>Cancellation flag.</td>
839
+ </tr>
840
+ <tr>
841
+ <td><code>_executed_nodes</code></td>
842
+ <td><code>Set[UUID]</code></td>
843
+ <td>UUIDs of nodes that completed successfully this run.</td>
844
+ </tr>
845
+ </tbody>
846
+ </table>
847
+ <hr />
848
+ <h2 id="4-graphmanager">4. GraphManager</h2>
849
+ <p><strong>Module:</strong> <code>src.core.graph</code></p>
850
+ <p>Manages the in-memory graph: nodes and connections. Validates DAG invariants.</p>
851
+ <h3 id="constructor_3">Constructor</h3>
852
+ <pre><code class="language-python">GraphManager()
853
+ </code></pre>
854
+ <h3 id="attributes_1">Attributes</h3>
855
+ <table>
856
+ <thead>
857
+ <tr>
858
+ <th>Attribute</th>
859
+ <th>Type</th>
860
+ <th>Description</th>
861
+ </tr>
862
+ </thead>
863
+ <tbody>
864
+ <tr>
865
+ <td><code>nodes</code></td>
866
+ <td><code>Dict[UUID, NodeInstanceModel]</code></td>
867
+ <td>Node instances keyed by UUID.</td>
868
+ </tr>
869
+ <tr>
870
+ <td><code>connections</code></td>
871
+ <td><code>List[ConnectionModel]</code></td>
872
+ <td>All connection edges.</td>
873
+ </tr>
874
+ </tbody>
875
+ </table>
876
+ <h3 id="methods_2">Methods</h3>
877
+ <h4 id="add_node">add_node</h4>
878
+ <pre><code class="language-python">def add_node(self, node: NodeInstanceModel) -&gt; None
879
+ </code></pre>
880
+ <p>Adds a node to the graph. The node is keyed by <code>node.instance_id</code>.</p>
881
+ <h4 id="remove_node">remove_node</h4>
882
+ <pre><code class="language-python">def remove_node(self, node_id: UUID) -&gt; None
883
+ </code></pre>
884
+ <p>Removes the node and all connections touching it.</p>
885
+ <h4 id="add_connection">add_connection</h4>
886
+ <pre><code class="language-python">def add_connection(self, connection: ConnectionModel) -&gt; bool
887
+ </code></pre>
888
+ <p>Adds a connection edge after checking for cycles. Returns <code>False</code> and discards<br />
889
+ the connection if it would create a cycle (the graph must remain a DAG).</p>
890
+ <pre><code class="language-python">conn = ConnectionModel(
891
+ from_node=node_a.instance_id,
892
+ from_port=&quot;result&quot;,
893
+ to_node=node_b.instance_id,
894
+ to_port=&quot;input&quot;,
895
+ is_exec=False,
896
+ )
897
+ if not gm.add_connection(conn):
898
+ print(&quot;Cycle detected — connection not added.&quot;)
899
+ </code></pre>
900
+ <h4 id="remove_connection">remove_connection</h4>
901
+ <pre><code class="language-python">def remove_connection(self, connection_id: UUID) -&gt; None
902
+ </code></pre>
903
+ <p>Removes the connection with the given UUID.</p>
904
+ <h4 id="is_dag">is_dag</h4>
905
+ <pre><code class="language-python">def is_dag(self) -&gt; bool
906
+ </code></pre>
907
+ <p>Returns <code>True</code> if the current graph contains no cycles. Uses topological sort<br />
908
+ internally; returns <code>False</code> if <code>toposort.CircularDependencyError</code> is raised.</p>
909
+ <h4 id="get_topological_sort">get_topological_sort</h4>
910
+ <pre><code class="language-python">def get_topological_sort(
911
+ self,
912
+ ignore_ports: List[str] = None
913
+ ) -&gt; List[Set[UUID]]
914
+ </code></pre>
915
+ <p>Returns the nodes in topological order as a list of sets. Each set contains<br />
916
+ nodes that can execute in parallel. Sets are ordered from upstream to<br />
917
+ downstream.</p>
918
+ <p><strong>Parameters:</strong><br />
919
+ - <code>ignore_ports</code> — Port names that are excluded from dependency calculation.<br />
920
+ Default is <code>["break_condition"]</code>, which prevents <code>WhileLoopNode</code>'s<br />
921
+ feedback port from creating false cycles.</p>
922
+ <p>Raises <code>toposort.CircularDependencyError</code> if a cycle exists.</p>
923
+ <h4 id="to_model">to_model</h4>
924
+ <pre><code class="language-python">def to_model(self) -&gt; WorkflowModel
925
+ </code></pre>
926
+ <p>Serialises the graph to a <code>WorkflowModel</code> (suitable for JSON export).</p>
927
+ <h4 id="from_model">from_model</h4>
928
+ <pre><code class="language-python">def from_model(self, model: WorkflowModel) -&gt; None
929
+ </code></pre>
930
+ <p>Populates the graph from a <code>WorkflowModel</code>. Replaces any existing nodes and<br />
931
+ connections.</p>
932
+ <hr />
933
+ <h2 id="5-noderegistry">5. NodeRegistry</h2>
934
+ <p><strong>Module:</strong> <code>src.core.registry</code></p>
935
+ <p>Class-level registry that maps <code>node_id</code> strings to <code>NodeDefinitionJSON</code> and<br />
936
+ <code>Type[BaseNode]</code>.</p>
937
+ <h3 id="class-attributes_1">Class attributes</h3>
938
+ <table>
939
+ <thead>
940
+ <tr>
941
+ <th>Attribute</th>
942
+ <th>Type</th>
943
+ <th>Description</th>
944
+ </tr>
945
+ </thead>
946
+ <tbody>
947
+ <tr>
948
+ <td><code>_definitions</code></td>
949
+ <td><code>Dict[str, NodeDefinitionJSON]</code></td>
950
+ <td>All registered definitions.</td>
951
+ </tr>
952
+ <tr>
953
+ <td><code>_classes</code></td>
954
+ <td><code>Dict[str, Type[BaseNode]]</code></td>
955
+ <td>All compiled node classes.</td>
956
+ </tr>
957
+ <tr>
958
+ <td><code>_source_paths</code></td>
959
+ <td><code>Dict[str, str]</code></td>
960
+ <td>node_id → on-disk JSON path (for reload).</td>
961
+ </tr>
962
+ <tr>
963
+ <td><code>last_error</code></td>
964
+ <td><code>Optional[str]</code></td>
965
+ <td>Error message from the most recent failed load.</td>
966
+ </tr>
967
+ </tbody>
968
+ </table>
969
+ <h3 id="methods_3">Methods</h3>
970
+ <h4 id="load_all">load_all</h4>
971
+ <pre><code class="language-python">@classmethod
972
+ def load_all(cls, directory: str) -&gt; None
973
+ </code></pre>
974
+ <p>Loads built-in nodes (via <code>register_builtins()</code>) then recursively scans<br />
975
+ <code>directory</code> for <code>.json</code> files. Creates the directory if it does not exist.</p>
976
+ <h4 id="load_all_with_extras">load_all_with_extras</h4>
977
+ <pre><code class="language-python">@classmethod
978
+ def load_all_with_extras(cls, default_directory: str) -&gt; None
979
+ </code></pre>
980
+ <p>Calls <code>load_all(default_directory)</code> then loads any additional directories<br />
981
+ listed in the <code>v_nodes_dir</code> environment variable (path-separated).</p>
982
+ <p><strong>Always use this method (not <code>load_all</code>) when launching the full application.</strong></p>
983
+ <pre><code class="language-python">NodeRegistry.load_all_with_extras(&quot;nodes&quot;)
984
+ </code></pre>
985
+ <h4 id="_load_directory">_load_directory</h4>
986
+ <pre><code class="language-python">@classmethod
987
+ def _load_directory(cls, directory: str) -&gt; None
988
+ </code></pre>
989
+ <p>Walks a single directory recursively and calls <code>load_node()</code> for every <code>.json</code><br />
990
+ file found. Does not register builtins.</p>
991
+ <h4 id="load_node">load_node</h4>
992
+ <pre><code class="language-python">@classmethod
993
+ def load_node(cls, file_path: str) -&gt; bool
994
+ </code></pre>
995
+ <p>Loads and registers a single <code>.json</code> file. Returns <code>True</code> on success. Sets<br />
996
+ <code>last_error</code> and returns <code>False</code> on failure (JSON parse error, validation<br />
997
+ error, or compile error).</p>
998
+ <h4 id="register_builtins">register_builtins</h4>
999
+ <pre><code class="language-python">@classmethod
1000
+ def register_builtins(cls) -&gt; None
1001
+ </code></pre>
1002
+ <p>Registers all built-in node classes:<br />
1003
+ - <code>FileLoaderNode</code>, <code>DataProcessorNode</code>, <code>ConsoleSinkNode</code><br />
1004
+ - <code>SequenceNode</code>, <code>SetVariableNode</code>, <code>GetVariableNode</code><br />
1005
+ - <code>TwoWaySwitchNode</code>, <code>ForEachNode</code>, <code>ListAppendNode</code>, <code>WhileLoopNode</code><br />
1006
+ - <code>GroupInNode</code>, <code>GroupOutNode</code>, <code>GroupNode</code> (in <code>_classes</code> only — hidden<br />
1007
+ from the search popup but loadable from saved workflows)</p>
1008
+ <h4 id="register_definition">register_definition</h4>
1009
+ <pre><code class="language-python">@classmethod
1010
+ def register_definition(cls, definition: NodeDefinitionJSON) -&gt; bool
1011
+ </code></pre>
1012
+ <p>Normalizes a <code>NodeDefinitionJSON</code> (adds missing exec pins, applies Prism<br />
1013
+ auto-patching), compiles the <code>python_code</code>, and stores the result in<br />
1014
+ <code>_definitions</code> and <code>_classes</code>. Returns <code>True</code> on success.</p>
1015
+ <h4 id="get_definition">get_definition</h4>
1016
+ <pre><code class="language-python">@classmethod
1017
+ def get_definition(cls, node_id: str) -&gt; Optional[NodeDefinitionJSON]
1018
+ </code></pre>
1019
+ <p>Returns the registered <code>NodeDefinitionJSON</code> for <code>node_id</code>, or <code>None</code>.</p>
1020
+ <h4 id="get_class">get_class</h4>
1021
+ <pre><code class="language-python">@classmethod
1022
+ def get_class(cls, node_id: str) -&gt; Optional[Type[BaseNode]]
1023
+ </code></pre>
1024
+ <p>Returns the compiled node class for <code>node_id</code>, or <code>None</code>.</p>
1025
+ <h4 id="list_node_ids">list_node_ids</h4>
1026
+ <pre><code class="language-python">@classmethod
1027
+ def list_node_ids(cls) -&gt; List[str]
1028
+ </code></pre>
1029
+ <p>Returns all registered <code>node_id</code> strings. Includes only nodes in<br />
1030
+ <code>_definitions</code> (i.e., excludes <code>GroupInNode</code>, <code>GroupOutNode</code>, <code>GroupNode</code>).</p>
1031
+ <h4 id="get_source_path">get_source_path</h4>
1032
+ <pre><code class="language-python">@classmethod
1033
+ def get_source_path(cls, node_id: str) -&gt; Optional[str]
1034
+ </code></pre>
1035
+ <p>Returns the absolute path to the <code>.json</code> file the node was loaded from.<br />
1036
+ Returns <code>None</code> for built-in nodes (they have no on-disk JSON).</p>
1037
+ <h4 id="reload_node_definition">reload_node_definition</h4>
1038
+ <pre><code class="language-python">@classmethod
1039
+ def reload_node_definition(cls, node_id: str) -&gt; bool
1040
+ </code></pre>
1041
+ <p>Re-reads the node's JSON from disk and re-registers it. Returns <code>True</code> on<br />
1042
+ success. The updated class is available immediately for new node instances, but<br />
1043
+ existing <code>NodeWidget</code> instances in the canvas are not automatically refreshed.</p>
1044
+ <h4 id="delete_node">delete_node</h4>
1045
+ <pre><code class="language-python">@classmethod
1046
+ def delete_node(cls, node_id: str, directory: str) -&gt; None
1047
+ </code></pre>
1048
+ <p>Removes the node from <code>_definitions</code> and <code>_classes</code>, and deletes the<br />
1049
+ corresponding <code>.json</code> file from <code>directory</code> if it exists.</p>
1050
+ <hr />
1051
+ <h2 id="6-workflowmodel">6. WorkflowModel</h2>
1052
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1053
+ <p>Pydantic model representing a complete workflow (all nodes, connections, notes,<br />
1054
+ backdrops, and metadata).</p>
1055
+ <h3 id="constructor-fields">Constructor / Fields</h3>
1056
+ <pre><code class="language-python">class WorkflowModel(BaseModel):
1057
+ nodes: List[NodeInstanceModel] = []
1058
+ connections: List[ConnectionModel] = []
1059
+ sticky_notes: List[StickyNoteModel] = []
1060
+ backdrops: List[BackdropModel] = []
1061
+ metadata: Dict[str, Any] = {}
1062
+ </code></pre>
1063
+ <h3 id="serialisation">Serialisation</h3>
1064
+ <pre><code class="language-python"># From dict / JSON:
1065
+ workflow = WorkflowModel.model_validate(data_dict)
1066
+
1067
+ # To dict (for JSON serialisation):
1068
+ data_dict = workflow.model_dump()
1069
+
1070
+ # JSON round-trip:
1071
+ import json
1072
+ json_str = json.dumps(workflow.model_dump())
1073
+ workflow = WorkflowModel.model_validate(json.loads(json_str))
1074
+ </code></pre>
1075
+ <p>UUIDs are serialised as strings in JSON. When loading, Pydantic coerces string<br />
1076
+ UUIDs back to <code>UUID</code> objects automatically.</p>
1077
+ <h3 id="metadata-field">metadata field</h3>
1078
+ <p><code>metadata</code> is a free-form dict for workflow-level information. Currently unused<br />
1079
+ by the engine but available for tooling (e.g., storing author, version,<br />
1080
+ description):</p>
1081
+ <pre><code class="language-python">workflow.metadata[&quot;author&quot;] = &quot;Studio Pipeline Team&quot;
1082
+ workflow.metadata[&quot;vibrante_version&quot;] = &quot;2.1.0&quot;
1083
+ </code></pre>
1084
+ <hr />
1085
+ <h2 id="7-nodeinstancemodel">7. NodeInstanceModel</h2>
1086
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1087
+ <p>Pydantic model for a single node placed on the canvas.</p>
1088
+ <h3 id="fields">Fields</h3>
1089
+ <table>
1090
+ <thead>
1091
+ <tr>
1092
+ <th>Field</th>
1093
+ <th>Type</th>
1094
+ <th>Default</th>
1095
+ <th>Description</th>
1096
+ </tr>
1097
+ </thead>
1098
+ <tbody>
1099
+ <tr>
1100
+ <td><code>instance_id</code></td>
1101
+ <td><code>UUID</code></td>
1102
+ <td>auto</td>
1103
+ <td>Unique instance ID. Generated by <code>uuid4()</code>.</td>
1104
+ </tr>
1105
+ <tr>
1106
+ <td><code>node_id</code></td>
1107
+ <td><code>str</code></td>
1108
+ <td>—</td>
1109
+ <td>References <code>NodeDefinitionJSON.node_id</code>.</td>
1110
+ </tr>
1111
+ <tr>
1112
+ <td><code>position</code></td>
1113
+ <td><code>Tuple[float, float]</code></td>
1114
+ <td>—</td>
1115
+ <td>(x, y) canvas position in scene coordinates.</td>
1116
+ </tr>
1117
+ <tr>
1118
+ <td><code>parameters</code></td>
1119
+ <td><code>Dict[str, Any]</code></td>
1120
+ <td><code>{}</code></td>
1121
+ <td>Saved widget values and dynamic port state.</td>
1122
+ </tr>
1123
+ <tr>
1124
+ <td><code>state</code></td>
1125
+ <td><code>str</code></td>
1126
+ <td><code>"idle"</code></td>
1127
+ <td>UI state hint. One of <code>"idle"</code>, <code>"running"</code>, <code>"success"</code>, <code>"failed"</code>.</td>
1128
+ </tr>
1129
+ <tr>
1130
+ <td><code>bypassed</code></td>
1131
+ <td><code>bool</code></td>
1132
+ <td><code>False</code></td>
1133
+ <td>When <code>True</code>, the engine skips <code>execute()</code> and passes exec through.</td>
1134
+ </tr>
1135
+ <tr>
1136
+ <td><code>init_priority</code></td>
1137
+ <td><code>int</code></td>
1138
+ <td><code>0</code></td>
1139
+ <td><code>&gt; 0</code> = run this node before the main graph. Higher values run first.</td>
1140
+ </tr>
1141
+ </tbody>
1142
+ </table>
1143
+ <h3 id="example">Example</h3>
1144
+ <pre><code class="language-python">from uuid import uuid4
1145
+ from src.core.models import NodeInstanceModel
1146
+
1147
+ node = NodeInstanceModel(
1148
+ node_id=&quot;text_upper&quot;,
1149
+ position=(200.0, 150.0),
1150
+ parameters={&quot;text&quot;: &quot;hello world&quot;},
1151
+ )
1152
+ </code></pre>
1153
+ <hr />
1154
+ <h2 id="8-connectionmodel">8. ConnectionModel</h2>
1155
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1156
+ <p>Pydantic model for a single connection edge between two node ports.</p>
1157
+ <h3 id="fields_1">Fields</h3>
1158
+ <table>
1159
+ <thead>
1160
+ <tr>
1161
+ <th>Field</th>
1162
+ <th>Type</th>
1163
+ <th>Default</th>
1164
+ <th>Description</th>
1165
+ </tr>
1166
+ </thead>
1167
+ <tbody>
1168
+ <tr>
1169
+ <td><code>id</code></td>
1170
+ <td><code>UUID</code></td>
1171
+ <td>auto</td>
1172
+ <td>Unique connection ID.</td>
1173
+ </tr>
1174
+ <tr>
1175
+ <td><code>from_node</code></td>
1176
+ <td><code>UUID</code></td>
1177
+ <td>—</td>
1178
+ <td>Source node <code>instance_id</code>.</td>
1179
+ </tr>
1180
+ <tr>
1181
+ <td><code>from_port</code></td>
1182
+ <td><code>str</code></td>
1183
+ <td>—</td>
1184
+ <td>Source port name.</td>
1185
+ </tr>
1186
+ <tr>
1187
+ <td><code>to_node</code></td>
1188
+ <td><code>UUID</code></td>
1189
+ <td>—</td>
1190
+ <td>Target node <code>instance_id</code>.</td>
1191
+ </tr>
1192
+ <tr>
1193
+ <td><code>to_port</code></td>
1194
+ <td><code>str</code></td>
1195
+ <td>—</td>
1196
+ <td>Target port name.</td>
1197
+ </tr>
1198
+ <tr>
1199
+ <td><code>is_exec</code></td>
1200
+ <td><code>bool</code></td>
1201
+ <td><code>False</code></td>
1202
+ <td><code>True</code> for exec-type connections (triggers execution flow).</td>
1203
+ </tr>
1204
+ </tbody>
1205
+ </table>
1206
+ <h3 id="is_exec-detection">is_exec detection</h3>
1207
+ <p>The engine sets <code>is_exec=True</code> when both <code>from_port</code> and <code>to_port</code> are<br />
1208
+ <code>exec</code>-type ports. The UI sets this automatically when drawing wires. When<br />
1209
+ building connections programmatically:</p>
1210
+ <pre><code class="language-python">conn = ConnectionModel(
1211
+ from_node=a_uuid,
1212
+ from_port=&quot;exec_out&quot;,
1213
+ to_node=b_uuid,
1214
+ to_port=&quot;exec_in&quot;,
1215
+ is_exec=True, # must be set manually when building programmatically
1216
+ )
1217
+ </code></pre>
1218
+ <hr />
1219
+ <h2 id="9-portmodel">9. PortModel</h2>
1220
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1221
+ <p>Pydantic model describing a port as stored in a <code>NodeDefinitionJSON</code>. Not the<br />
1222
+ same as <code>Port</code> (the runtime object in <code>src.nodes.base</code>).</p>
1223
+ <h3 id="fields_2">Fields</h3>
1224
+ <table>
1225
+ <thead>
1226
+ <tr>
1227
+ <th>Field</th>
1228
+ <th>Type</th>
1229
+ <th>Default</th>
1230
+ <th>Description</th>
1231
+ </tr>
1232
+ </thead>
1233
+ <tbody>
1234
+ <tr>
1235
+ <td><code>name</code></td>
1236
+ <td><code>str</code></td>
1237
+ <td>—</td>
1238
+ <td>Port name.</td>
1239
+ </tr>
1240
+ <tr>
1241
+ <td><code>type</code></td>
1242
+ <td><code>str</code></td>
1243
+ <td><code>"any"</code></td>
1244
+ <td>Data type string.</td>
1245
+ </tr>
1246
+ <tr>
1247
+ <td><code>widget_type</code></td>
1248
+ <td><code>Optional[str]</code></td>
1249
+ <td><code>None</code></td>
1250
+ <td>Inline editor type.</td>
1251
+ </tr>
1252
+ <tr>
1253
+ <td><code>options</code></td>
1254
+ <td><code>Optional[List[str]]</code></td>
1255
+ <td><code>None</code></td>
1256
+ <td>Dropdown option list.</td>
1257
+ </tr>
1258
+ <tr>
1259
+ <td><code>default</code></td>
1260
+ <td><code>Optional[Any]</code></td>
1261
+ <td><code>None</code></td>
1262
+ <td>Default value.</td>
1263
+ </tr>
1264
+ </tbody>
1265
+ </table>
1266
+ <hr />
1267
+ <h2 id="10-nodedefinitionjson">10. NodeDefinitionJSON</h2>
1268
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1269
+ <p>Pydantic model for the full node definition as stored on disk.</p>
1270
+ <h3 id="fields_3">Fields</h3>
1271
+ <table>
1272
+ <thead>
1273
+ <tr>
1274
+ <th>Field</th>
1275
+ <th>Type</th>
1276
+ <th>Default</th>
1277
+ <th>Description</th>
1278
+ </tr>
1279
+ </thead>
1280
+ <tbody>
1281
+ <tr>
1282
+ <td><code>node_id</code></td>
1283
+ <td><code>str</code></td>
1284
+ <td>—</td>
1285
+ <td>Unique identifier.</td>
1286
+ </tr>
1287
+ <tr>
1288
+ <td><code>name</code></td>
1289
+ <td><code>str</code></td>
1290
+ <td>—</td>
1291
+ <td>Display name.</td>
1292
+ </tr>
1293
+ <tr>
1294
+ <td><code>description</code></td>
1295
+ <td><code>str</code></td>
1296
+ <td><code>""</code></td>
1297
+ <td>Tooltip text.</td>
1298
+ </tr>
1299
+ <tr>
1300
+ <td><code>category</code></td>
1301
+ <td><code>str</code></td>
1302
+ <td><code>"General"</code></td>
1303
+ <td>Library grouping.</td>
1304
+ </tr>
1305
+ <tr>
1306
+ <td><code>icon_path</code></td>
1307
+ <td><code>Optional[str]</code></td>
1308
+ <td><code>None</code></td>
1309
+ <td>Icon file path.</td>
1310
+ </tr>
1311
+ <tr>
1312
+ <td><code>use_exec</code></td>
1313
+ <td><code>bool</code></td>
1314
+ <td><code>True</code></td>
1315
+ <td>Auto-add exec pins.</td>
1316
+ </tr>
1317
+ <tr>
1318
+ <td><code>inputs</code></td>
1319
+ <td><code>List[PortModel]</code></td>
1320
+ <td><code>[]</code></td>
1321
+ <td>Input port definitions.</td>
1322
+ </tr>
1323
+ <tr>
1324
+ <td><code>outputs</code></td>
1325
+ <td><code>List[PortModel]</code></td>
1326
+ <td><code>[]</code></td>
1327
+ <td>Output port definitions.</td>
1328
+ </tr>
1329
+ <tr>
1330
+ <td><code>python_code</code></td>
1331
+ <td><code>str</code></td>
1332
+ <td>—</td>
1333
+ <td>Full Python source string.</td>
1334
+ </tr>
1335
+ </tbody>
1336
+ </table>
1337
+ <hr />
1338
+ <h2 id="11-stickynotemodel">11. StickyNoteModel</h2>
1339
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1340
+ <p>Pydantic model for a sticky note annotation on the canvas.</p>
1341
+ <h3 id="fields_4">Fields</h3>
1342
+ <table>
1343
+ <thead>
1344
+ <tr>
1345
+ <th>Field</th>
1346
+ <th>Type</th>
1347
+ <th>Default</th>
1348
+ <th>Description</th>
1349
+ </tr>
1350
+ </thead>
1351
+ <tbody>
1352
+ <tr>
1353
+ <td><code>id</code></td>
1354
+ <td><code>UUID</code></td>
1355
+ <td>auto</td>
1356
+ <td>Unique ID.</td>
1357
+ </tr>
1358
+ <tr>
1359
+ <td><code>position</code></td>
1360
+ <td><code>Tuple[float, float]</code></td>
1361
+ <td>—</td>
1362
+ <td>(x, y) scene position.</td>
1363
+ </tr>
1364
+ <tr>
1365
+ <td><code>size</code></td>
1366
+ <td><code>Tuple[float, float]</code></td>
1367
+ <td><code>(200.0, 150.0)</code></td>
1368
+ <td>(width, height) in scene units.</td>
1369
+ </tr>
1370
+ <tr>
1371
+ <td><code>text</code></td>
1372
+ <td><code>str</code></td>
1373
+ <td><code>"New Note"</code></td>
1374
+ <td>Note content (plain text).</td>
1375
+ </tr>
1376
+ <tr>
1377
+ <td><code>color</code></td>
1378
+ <td><code>str</code></td>
1379
+ <td><code>"#ffffcc"</code></td>
1380
+ <td>Background color (hex string).</td>
1381
+ </tr>
1382
+ </tbody>
1383
+ </table>
1384
+ <hr />
1385
+ <h2 id="12-backdropmodel">12. BackdropModel</h2>
1386
+ <p><strong>Module:</strong> <code>src.core.models</code></p>
1387
+ <p>Pydantic model for a backdrop (network box) grouping visual area on the canvas.</p>
1388
+ <h3 id="fields_5">Fields</h3>
1389
+ <table>
1390
+ <thead>
1391
+ <tr>
1392
+ <th>Field</th>
1393
+ <th>Type</th>
1394
+ <th>Default</th>
1395
+ <th>Description</th>
1396
+ </tr>
1397
+ </thead>
1398
+ <tbody>
1399
+ <tr>
1400
+ <td><code>id</code></td>
1401
+ <td><code>UUID</code></td>
1402
+ <td>auto</td>
1403
+ <td>Unique ID.</td>
1404
+ </tr>
1405
+ <tr>
1406
+ <td><code>position</code></td>
1407
+ <td><code>Tuple[float, float]</code></td>
1408
+ <td>—</td>
1409
+ <td>(x, y) scene position (top-left corner).</td>
1410
+ </tr>
1411
+ <tr>
1412
+ <td><code>size</code></td>
1413
+ <td><code>Tuple[float, float]</code></td>
1414
+ <td><code>(400.0, 300.0)</code></td>
1415
+ <td>(width, height) in scene units.</td>
1416
+ </tr>
1417
+ <tr>
1418
+ <td><code>title</code></td>
1419
+ <td><code>str</code></td>
1420
+ <td><code>"Network Box"</code></td>
1421
+ <td>Label shown on the backdrop header.</td>
1422
+ </tr>
1423
+ <tr>
1424
+ <td><code>color</code></td>
1425
+ <td><code>str</code></td>
1426
+ <td><code>"#444444"</code></td>
1427
+ <td>Background color (hex string).</td>
1428
+ </tr>
1429
+ </tbody>
1430
+ </table>
1431
+ <hr />
1432
+ <h2 id="13-scripting-console-api">13. Scripting Console API</h2>
1433
+ <p>The Scripting Console (View → Scripting Console, or Window → Scripting Console)<br />
1434
+ provides an interactive Python editor with access to the live application state.</p>
1435
+ <h3 id="available-objects">Available objects</h3>
1436
+ <table>
1437
+ <thead>
1438
+ <tr>
1439
+ <th>Variable</th>
1440
+ <th>Type</th>
1441
+ <th>Description</th>
1442
+ </tr>
1443
+ </thead>
1444
+ <tbody>
1445
+ <tr>
1446
+ <td><code>app</code></td>
1447
+ <td><code>MainWindow</code></td>
1448
+ <td>The main application window.</td>
1449
+ </tr>
1450
+ <tr>
1451
+ <td><code>scene</code></td>
1452
+ <td><code>NodeScene</code></td>
1453
+ <td>The currently active canvas scene.</td>
1454
+ </tr>
1455
+ <tr>
1456
+ <td><code>registry</code></td>
1457
+ <td><code>NodeRegistry</code></td>
1458
+ <td>The class-level node registry.</td>
1459
+ </tr>
1460
+ <tr>
1461
+ <td><code>print</code></td>
1462
+ <td>function</td>
1463
+ <td>Redirected — output appears in the log panel and debug panel.</td>
1464
+ </tr>
1465
+ <tr>
1466
+ <td><code>git</code></td>
1467
+ <td>Git</td>
1468
+ <td>Wrapper around <code>subprocess.run(["git", ...])</code>.</td>
1469
+ </tr>
1470
+ </tbody>
1471
+ </table>
1472
+ <h3 id="scene-methods-available-in-scripts">scene methods available in scripts</h3>
1473
+ <table>
1474
+ <thead>
1475
+ <tr>
1476
+ <th>Method</th>
1477
+ <th>Returns</th>
1478
+ <th>Description</th>
1479
+ </tr>
1480
+ </thead>
1481
+ <tbody>
1482
+ <tr>
1483
+ <td><code>scene.add_node_by_name(node_id, (x, y))</code></td>
1484
+ <td><code>NodeWidget</code></td>
1485
+ <td>Add a node to the canvas.</td>
1486
+ </tr>
1487
+ <tr>
1488
+ <td><code>scene.find_node_by_name(name)</code></td>
1489
+ <td><code>NodeWidget \| None</code></td>
1490
+ <td>Find the first node by display name.</td>
1491
+ </tr>
1492
+ <tr>
1493
+ <td><code>scene.connect_nodes(from_widget, from_port, to_widget, to_port)</code></td>
1494
+ <td><code>Edge \| None</code></td>
1495
+ <td>Draw a wire.</td>
1496
+ </tr>
1497
+ </tbody>
1498
+ </table>
1499
+ <h3 id="app-methods-available-in-scripts">app methods available in scripts</h3>
1500
+ <table>
1501
+ <thead>
1502
+ <tr>
1503
+ <th>Method</th>
1504
+ <th>Description</th>
1505
+ </tr>
1506
+ </thead>
1507
+ <tbody>
1508
+ <tr>
1509
+ <td><code>app.get_current_scene()</code></td>
1510
+ <td>Returns the <code>NodeScene</code> for the active tab.</td>
1511
+ </tr>
1512
+ <tr>
1513
+ <td><code>app.execute_pipeline()</code></td>
1514
+ <td>Starts a pipeline run (same as clicking Run).</td>
1515
+ </tr>
1516
+ <tr>
1517
+ <td><code>app.log_panel.log(msg, level)</code></td>
1518
+ <td>Write a message to the log panel. <code>level</code> is <code>"info"</code>, <code>"success"</code>, or <code>"error"</code>.</td>
1519
+ </tr>
1520
+ </tbody>
1521
+ </table>
1522
+ <h3 id="example-build-a-small-workflow-from-script">Example: build a small workflow from script</h3>
1523
+ <pre><code class="language-python"># Add two nodes
1524
+ n1 = scene.add_node_by_name(&quot;text_upper&quot;, (100, 200))
1525
+ n2 = scene.add_node_by_name(&quot;Console Sink&quot;, (400, 200))
1526
+
1527
+ # Set widget values
1528
+ if n1:
1529
+ n1.set_parameter(&quot;text&quot;, &quot;hello from script&quot;)
1530
+
1531
+ # Wire them together
1532
+ if n1 and n2:
1533
+ edge = scene.connect_nodes(n1, &quot;exec_out&quot;, n2, &quot;exec_in&quot;)
1534
+ data_edge = scene.connect_nodes(n1, &quot;result&quot;, n2, &quot;data&quot;)
1535
+
1536
+ # Run the pipeline
1537
+ app.execute_pipeline()
1538
+ </code></pre>
1539
+ <h3 id="example-inspect-all-registered-nodes">Example: inspect all registered nodes</h3>
1540
+ <pre><code class="language-python">for node_id in sorted(registry.list_node_ids()):
1541
+ defn = registry.get_definition(node_id)
1542
+ print(f&quot;{node_id} ({defn.category}): {defn.description}&quot;)
1543
+ </code></pre>
1544
+ <hr />
1545
+ <h2 id="14-automation-api">14. Automation API</h2>
1546
+ <p>You can run workflows completely headlessly (without Qt or the GUI) from a<br />
1547
+ Python script.</p>
1548
+ <h3 id="minimal-headless-run">Minimal headless run</h3>
1549
+ <pre><code class="language-python">import asyncio
1550
+ import json
1551
+ from src.core.models import WorkflowModel
1552
+ from src.core.graph import GraphManager
1553
+ from src.core.engine import NetworkExecutor
1554
+ from src.core.registry import NodeRegistry
1555
+
1556
+ # 1. Load node definitions
1557
+ NodeRegistry.load_all_with_extras(&quot;nodes&quot;)
1558
+
1559
+ # 2. Load workflow from file
1560
+ with open(&quot;my_workflow.json&quot;) as f:
1561
+ workflow_data = json.load(f)
1562
+ workflow = WorkflowModel.model_validate(workflow_data)
1563
+
1564
+ # 3. Build graph
1565
+ gm = GraphManager()
1566
+ gm.from_model(workflow)
1567
+
1568
+ # 4. Run
1569
+ executor = NetworkExecutor(gm)
1570
+
1571
+ # Optional: connect signals for logging
1572
+ executor.node_log.connect(lambda uid, msg, lvl: print(f&quot;[{lvl}] {msg}&quot;))
1573
+ executor.execution_finished.connect(lambda ok: print(f&quot;Done: {ok}&quot;))
1574
+
1575
+ asyncio.run(executor.run())
1576
+ </code></pre>
1577
+ <p>Note: <code>NetworkExecutor</code> is a <code>QObject</code>. In a fully headless environment you need<br />
1578
+ a <code>QCoreApplication</code> instance for the Qt event loop and signal system:</p>
1579
+ <pre><code class="language-python">from PyQt5.QtCore import QCoreApplication
1580
+ import sys
1581
+ app_instance = QCoreApplication(sys.argv)
1582
+ # ... then run executor as above
1583
+ </code></pre>
1584
+ <h3 id="init-only-run-load-time-initialisation">Init-only run (load-time initialisation)</h3>
1585
+ <pre><code class="language-python"># Runs init_priority &gt; 0 nodes only (auth/login nodes)
1586
+ asyncio.run(executor.run(init_only=True))
1587
+ </code></pre>
1588
+ <h3 id="accessing-results-after-a-run">Accessing results after a run</h3>
1589
+ <pre><code class="language-python"># After asyncio.run(executor.run()):
1590
+ for node_uuid, results in executor.node_results.items():
1591
+ node_model = gm.nodes.get(node_uuid)
1592
+ print(f&quot;{node_model.node_id}: {results}&quot;)
1593
+ </code></pre>
1594
+ <h3 id="building-a-workflow-programmatically">Building a workflow programmatically</h3>
1595
+ <pre><code class="language-python">from uuid import uuid4
1596
+ from src.core.models import NodeInstanceModel, ConnectionModel, WorkflowModel
1597
+ from src.core.graph import GraphManager
1598
+
1599
+ gm = GraphManager()
1600
+
1601
+ # Create node instances
1602
+ n1 = NodeInstanceModel(node_id=&quot;text_upper&quot;, position=(0, 0),
1603
+ parameters={&quot;text&quot;: &quot;hello&quot;})
1604
+ n2 = NodeInstanceModel(node_id=&quot;Console Sink&quot;, position=(300, 0))
1605
+ gm.add_node(n1)
1606
+ gm.add_node(n2)
1607
+
1608
+ # Connect exec chain
1609
+ gm.add_connection(ConnectionModel(
1610
+ from_node=n1.instance_id, from_port=&quot;exec_out&quot;,
1611
+ to_node=n2.instance_id, to_port=&quot;exec_in&quot;,
1612
+ is_exec=True,
1613
+ ))
1614
+
1615
+ # Connect data
1616
+ gm.add_connection(ConnectionModel(
1617
+ from_node=n1.instance_id, from_port=&quot;result&quot;,
1618
+ to_node=n2.instance_id, to_port=&quot;data&quot;,
1619
+ ))
1620
+
1621
+ # Run
1622
+ executor = NetworkExecutor(gm)
1623
+ asyncio.run(executor.run())
1624
+ </code></pre>
1625
+ <hr />
1626
+ <h2 id="15-configmanager">15. ConfigManager</h2>
1627
+ <p><strong>Module:</strong> <code>src.utils.config_manager</code></p>
1628
+ <p>Singleton that persists user settings to <code>~/.vibrante_node_config.json</code>.</p>
1629
+ <h3 id="accessing-the-singleton">Accessing the singleton</h3>
1630
+ <pre><code class="language-python">from src.utils.config_manager import config # pre-instantiated singleton
1631
+
1632
+ # Or:
1633
+ from src.utils.config_manager import ConfigManager
1634
+ config = ConfigManager() # returns the same singleton
1635
+ </code></pre>
1636
+ <h3 id="generic-keyvalue-access">Generic key/value access</h3>
1637
+ <h4 id="get">get</h4>
1638
+ <pre><code class="language-python">def get(self, key: str, default=None) -&gt; Any
1639
+ </code></pre>
1640
+ <p>Returns the value for <code>key</code>, or <code>default</code> if not set.</p>
1641
+ <pre><code class="language-python">theme = config.get(&quot;theme&quot;, &quot;dark&quot;)
1642
+ </code></pre>
1643
+ <h4 id="set">set</h4>
1644
+ <pre><code class="language-python">def set(self, key: str, value: Any) -&gt; None
1645
+ </code></pre>
1646
+ <p>Sets <code>key</code> to <code>value</code> and immediately writes to disk.</p>
1647
+ <pre><code class="language-python">config.set(&quot;theme&quot;, &quot;light&quot;)
1648
+ </code></pre>
1649
+ <h3 id="recent-files">Recent files</h3>
1650
+ <h4 id="get_recent_files">get_recent_files</h4>
1651
+ <pre><code class="language-python">def get_recent_files(self) -&gt; List[str]
1652
+ </code></pre>
1653
+ <p>Returns the list of up to 10 recently opened file paths (newest first).</p>
1654
+ <h4 id="add_recent_file">add_recent_file</h4>
1655
+ <pre><code class="language-python">def add_recent_file(self, path: str) -&gt; None
1656
+ </code></pre>
1657
+ <p>Prepends <code>path</code> to the recent files list, removes any existing entry for the<br />
1658
+ same path, and trims to 10 entries. Saves immediately.</p>
1659
+ <h4 id="clear_recent_files">clear_recent_files</h4>
1660
+ <pre><code class="language-python">def clear_recent_files(self) -&gt; None
1661
+ </code></pre>
1662
+ <p>Empties the recent files list and saves.</p>
1663
+ <h3 id="gemini-api-key">Gemini API key</h3>
1664
+ <h4 id="get_gemini_api_key">get_gemini_api_key</h4>
1665
+ <pre><code class="language-python">def get_gemini_api_key(self) -&gt; str
1666
+ </code></pre>
1667
+ <p>Returns the stored Gemini API key string, or <code>""</code> if not set.</p>
1668
+ <h4 id="set_gemini_api_key">set_gemini_api_key</h4>
1669
+ <pre><code class="language-python">def set_gemini_api_key(self, api_key: str) -&gt; None
1670
+ </code></pre>
1671
+ <p>Stores the Gemini API key and saves to disk.</p>
1672
+ <h3 id="config-file-location">Config file location</h3>
1673
+ <pre><code class="language-python">import os
1674
+ path = os.path.expanduser(&quot;~/.vibrante_node_config.json&quot;)
1675
+ </code></pre>
1676
+ <hr />
1677
+ <h2 id="16-houbridge">16. HouBridge</h2>
1678
+ <p><strong>Module:</strong> <code>src.utils.hou_bridge</code></p>
1679
+ <p>JSON-RPC client for the Houdini command server (<code>vibrante_hou_server.py</code>)<br />
1680
+ running inside a live Houdini session.</p>
1681
+ <h3 id="getting-the-singleton">Getting the singleton</h3>
1682
+ <pre><code class="language-python">from src.utils.hou_bridge import get_bridge
1683
+
1684
+ bridge = get_bridge() # returns the module-level HouBridge singleton
1685
+ </code></pre>
1686
+ <pre><code class="language-python">from src.utils.hou_bridge import is_available
1687
+
1688
+ if is_available():
1689
+ bridge = get_bridge()
1690
+ # ... do Houdini work
1691
+ else:
1692
+ self.log_error(&quot;Houdini is not connected.&quot;)
1693
+ </code></pre>
1694
+ <h3 id="constructor-advanced-use">Constructor (advanced use)</h3>
1695
+ <pre><code class="language-text">HouBridge(host: str = &quot;127.0.0.1&quot;, port: int = None)
1696
+ </code></pre>
1697
+ <p><code>port</code> defaults to the value of the <code>VIBRANTE_HOU_PORT</code> environment variable,<br />
1698
+ or <code>18811</code> if the variable is not set.</p>
1699
+ <h3 id="connection-management">Connection management</h3>
1700
+ <p>The bridge connects lazily on the first method call. It uses:<br />
1701
+ - <code>socket.TCP_NODELAY</code> — disables Nagle's algorithm (~40 ms latency eliminated<br />
1702
+ on Windows).<br />
1703
+ - <code>socket.timeout(30)</code> — 30-second timeout per call. If the server does not<br />
1704
+ respond, a <code>ConnectionError</code> is raised with a descriptive message.<br />
1705
+ - Auto-reconnect on <code>BrokenPipeError</code> / <code>ConnectionResetError</code> — the client<br />
1706
+ retries the <code>sendall</code> once after reconnecting.<br />
1707
+ - <code>threading.Lock</code> — <code>_send()</code> is fully thread-safe.</p>
1708
+ <h3 id="api-methods">API Methods</h3>
1709
+ <p>All methods are synchronous. They block until the Houdini server responds (up<br />
1710
+ to 30 seconds by default).</p>
1711
+ <hr />
1712
+ <h4 id="ping">ping</h4>
1713
+ <pre><code class="language-python">def ping(self) -&gt; dict
1714
+ </code></pre>
1715
+ <p>Checks if the server is alive.</p>
1716
+ <p><strong>Returns:</strong> <code>{"status": "ok", "version": "&lt;Houdini version string&gt;"}</code></p>
1717
+ <hr />
1718
+ <h4 id="create_node">create_node</h4>
1719
+ <pre><code class="language-python">def create_node(self, parent: str, node_type: str, name: str = &quot;&quot;) -&gt; dict
1720
+ </code></pre>
1721
+ <p>Creates a new node inside the given parent path.</p>
1722
+ <p><strong>Parameters:</strong><br />
1723
+ - <code>parent</code> — Parent node path (e.g., <code>"/obj"</code>, <code>"/obj/geo1"</code>).<br />
1724
+ - <code>node_type</code> — Houdini node type string (e.g., <code>"geo"</code>, <code>"box"</code>, <code>"attribwrangle"</code>).<br />
1725
+ - <code>name</code> — Optional name. Houdini auto-names if empty.</p>
1726
+ <p><strong>Returns:</strong> <code>{"path": "/obj/geo1", "name": "geo1", "type": "geo"}</code></p>
1727
+ <pre><code class="language-python">result = bridge.create_node(&quot;/obj&quot;, &quot;geo&quot;, &quot;my_geo&quot;)
1728
+ geo_path = result[&quot;path&quot;] # &quot;/obj/my_geo&quot;
1729
+ </code></pre>
1730
+ <hr />
1731
+ <h4 id="delete_node_1">delete_node</h4>
1732
+ <pre><code class="language-python">def delete_node(self, path: str) -&gt; dict
1733
+ </code></pre>
1734
+ <p>Deletes the node at the given path and all its children.</p>
1735
+ <p><strong>Returns:</strong> <code>{"deleted": "/obj/my_geo"}</code></p>
1736
+ <hr />
1737
+ <h4 id="set_parm">set_parm</h4>
1738
+ <pre><code class="language-python">def set_parm(self, node: str, parm: str, value: Any) -&gt; dict
1739
+ </code></pre>
1740
+ <p>Sets a single parameter value.</p>
1741
+ <p><strong>Returns:</strong> <code>{"set": True}</code></p>
1742
+ <pre><code class="language-python">bridge.set_parm(&quot;/obj/my_geo/alembic1&quot;, &quot;fileName&quot;, &quot;/path/to/file.abc&quot;)
1743
+ bridge.set_parm(&quot;/obj/my_geo/null1&quot;, &quot;tx&quot;, 1.5)
1744
+ </code></pre>
1745
+ <hr />
1746
+ <h4 id="get_parm">get_parm</h4>
1747
+ <pre><code class="language-python">def get_parm(self, node: str, parm: str) -&gt; dict
1748
+ </code></pre>
1749
+ <p>Gets the current value of a single parameter.</p>
1750
+ <p><strong>Returns:</strong> <code>{"value": &lt;current value&gt;}</code></p>
1751
+ <pre><code class="language-python">result = bridge.get_parm(&quot;/obj/my_geo/alembic1&quot;, &quot;fileName&quot;)
1752
+ path = result[&quot;value&quot;]
1753
+ </code></pre>
1754
+ <hr />
1755
+ <h4 id="set_parms">set_parms</h4>
1756
+ <pre><code class="language-python">def set_parms(self, node: str, parms: dict) -&gt; dict
1757
+ </code></pre>
1758
+ <p>Sets multiple parameters in a single round-trip. More efficient than calling<br />
1759
+ <code>set_parm</code> repeatedly.</p>
1760
+ <p><strong>Returns:</strong> <code>{"set": True, "count": N}</code> where N is the number of parameters set.</p>
1761
+ <pre><code class="language-python">bridge.set_parms(&quot;/obj/my_geo/null1&quot;, {
1762
+ &quot;tx&quot;: 1.0,
1763
+ &quot;ty&quot;: 2.0,
1764
+ &quot;tz&quot;: 0.0,
1765
+ })
1766
+ </code></pre>
1767
+ <hr />
1768
+ <h4 id="get_parms">get_parms</h4>
1769
+ <pre><code class="language-python">def get_parms(self, node: str) -&gt; dict
1770
+ </code></pre>
1771
+ <p>Returns a flat dict of all parameter names and their current values for the<br />
1772
+ given node.</p>
1773
+ <p><strong>Returns:</strong> <code>{"parm_name": value, ...}</code> — one entry per parameter.</p>
1774
+ <hr />
1775
+ <h4 id="connect_nodes">connect_nodes</h4>
1776
+ <pre><code class="language-python">def connect_nodes(
1777
+ self,
1778
+ from_node: str,
1779
+ to_node: str,
1780
+ output: int = 0,
1781
+ input_idx: int = 0
1782
+ ) -&gt; dict
1783
+ </code></pre>
1784
+ <p>Wires <code>from_node</code>'s output index <code>output</code> to <code>to_node</code>'s input index<br />
1785
+ <code>input_idx</code>.</p>
1786
+ <p><strong>Returns:</strong> <code>{"connected": True}</code></p>
1787
+ <pre><code class="language-python">bridge.connect_nodes(&quot;/obj/geo1/alembic1&quot;, &quot;/obj/geo1/convert1&quot;,
1788
+ output=0, input_idx=0)
1789
+ </code></pre>
1790
+ <hr />
1791
+ <h4 id="cook_node">cook_node</h4>
1792
+ <pre><code class="language-python">def cook_node(self, path: str, force: bool = False) -&gt; dict
1793
+ </code></pre>
1794
+ <p>Forces the node to cook (evaluate). When <code>force=True</code>, invalidates the cook<br />
1795
+ cache first.</p>
1796
+ <p><strong>Returns:</strong> <code>{"cooked": True}</code></p>
1797
+ <hr />
1798
+ <h4 id="run_code">run_code</h4>
1799
+ <pre><code class="language-python">def run_code(self, code: str) -&gt; dict
1800
+ </code></pre>
1801
+ <p>Executes arbitrary Python code <strong>inside Houdini</strong>. The <code>hou</code> module is<br />
1802
+ available. To return a value, assign to the local variable <code>result</code>.</p>
1803
+ <p><strong>Returns:</strong> <code>{"result": &lt;value of local variable 'result', or None&gt;}</code></p>
1804
+ <pre><code class="language-python">result = bridge.run_code(
1805
+ &quot;n = hou.node('/obj/my_geo'); &quot;
1806
+ &quot;result = n.displayNode().path() if n and n.displayNode() else None&quot;
1807
+ )
1808
+ display_path = result.get(&quot;result&quot;)
1809
+ </code></pre>
1810
+ <hr />
1811
+ <h4 id="scene_info">scene_info</h4>
1812
+ <pre><code class="language-python">def scene_info(self) -&gt; dict
1813
+ </code></pre>
1814
+ <p>Returns information about the current Houdini scene.</p>
1815
+ <p><strong>Returns:</strong></p>
1816
+ <pre><code class="language-python">{
1817
+ &quot;hip_file&quot;: &quot;/path/to/scene.hip&quot;,
1818
+ &quot;hip_name&quot;: &quot;scene.hip&quot;,
1819
+ &quot;houdini_version&quot;: &quot;20.5.410&quot;,
1820
+ &quot;fps&quot;: 24.0,
1821
+ &quot;frame&quot;: 1.0,
1822
+ &quot;frame_range&quot;: [1, 240], # [1, 240] fallback in headless Houdini
1823
+ }
1824
+ </code></pre>
1825
+ <p>Note: <code>frame_range</code> falls back to <code>[1, 240]</code> in headless Houdini (hbatch /<br />
1826
+ hython) because <code>hou.playbar.frameRange()</code> raises <code>AttributeError</code> in that<br />
1827
+ context.</p>
1828
+ <hr />
1829
+ <h4 id="node_info">node_info</h4>
1830
+ <pre><code class="language-python">def node_info(self, path: str) -&gt; dict
1831
+ </code></pre>
1832
+ <p>Returns detailed information about a specific node.</p>
1833
+ <p><strong>Returns:</strong></p>
1834
+ <pre><code class="language-python">{
1835
+ &quot;path&quot;: &quot;/obj/my_geo&quot;,
1836
+ &quot;name&quot;: &quot;my_geo&quot;,
1837
+ &quot;type&quot;: &quot;geo&quot;,
1838
+ &quot;category&quot;: &quot;Object&quot;, # &quot;Object&quot;, &quot;Sop&quot;, &quot;Shop&quot;, etc.
1839
+ &quot;input_connectors&quot;: 0,
1840
+ &quot;output_connectors&quot;: 0,
1841
+ &quot;inputs&quot;: [&quot;/obj/other&quot;], # connected input paths (or None)
1842
+ &quot;outputs&quot;: [&quot;/obj/child&quot;], # connected output paths
1843
+ &quot;children&quot;: [&quot;alembic1&quot;, &quot;convert1&quot;], # child node names
1844
+ }
1845
+ </code></pre>
1846
+ <hr />
1847
+ <h4 id="children">children</h4>
1848
+ <pre><code class="language-python">def children(self, path: str = &quot;/obj&quot;) -&gt; list
1849
+ </code></pre>
1850
+ <p>Lists the child nodes of the given path.</p>
1851
+ <p><strong>Returns:</strong> List of dicts, each with:</p>
1852
+ <pre><code class="language-python">{&quot;name&quot;: &quot;alembic1&quot;, &quot;type&quot;: &quot;alembic&quot;, &quot;path&quot;: &quot;/obj/my_geo/alembic1&quot;}
1853
+ </code></pre>
1854
+ <pre><code class="language-python">for child in bridge.children(&quot;/obj/my_geo&quot;):
1855
+ print(child[&quot;path&quot;])
1856
+ bridge.delete_node(child[&quot;path&quot;])
1857
+ </code></pre>
1858
+ <hr />
1859
+ <h4 id="node_exists">node_exists</h4>
1860
+ <pre><code class="language-python">def node_exists(self, path: str) -&gt; dict
1861
+ </code></pre>
1862
+ <p>Checks whether a node exists at the given path.</p>
1863
+ <p><strong>Returns:</strong> <code>{"exists": True}</code> or <code>{"exists": False}</code></p>
1864
+ <pre><code class="language-python">if bridge.node_exists(&quot;/obj/my_geo&quot;)[&quot;exists&quot;]:
1865
+ bridge.delete_node(&quot;/obj/my_geo&quot;)
1866
+ </code></pre>
1867
+ <hr />
1868
+ <h4 id="set_display_flag">set_display_flag</h4>
1869
+ <pre><code class="language-python">def set_display_flag(self, path: str, on: bool = True) -&gt; dict
1870
+ </code></pre>
1871
+ <p>Sets the display flag on a SOP node. Raises <code>ValueError</code> (surfaced from<br />
1872
+ <code>hou.OperationFailed</code>) if the node type does not support display flags.</p>
1873
+ <p><strong>Returns:</strong> <code>{"set": True}</code></p>
1874
+ <hr />
1875
+ <h4 id="set_render_flag">set_render_flag</h4>
1876
+ <pre><code class="language-python">def set_render_flag(self, path: str, on: bool = True) -&gt; dict
1877
+ </code></pre>
1878
+ <p>Sets the render flag on a SOP node. Raises <code>ValueError</code> on unsupported types.</p>
1879
+ <p><strong>Returns:</strong> <code>{"set": True}</code></p>
1880
+ <hr />
1881
+ <h4 id="layout_children">layout_children</h4>
1882
+ <pre><code class="language-python">def layout_children(self, path: str = &quot;/obj&quot;) -&gt; dict
1883
+ </code></pre>
1884
+ <p>Auto-layouts all child nodes within the given path.</p>
1885
+ <p><strong>Returns:</strong> <code>{"done": True}</code></p>
1886
+ <hr />
1887
+ <h4 id="save_hip">save_hip</h4>
1888
+ <pre><code class="language-python">def save_hip(self, path: str = &quot;&quot;) -&gt; dict
1889
+ </code></pre>
1890
+ <p>Saves the current HIP file. When <code>path</code> is empty, saves to the current file<br />
1891
+ path. When <code>path</code> is provided, saves as a new file at that path.</p>
1892
+ <p><strong>Returns:</strong> <code>{"saved": "/path/to/saved.hip"}</code></p>
1893
+ <hr />
1894
+ <h4 id="set_expression">set_expression</h4>
1895
+ <pre><code class="language-python">def set_expression(
1896
+ self,
1897
+ node: str,
1898
+ parm: str,
1899
+ expression: str,
1900
+ language: str = &quot;hscript&quot;
1901
+ ) -&gt; dict
1902
+ </code></pre>
1903
+ <p>Sets a parameter expression. <code>language</code> must be <code>"hscript"</code> or <code>"python"</code>.</p>
1904
+ <p><strong>Returns:</strong> <code>{"set": True}</code></p>
1905
+ <pre><code class="language-python">bridge.set_expression(&quot;/obj/geo1/null1&quot;, &quot;tx&quot;, &quot;sin($F * 0.1)&quot;, language=&quot;hscript&quot;)
1906
+ bridge.set_expression(&quot;/obj/geo1/null1&quot;, &quot;ty&quot;, &quot;hou.frame() * 0.05&quot;, language=&quot;python&quot;)
1907
+ </code></pre>
1908
+ <hr />
1909
+ <h4 id="set_keyframe">set_keyframe</h4>
1910
+ <pre><code class="language-python">def set_keyframe(
1911
+ self,
1912
+ node: str,
1913
+ parm: str,
1914
+ frame: float,
1915
+ value: float
1916
+ ) -&gt; dict
1917
+ </code></pre>
1918
+ <p>Sets a keyframe on a parameter at the given frame.</p>
1919
+ <p><strong>Returns:</strong> <code>{"set": True}</code></p>
1920
+ <pre><code class="language-python">bridge.set_keyframe(&quot;/obj/geo1/null1&quot;, &quot;tx&quot;, frame=1, value=0.0)
1921
+ bridge.set_keyframe(&quot;/obj/geo1/null1&quot;, &quot;tx&quot;, frame=100, value=10.0)
1922
+ </code></pre>
1923
+ <hr />
1924
+ <h4 id="set_frame">set_frame</h4>
1925
+ <pre><code class="language-python">def set_frame(self, frame: float) -&gt; dict
1926
+ </code></pre>
1927
+ <p>Sets the current frame in Houdini's timeline.</p>
1928
+ <p><strong>Returns:</strong> <code>{"frame": &lt;new frame&gt;}</code></p>
1929
+ <hr />
1930
+ <h4 id="set_playback_range">set_playback_range</h4>
1931
+ <pre><code class="language-python">def set_playback_range(self, start: float, end: float) -&gt; dict
1932
+ </code></pre>
1933
+ <p>Sets the playback frame range.</p>
1934
+ <p><strong>Returns:</strong> <code>{"start": &lt;start&gt;, "end": &lt;end&gt;}</code></p>
1935
+ <hr />
1936
+ <h3 id="error-handling-with-houbridge">Error handling with HouBridge</h3>
1937
+ <p>All <code>HouBridge</code> methods raise:</p>
1938
+ <ul>
1939
+ <li><code>ConnectionError</code> — when the socket cannot connect, times out (30 s), or<br />
1940
+ the server closes the connection unexpectedly.</li>
1941
+ <li><code>RuntimeError</code> — when the Houdini server returns an <code>"error"</code> key in the<br />
1942
+ JSON-RPC response (e.g., the node path does not exist, or a Houdini API<br />
1943
+ call fails).</li>
1944
+ </ul>
1945
+ <p>Standard pattern for Houdini nodes:</p>
1946
+ <pre><code class="language-python">from src.utils.hou_bridge import get_bridge
1947
+
1948
+ async def execute(self, inputs):
1949
+ try:
1950
+ bridge = get_bridge()
1951
+ result = bridge.create_node(&quot;/obj&quot;, &quot;geo&quot;, &quot;my_geo&quot;)
1952
+ geo_path = result[&quot;path&quot;]
1953
+ # ... more bridge calls ...
1954
+ return {&quot;result_path&quot;: geo_path, &quot;exec_out&quot;: True}
1955
+ except Exception as e:
1956
+ self.log_error(f&quot;Houdini operation failed: {e}&quot;)
1957
+ return {&quot;result_path&quot;: &quot;&quot;, &quot;exec_out&quot;: True}
1958
+ </code></pre>
1959
+ <hr />
1960
+ <h2 id="17-prism-integration">17. Prism Integration</h2>
1961
+ <p><strong>Module:</strong> <code>src.utils.prism_core</code></p>
1962
+ <p>Utilities for resolving and bootstrapping a <code>PrismCore</code> instance from Prism<br />
1963
+ Pipeline 2.x.</p>
1964
+ <h3 id="resolve_prism_core">resolve_prism_core</h3>
1965
+ <pre><code class="language-python">def resolve_prism_core(inputs: dict = None) -&gt; Optional[PrismCore]
1966
+ </code></pre>
1967
+ <p>Resolves the active <code>PrismCore</code> instance using the following priority order:</p>
1968
+ <ol>
1969
+ <li><strong><code>inputs["core"]</code></strong> — if <code>inputs</code> is a dict and contains a <code>"core"</code> key<br />
1970
+ with a non-<code>None</code> value, that value is stored and returned.</li>
1971
+ <li><strong><code>BaseNode.memory["_prism_core"]</code></strong> — shared workflow memory (set by the<br />
1972
+ engine's Prism bootstrap step or a previous call to <code>store_prism_core()</code>).</li>
1973
+ <li><strong>Module-level cache</strong> (<code>_CACHED_PRISM_CORE</code>) — survives across runs.</li>
1974
+ <li><strong><code>__main__.pcore</code></strong> — checks if a <code>pcore</code> attribute exists in <code>__main__</code><br />
1975
+ (present when running from inside a live Prism DCC session).</li>
1976
+ </ol>
1977
+ <p>Returns <code>None</code> if PrismCore is not available.</p>
1978
+ <p><strong>Usage inside a <code>prism_*</code> node (after auto-patching by registry):</strong></p>
1979
+ <pre><code class="language-python">async def execute(self, inputs):
1980
+ core = resolve_prism_core(inputs) # auto-inserted by registry
1981
+ if core is None:
1982
+ self.log_error(&quot;PrismCore not initialized.&quot;)
1983
+ return {&quot;exec_out&quot;: True}
1984
+ # use core normally
1985
+ </code></pre>
1986
+ <h3 id="bootstrap_prism_core">bootstrap_prism_core</h3>
1987
+ <pre><code class="language-python">def bootstrap_prism_core(
1988
+ prism_scripts_path: str = &quot;C:/Program Files/Prism2/Scripts&quot;,
1989
+ load_project: bool = True,
1990
+ show_ui: bool = False,
1991
+ ) -&gt; PrismCore
1992
+ </code></pre>
1993
+ <p>Synchronously initialises <code>PrismCore</code> on the calling thread and caches it.<br />
1994
+ <strong>Must be called from the Qt main thread</strong> because Prism's Qt widgets must be<br />
1995
+ parented to the main event loop.</p>
1996
+ <p>Called automatically by <code>NetworkExecutor._bootstrap_prism_if_needed()</code> when a<br />
1997
+ <code>prism_core_init</code> node is present in the graph. You rarely need to call this<br />
1998
+ directly.</p>
1999
+ <p><strong>Parameters:</strong><br />
2000
+ - <code>prism_scripts_path</code> — Path to the Prism 2 Scripts directory.<br />
2001
+ - <code>load_project</code> — If <code>True</code>, calls Prism with the <code>"loadProject"</code> arg.<br />
2002
+ - <code>show_ui</code> — If <code>True</code>, shows the Prism UI; otherwise creates a headless core.</p>
2003
+ <p><strong>Returns:</strong> The initialised <code>PrismCore</code> instance.</p>
2004
+ <h3 id="store_prism_core">store_prism_core</h3>
2005
+ <pre><code class="language-python">def store_prism_core(core: Any) -&gt; Any
2006
+ </code></pre>
2007
+ <p>Writes <code>core</code> to both <code>BaseNode.memory["_prism_core"]</code> and the module-level<br />
2008
+ cache. Returns <code>core</code>. Called automatically by <code>resolve_prism_core()</code> whenever<br />
2009
+ it successfully finds a core instance.</p>
2010
+ <h3 id="prism-node-pattern">Prism node pattern</h3>
2011
+ <pre><code class="language-python">from src.nodes.base import BaseNode
2012
+ from src.utils.prism_core import resolve_prism_core
2013
+
2014
+ class Prism_Get_Assets(BaseNode):
2015
+ name = &quot;prism_get_assets&quot;
2016
+ category = &quot;Prism&quot;
2017
+
2018
+ def __init__(self):
2019
+ super().__init__()
2020
+ # [AUTO-GENERATED-PORTS-START]
2021
+ self.add_input(&quot;entity&quot;, &quot;string&quot;, widget_type=&quot;text&quot;)
2022
+ self.add_output(&quot;assets&quot;, &quot;list&quot;)
2023
+ # [AUTO-GENERATED-PORTS-END]
2024
+
2025
+ async def execute(self, inputs):
2026
+ core = resolve_prism_core(inputs)
2027
+ if core is None:
2028
+ self.log_error(&quot;PrismCore not available. Add a prism_core_init node.&quot;)
2029
+ return {&quot;assets&quot;: [], &quot;exec_out&quot;: True}
2030
+ try:
2031
+ assets = core.getAssets(entity=inputs.get(&quot;entity&quot;, &quot;&quot;))
2032
+ return {&quot;assets&quot;: list(assets), &quot;exec_out&quot;: True}
2033
+ except Exception as e:
2034
+ self.log_error(f&quot;Prism error: {e}&quot;)
2035
+ return {&quot;assets&quot;: [], &quot;exec_out&quot;: True}
2036
+
2037
+ def register_node():
2038
+ return Prism_Get_Assets
2039
+ </code></pre>
2040
+ <h3 id="prism-node-conventions">Prism node conventions</h3>
2041
+ <table>
2042
+ <thead>
2043
+ <tr>
2044
+ <th>Convention</th>
2045
+ <th>Rule</th>
2046
+ </tr>
2047
+ </thead>
2048
+ <tbody>
2049
+ <tr>
2050
+ <td><code>node_id</code></td>
2051
+ <td>Must start with <code>prism_</code> (e.g., <code>prism_get_assets</code>)</td>
2052
+ </tr>
2053
+ <tr>
2054
+ <td><code>category</code></td>
2055
+ <td>Must be <code>"Prism"</code></td>
2056
+ </tr>
2057
+ <tr>
2058
+ <td><code>icon_path</code></td>
2059
+ <td>Use <code>"icons/prism_icon.png"</code></td>
2060
+ </tr>
2061
+ <tr>
2062
+ <td><code>core</code> port</td>
2063
+ <td>Do NOT add — resolved automatically</td>
2064
+ </tr>
2065
+ <tr>
2066
+ <td>Guard</td>
2067
+ <td>Always check <code>if core is None</code> and return a safe default</td>
2068
+ </tr>
2069
+ <tr>
2070
+ <td>List outputs</td>
2071
+ <td>Wrap in <code>list(...)</code> to ensure serializability</td>
2072
+ </tr>
2073
+ <tr>
2074
+ <td><code>prism_core_init</code> node</td>
2075
+ <td>Must be present anywhere in the graph; bootstraps automatically</td>
2076
+ </tr>
2077
+ </tbody>
2078
+ </table>
2079
+ <h3 id="auto-patching-for-prism_-nodes">Auto-patching for prism_ nodes</h3>
2080
+ <p>The <code>NodeRegistry._prepare_definition()</code> method automatically patches any<br />
2081
+ node whose <code>node_id</code> starts with <code>prism_</code> (except <code>prism_core_init</code>):</p>
2082
+ <ol>
2083
+ <li>Prepends <code>from src.utils.prism_core import resolve_prism_core</code> if missing.</li>
2084
+ <li>Replaces <code>core = inputs.get('core')</code> with <code>core = resolve_prism_core(inputs)</code>.</li>
2085
+ </ol>
2086
+ <p>This means existing nodes written with the old <code>core</code> wire pattern continue to<br />
2087
+ work without modification. New nodes can write <code>core = inputs.get("core")</code> and<br />
2088
+ the registry replaces it at compile time.</p>
2089
+ <hr />
2090
+ <p><em>For node development tutorials and examples, see <a href="05_node_development.md">05_node_development.md</a>.</em><br />
2091
+ <em>For the full custom node SDK reference, see <a href="14_custom_nodes_api.md">14_custom_nodes_api.md</a>.</em></p>
2092
+ <nav class="page-nav">
2093
+ <a class="page-nav-link prev" href="07_frontend_architecture.html"><span class="page-nav-label">Previous</span><span class="page-nav-title">Frontend Architecture</span></a>
2094
+ <a class="page-nav-link next" href="09_advanced_topics.html"><span class="page-nav-label">Next</span><span class="page-nav-title">Advanced Topics</span></a>
2095
+ </nav>
2096
+ <section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
2097
+ <p>Documentation &amp;copy; 2024&amp;ndash;2026 Mahmoud Kamal (KamalTD), licensed under
2098
+ <a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
2099
+ <a href="../LICENSE.txt">Full licence notice</a>.</p>
2100
+ <p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
2101
+ and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
2102
+ cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
2103
+ </section>
2104
+ </div>
2105
+ </main>
2106
+
2107
+ <!-- ── TOC ────────────────────────────────────────────────────────────── -->
2108
+ <aside class="toc">
2109
+ <div class="toc-title">On this page</div>
2110
+ <a class="toc-link toc-h2" href="#table-of-contents">Table of Contents</a>
2111
+ <a class="toc-link toc-h2" href="#1-basenode">1. BaseNode</a>
2112
+ <a class="toc-link toc-h3" href="#class-attributes">Class attributes</a>
2113
+ <a class="toc-link toc-h3" href="#instance-attributes">Instance attributes</a>
2114
+ <a class="toc-link toc-h3" href="#constructor">Constructor</a>
2115
+ <a class="toc-link toc-h3" href="#methods">Methods</a>
2116
+ <a class="toc-link toc-h2" href="#2-port">2. Port</a>
2117
+ <a class="toc-link toc-h3" href="#constructor_1">Constructor</a>
2118
+ <a class="toc-link toc-h3" href="#attributes">Attributes</a>
2119
+ <a class="toc-link toc-h2" href="#3-networkexecutor">3. NetworkExecutor</a>
2120
+ <a class="toc-link toc-h3" href="#constructor_2">Constructor</a>
2121
+ <a class="toc-link toc-h3" href="#signals">Signals</a>
2122
+ <a class="toc-link toc-h3" href="#methods_1">Methods</a>
2123
+ <a class="toc-link toc-h4" href="#run-async">run (async)</a>
2124
+ <a class="toc-link toc-h4" href="#stop">stop</a>
2125
+ <a class="toc-link toc-h3" href="#internal-attributes-read-only">Internal attributes (read-only)</a>
2126
+ <a class="toc-link toc-h2" href="#4-graphmanager">4. GraphManager</a>
2127
+ <a class="toc-link toc-h3" href="#constructor_3">Constructor</a>
2128
+ <a class="toc-link toc-h3" href="#attributes_1">Attributes</a>
2129
+ <a class="toc-link toc-h3" href="#methods_2">Methods</a>
2130
+ <a class="toc-link toc-h4" href="#add_node">add_node</a>
2131
+ <a class="toc-link toc-h4" href="#remove_node">remove_node</a>
2132
+ <a class="toc-link toc-h4" href="#add_connection">add_connection</a>
2133
+ <a class="toc-link toc-h4" href="#remove_connection">remove_connection</a>
2134
+ <a class="toc-link toc-h4" href="#is_dag">is_dag</a>
2135
+ <a class="toc-link toc-h4" href="#get_topological_sort">get_topological_sort</a>
2136
+ <a class="toc-link toc-h4" href="#to_model">to_model</a>
2137
+ <a class="toc-link toc-h4" href="#from_model">from_model</a>
2138
+ <a class="toc-link toc-h2" href="#5-noderegistry">5. NodeRegistry</a>
2139
+ <a class="toc-link toc-h3" href="#class-attributes_1">Class attributes</a>
2140
+ <a class="toc-link toc-h3" href="#methods_3">Methods</a>
2141
+ <a class="toc-link toc-h4" href="#load_all">load_all</a>
2142
+ <a class="toc-link toc-h4" href="#load_all_with_extras">load_all_with_extras</a>
2143
+ <a class="toc-link toc-h4" href="#_load_directory">_load_directory</a>
2144
+ <a class="toc-link toc-h4" href="#load_node">load_node</a>
2145
+ <a class="toc-link toc-h4" href="#register_builtins">register_builtins</a>
2146
+ <a class="toc-link toc-h4" href="#register_definition">register_definition</a>
2147
+ <a class="toc-link toc-h4" href="#get_definition">get_definition</a>
2148
+ <a class="toc-link toc-h4" href="#get_class">get_class</a>
2149
+ <a class="toc-link toc-h4" href="#list_node_ids">list_node_ids</a>
2150
+ <a class="toc-link toc-h4" href="#get_source_path">get_source_path</a>
2151
+ <a class="toc-link toc-h4" href="#reload_node_definition">reload_node_definition</a>
2152
+ <a class="toc-link toc-h4" href="#delete_node">delete_node</a>
2153
+ <a class="toc-link toc-h2" href="#6-workflowmodel">6. WorkflowModel</a>
2154
+ <a class="toc-link toc-h3" href="#constructor-fields">Constructor / Fields</a>
2155
+ <a class="toc-link toc-h3" href="#serialisation">Serialisation</a>
2156
+ <a class="toc-link toc-h3" href="#metadata-field">metadata field</a>
2157
+ <a class="toc-link toc-h2" href="#7-nodeinstancemodel">7. NodeInstanceModel</a>
2158
+ <a class="toc-link toc-h3" href="#fields">Fields</a>
2159
+ <a class="toc-link toc-h3" href="#example">Example</a>
2160
+ <a class="toc-link toc-h2" href="#8-connectionmodel">8. ConnectionModel</a>
2161
+ <a class="toc-link toc-h3" href="#fields_1">Fields</a>
2162
+ <a class="toc-link toc-h3" href="#is_exec-detection">is_exec detection</a>
2163
+ <a class="toc-link toc-h2" href="#9-portmodel">9. PortModel</a>
2164
+ <a class="toc-link toc-h3" href="#fields_2">Fields</a>
2165
+ <a class="toc-link toc-h2" href="#10-nodedefinitionjson">10. NodeDefinitionJSON</a>
2166
+ <a class="toc-link toc-h3" href="#fields_3">Fields</a>
2167
+ <a class="toc-link toc-h2" href="#11-stickynotemodel">11. StickyNoteModel</a>
2168
+ <a class="toc-link toc-h3" href="#fields_4">Fields</a>
2169
+ <a class="toc-link toc-h2" href="#12-backdropmodel">12. BackdropModel</a>
2170
+ <a class="toc-link toc-h3" href="#fields_5">Fields</a>
2171
+ <a class="toc-link toc-h2" href="#13-scripting-console-api">13. Scripting Console API</a>
2172
+ <a class="toc-link toc-h3" href="#available-objects">Available objects</a>
2173
+ <a class="toc-link toc-h3" href="#scene-methods-available-in-scripts">scene methods available in scripts</a>
2174
+ <a class="toc-link toc-h3" href="#app-methods-available-in-scripts">app methods available in scripts</a>
2175
+ <a class="toc-link toc-h3" href="#example-build-a-small-workflow-from-script">Example: build a small workflow from script</a>
2176
+ <a class="toc-link toc-h3" href="#example-inspect-all-registered-nodes">Example: inspect all registered nodes</a>
2177
+ <a class="toc-link toc-h2" href="#14-automation-api">14. Automation API</a>
2178
+ <a class="toc-link toc-h3" href="#minimal-headless-run">Minimal headless run</a>
2179
+ <a class="toc-link toc-h3" href="#init-only-run-load-time-initialisation">Init-only run (load-time initialisation)</a>
2180
+ <a class="toc-link toc-h3" href="#accessing-results-after-a-run">Accessing results after a run</a>
2181
+ <a class="toc-link toc-h3" href="#building-a-workflow-programmatically">Building a workflow programmatically</a>
2182
+ <a class="toc-link toc-h2" href="#15-configmanager">15. ConfigManager</a>
2183
+ <a class="toc-link toc-h3" href="#accessing-the-singleton">Accessing the singleton</a>
2184
+ <a class="toc-link toc-h3" href="#generic-keyvalue-access">Generic key/value access</a>
2185
+ <a class="toc-link toc-h4" href="#get">get</a>
2186
+ <a class="toc-link toc-h4" href="#set">set</a>
2187
+ <a class="toc-link toc-h3" href="#recent-files">Recent files</a>
2188
+ <a class="toc-link toc-h4" href="#get_recent_files">get_recent_files</a>
2189
+ <a class="toc-link toc-h4" href="#add_recent_file">add_recent_file</a>
2190
+ <a class="toc-link toc-h4" href="#clear_recent_files">clear_recent_files</a>
2191
+ <a class="toc-link toc-h3" href="#gemini-api-key">Gemini API key</a>
2192
+ <a class="toc-link toc-h4" href="#get_gemini_api_key">get_gemini_api_key</a>
2193
+ <a class="toc-link toc-h4" href="#set_gemini_api_key">set_gemini_api_key</a>
2194
+ <a class="toc-link toc-h3" href="#config-file-location">Config file location</a>
2195
+ <a class="toc-link toc-h2" href="#16-houbridge">16. HouBridge</a>
2196
+ <a class="toc-link toc-h3" href="#getting-the-singleton">Getting the singleton</a>
2197
+ <a class="toc-link toc-h3" href="#constructor-advanced-use">Constructor (advanced use)</a>
2198
+ <a class="toc-link toc-h3" href="#connection-management">Connection management</a>
2199
+ <a class="toc-link toc-h3" href="#api-methods">API Methods</a>
2200
+ <a class="toc-link toc-h4" href="#ping">ping</a>
2201
+ <a class="toc-link toc-h4" href="#create_node">create_node</a>
2202
+ <a class="toc-link toc-h4" href="#delete_node_1">delete_node</a>
2203
+ <a class="toc-link toc-h4" href="#set_parm">set_parm</a>
2204
+ <a class="toc-link toc-h4" href="#get_parm">get_parm</a>
2205
+ <a class="toc-link toc-h4" href="#set_parms">set_parms</a>
2206
+ <a class="toc-link toc-h4" href="#get_parms">get_parms</a>
2207
+ <a class="toc-link toc-h4" href="#connect_nodes">connect_nodes</a>
2208
+ <a class="toc-link toc-h4" href="#cook_node">cook_node</a>
2209
+ <a class="toc-link toc-h4" href="#run_code">run_code</a>
2210
+ <a class="toc-link toc-h4" href="#scene_info">scene_info</a>
2211
+ <a class="toc-link toc-h4" href="#node_info">node_info</a>
2212
+ <a class="toc-link toc-h4" href="#children">children</a>
2213
+ <a class="toc-link toc-h4" href="#node_exists">node_exists</a>
2214
+ <a class="toc-link toc-h4" href="#set_display_flag">set_display_flag</a>
2215
+ <a class="toc-link toc-h4" href="#set_render_flag">set_render_flag</a>
2216
+ <a class="toc-link toc-h4" href="#layout_children">layout_children</a>
2217
+ <a class="toc-link toc-h4" href="#save_hip">save_hip</a>
2218
+ <a class="toc-link toc-h4" href="#set_expression">set_expression</a>
2219
+ <a class="toc-link toc-h4" href="#set_keyframe">set_keyframe</a>
2220
+ <a class="toc-link toc-h4" href="#set_frame">set_frame</a>
2221
+ <a class="toc-link toc-h4" href="#set_playback_range">set_playback_range</a>
2222
+ <a class="toc-link toc-h3" href="#error-handling-with-houbridge">Error handling with HouBridge</a>
2223
+ <a class="toc-link toc-h2" href="#17-prism-integration">17. Prism Integration</a>
2224
+ <a class="toc-link toc-h3" href="#resolve_prism_core">resolve_prism_core</a>
2225
+ <a class="toc-link toc-h3" href="#bootstrap_prism_core">bootstrap_prism_core</a>
2226
+ <a class="toc-link toc-h3" href="#store_prism_core">store_prism_core</a>
2227
+ <a class="toc-link toc-h3" href="#prism-node-pattern">Prism node pattern</a>
2228
+ <a class="toc-link toc-h3" href="#prism-node-conventions">Prism node conventions</a>
2229
+ <a class="toc-link toc-h3" href="#auto-patching-for-prism_-nodes">Auto-patching for prism_ nodes</a>
2230
+ </aside>
2231
+
2232
+ <script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
2233
+ <script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
2234
+ <script>
2235
+ // ── Search ──────────────────────────────────────────────────────────────
2236
+ let _idx = null, _docs = [];
2237
+
2238
+ async function initSearch() {
2239
+ try {
2240
+ const base = document.getElementById('portal-base').dataset.base;
2241
+ const resp = await fetch(base + 'search.json');
2242
+ _docs = await resp.json();
2243
+ _idx = lunr(function() {
2244
+ this.ref('id');
2245
+ this.field('title', { boost: 10 });
2246
+ this.field('body');
2247
+ _docs.forEach((d, i) => {
2248
+ this.add({ id: i, title: d.title, body: d.body });
2249
+ });
2250
+ });
2251
+ } catch(e) { console.warn('Search index not available', e); }
2252
+ }
2253
+
2254
+ function doSearch(q) {
2255
+ const box = document.getElementById('search-results');
2256
+ if (!q || q.length < 2) { box.classList.remove('visible'); return; }
2257
+ if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
2258
+ const results = _idx.search(q + '~1');
2259
+ if (!results.length) {
2260
+ box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>';
2261
+ box.classList.add('visible'); return;
2262
+ }
2263
+ box.innerHTML = results.slice(0, 8).map(r => {
2264
+ const d = _docs[r.ref];
2265
+ const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
2266
+ return `<a class="search-result-item" href="${d.url}">
2267
+ <div class="search-result-title">${d.title}</div>
2268
+ <div class="search-result-excerpt">${excerpt}</div>
2269
+ </a>`;
2270
+ }).join('');
2271
+ box.classList.add('visible');
2272
+ }
2273
+
2274
+ document.addEventListener('DOMContentLoaded', () => {
2275
+ initSearch();
2276
+ const inp = document.getElementById('search-input');
2277
+ if (inp) {
2278
+ inp.addEventListener('input', e => doSearch(e.target.value));
2279
+ inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
2280
+ }
2281
+ document.addEventListener('click', e => {
2282
+ if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible');
2283
+ });
2284
+ // Keyboard shortcut: / to focus search
2285
+ document.addEventListener('keydown', e => {
2286
+ if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) {
2287
+ e.preventDefault(); document.getElementById('search-input')?.focus();
2288
+ }
2289
+ });
2290
+
2291
+ // ── TOC active section ──────────────────────────────────────────────
2292
+ const tocLinks = document.querySelectorAll('.toc-link');
2293
+ const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
2294
+ if (tocLinks.length && headings.length) {
2295
+ const obs = new IntersectionObserver(entries => {
2296
+ entries.forEach(entry => {
2297
+ if (entry.isIntersecting) {
2298
+ tocLinks.forEach(l => l.classList.remove('active'));
2299
+ const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`);
2300
+ if (link) link.classList.add('active');
2301
+ }
2302
+ });
2303
+ }, { rootMargin: '-20% 0px -70% 0px' });
2304
+ headings.forEach(h => obs.observe(h));
2305
+ }
2306
+
2307
+ // ── Copy buttons ────────────────────────────────────────────────────
2308
+ document.querySelectorAll('pre').forEach(pre => {
2309
+ const btn = document.createElement('button');
2310
+ btn.className = 'copy-btn'; btn.textContent = 'Copy';
2311
+ btn.addEventListener('click', () => {
2312
+ const code = pre.querySelector('code');
2313
+ navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => {
2314
+ btn.textContent = 'Copied!'; btn.classList.add('copied');
2315
+ setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000);
2316
+ });
2317
+ });
2318
+ pre.style.position = 'relative';
2319
+ pre.appendChild(btn);
2320
+ });
2321
+
2322
+ // ── Sidebar active ──────────────────────────────────────────────────
2323
+ const cur = window.location.pathname.split('/').pop();
2324
+ document.querySelectorAll('.sidebar-link').forEach(l => {
2325
+ if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active');
2326
+ });
2327
+
2328
+ // ── highlight.js ────────────────────────────────────────────────────
2329
+ if (window.hljs) {
2330
+ hljs.configure({ ignoreUnescapedHTML: true });
2331
+ hljs.highlightAll();
2332
+ }
2333
+ });
2334
+ </script>
2335
+ </body>
2336
+ </html>