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,605 @@
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 — Blender Headless Integration">
7
+ <title>Blender Headless — 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
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
11
+ :root {
12
+ --bg: #1e1e2e;
13
+ --surface: #181825;
14
+ --surface2: #11111b;
15
+ --border: #313244;
16
+ --text: #cdd6f4;
17
+ --subtext: #a6adc8;
18
+ --muted: #6c7086;
19
+ --lavender: #b4befe;
20
+ --blue: #89b4fa;
21
+ --teal: #94e2d5;
22
+ --green: #a6e3a1;
23
+ --yellow: #f9e2af;
24
+ --peach: #fab387;
25
+ --red: #f38ba8;
26
+ --pink: #f5c2e7;
27
+ --mauve: #cba6f7;
28
+ --sidebar-w: 260px;
29
+ --toc-w: 220px;
30
+ --header-h: 56px;
31
+ --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
32
+ --mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
33
+ }
34
+ html { scroll-behavior: smooth; }
35
+ body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100vh; display: grid; grid-template-rows: var(--header-h) 1fr; grid-template-columns: var(--sidebar-w) 1fr var(--toc-w); grid-template-areas: "header header header" "sidebar content toc"; }
36
+ .header { grid-area: header; position: sticky; top: 0; z-index: 200; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 24px; }
37
+ .header-logo { font-weight: 700; font-size: 1.05em; color: var(--mauve); text-decoration: none; white-space: nowrap; }
38
+ .header-version { font-size: .78em; background: var(--border); color: var(--subtext); padding: 2px 8px; border-radius: 12px; }
39
+ .header-spacer { flex: 1; }
40
+ .search-wrap { position: relative; }
41
+ #search-input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font); font-size: .9em; padding: 6px 14px 6px 36px; width: 260px; outline: none; transition: border-color .15s; }
42
+ #search-input:focus { border-color: var(--mauve); }
43
+ .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .9em; }
44
+ #search-results { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: 420px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.5); display: none; z-index: 300; }
45
+ #search-results.visible { display: block; }
46
+ .search-result-item { padding: 10px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; }
47
+ .search-result-item:last-child { border-bottom: none; }
48
+ .search-result-item:hover { background: var(--bg); }
49
+ .search-result-title { color: var(--blue); font-weight: 600; font-size: .9em; }
50
+ .search-result-excerpt { color: var(--subtext); font-size: .82em; margin-top: 2px; line-height: 1.4; }
51
+ .search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: .9em; }
52
+ .sidebar { grid-area: sidebar; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
53
+ .sidebar::-webkit-scrollbar { width: 4px; }
54
+ .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
55
+ .sidebar-group { margin-bottom: 4px; }
56
+ .sidebar-group-title { font-size: .7em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 20px 4px; font-weight: 600; }
57
+ .sidebar-link { display: flex; align-items: center; gap: 8px; padding: 6px 20px; color: var(--subtext); text-decoration: none; font-size: .88em; border-left: 3px solid transparent; transition: all .12s; line-height: 1.3; }
58
+ .sidebar-link:hover { color: var(--text); background: var(--bg); }
59
+ .sidebar-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.06); font-weight: 600; }
60
+ .sidebar-num { font-size: .7em; color: var(--muted); background: var(--border); border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
61
+ .content { grid-area: content; min-width: 0; padding: 40px 48px 80px; max-width: 860px; }
62
+ .content-inner { max-width: 820px; }
63
+ .breadcrumb { font-size: .8em; color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 6px; }
64
+ .breadcrumb a { color: var(--blue); text-decoration: none; }
65
+ .breadcrumb a:hover { text-decoration: underline; }
66
+ .breadcrumb-sep { color: var(--border); }
67
+ h1 { font-size: 2em; color: var(--mauve); border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 20px 0 20px; }
68
+ h2 { font-size: 1.45em; color: var(--blue); margin: 40px 0 14px; padding-top: 8px; }
69
+ h3 { font-size: 1.15em; color: var(--teal); margin: 28px 0 10px; }
70
+ h4 { font-size: 1em; color: var(--pink); margin: 20px 0 8px; }
71
+ h5 { font-size: .95em; color: var(--yellow); margin: 16px 0 6px; }
72
+ p { margin-bottom: 16px; color: var(--text); }
73
+ a { color: var(--blue); }
74
+ a:hover { text-decoration: underline; }
75
+ strong { color: var(--peach); }
76
+ em { color: var(--yellow); font-style: italic; }
77
+ ul, ol { margin: 10px 0 16px 24px; }
78
+ li { margin-bottom: 6px; }
79
+ li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }
80
+ blockquote { border-left: 4px solid var(--mauve); padding: 10px 20px; margin: 16px 0; background: rgba(180,190,254,.05); border-radius: 0 8px 8px 0; color: var(--subtext); }
81
+ blockquote strong { color: var(--mauve); }
82
+ hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
83
+ code { background: var(--surface2); color: var(--red); padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: .87em; }
84
+ pre { background: var(--surface2) !important; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; overflow-x: auto; margin: 16px 0 22px; position: relative; }
85
+ pre code { background: none !important; color: inherit !important; padding: 0; font-size: .9em; border-radius: 0; }
86
+ .copy-btn { position: absolute; top: 10px; right: 12px; background: var(--border); color: var(--subtext); border: none; border-radius: 5px; padding: 3px 10px; font-size: .75em; cursor: pointer; transition: all .12s; font-family: var(--font); }
87
+ .copy-btn:hover { background: var(--mauve); color: var(--surface2); }
88
+ .copy-btn.copied { background: var(--green); color: var(--surface2); }
89
+ table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: .9em; }
90
+ th { background: var(--border); color: var(--mauve); padding: 10px 14px; text-align: left; font-weight: 600; }
91
+ td { border-top: 1px solid var(--border); padding: 9px 14px; color: var(--text); }
92
+ tr:nth-child(even) td { background: rgba(17,17,27,.4); }
93
+ td code { font-size: .85em; }
94
+ .callout { border-radius: 8px; padding: 14px 18px; margin: 16px 0 22px; border-left: 4px solid; }
95
+ .callout-note { background: rgba(137,180,250,.08); border-color: var(--blue); }
96
+ .callout-tip { background: rgba(166,227,161,.08); border-color: var(--green); }
97
+ .callout-warning { background: rgba(249,226,175,.08); border-color: var(--yellow); }
98
+ .callout-danger { background: rgba(243,139,168,.08); border-color: var(--red); }
99
+ .callout-title { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
100
+ .callout-note .callout-title { color: var(--blue); }
101
+ .callout-tip .callout-title { color: var(--green); }
102
+ .callout-warning .callout-title { color: var(--yellow); }
103
+ .callout-danger .callout-title { color: var(--red); }
104
+ .val-badge { display: inline-block; font-size: .78em; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; border: 1px solid transparent; letter-spacing: .02em; }
105
+ .val-badge-ok { background: rgba(166,227,161,.12); border-color: var(--green); color: var(--green); }
106
+ .val-badge-warn { background: rgba(249,226,175,.12); border-color: var(--yellow); color: var(--yellow); }
107
+ .page-nav { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); gap: 16px; }
108
+ .page-nav-link { display: flex; flex-direction: column; text-decoration: none; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 200px; transition: border-color .15s; max-width: 48%; }
109
+ .page-nav-link:hover { border-color: var(--mauve); }
110
+ .page-nav-label { font-size: .75em; color: var(--muted); margin-bottom: 4px; }
111
+ .page-nav-title { color: var(--blue); font-weight: 600; font-size: .95em; }
112
+ .page-nav-link.prev .page-nav-label::before { content: '← '; }
113
+ .page-nav-link.next { margin-left: auto; text-align: right; }
114
+ .page-nav-link.next .page-nav-label::after { content: ' →'; }
115
+ .toc { grid-area: toc; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 28px 16px 28px 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
116
+ .toc-title { font-size: .72em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 12px; padding-left: 8px; }
117
+ .toc-link { display: block; padding: 4px 8px; color: var(--subtext); text-decoration: none; font-size: .82em; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; transition: all .12s; line-height: 1.35; margin-bottom: 1px; }
118
+ .toc-link:hover { color: var(--text); border-left-color: var(--border); }
119
+ .toc-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.05); }
120
+ .toc-link.toc-h3 { padding-left: 20px; font-size: .79em; }
121
+ @media (max-width: 1100px) { body { grid-template-columns: var(--sidebar-w) 1fr 0; } .toc { display: none; } }
122
+ @media (max-width: 760px) { body { grid-template-columns: 0 1fr 0; } .sidebar { display: none; } .content { padding: 24px 20px 60px; } #search-input { width: 180px; } }
123
+ </style>
124
+ <span id="portal-base" data-base="" style="display:none"></span>
125
+ </head>
126
+ <body>
127
+
128
+ <!-- ── Header ─────────────────────────────────────────────────────────── -->
129
+ <header class="header">
130
+ <a class="header-logo" href="index.html">Vibrante-Node</a>
131
+ <span class="header-version">v2.5.1</span>
132
+ <div class="header-spacer"></div>
133
+ <div class="search-wrap">
134
+ <span class="search-icon">&#128269;</span>
135
+ <input id="search-input" type="text" placeholder="Search docs… (/)" autocomplete="off" spellcheck="false">
136
+ <div id="search-results"></div>
137
+ </div>
138
+ </header>
139
+
140
+ <!-- ── Sidebar ────────────────────────────────────────────────────────── -->
141
+ <nav class="sidebar">
142
+ <div class="sidebar-group">
143
+ <div class="sidebar-group-title">Overview</div>
144
+ <a class="sidebar-link" href="01_introduction.html"><span class="sidebar-num">01</span>Introduction</a>
145
+ <a class="sidebar-link" href="02_getting_started.html"><span class="sidebar-num">02</span>Getting Started</a>
146
+ </div>
147
+ <div class="sidebar-group">
148
+ <div class="sidebar-group-title">Using the App</div>
149
+ <a class="sidebar-link" href="03_user_guide.html"><span class="sidebar-num">03</span>User Guide</a>
150
+ <a class="sidebar-link" href="04_workflow_tutorials.html"><span class="sidebar-num">04</span>Workflow Tutorials</a>
151
+ </div>
152
+ <div class="sidebar-group">
153
+ <div class="sidebar-group-title">Developing Nodes</div>
154
+ <a class="sidebar-link" href="05_node_development.html"><span class="sidebar-num">05</span>Node Development Guide</a>
155
+ <a class="sidebar-link" href="14_custom_nodes_api.html"><span class="sidebar-num">14</span>Custom Nodes API</a>
156
+ <a class="sidebar-link" href="08_api_reference.html"><span class="sidebar-num">08</span>API Reference</a>
157
+ </div>
158
+ <div class="sidebar-group">
159
+ <div class="sidebar-group-title">Architecture</div>
160
+ <a class="sidebar-link" href="06_backend_architecture.html"><span class="sidebar-num">06</span>Backend Architecture</a>
161
+ <a class="sidebar-link" href="07_frontend_architecture.html"><span class="sidebar-num">07</span>Frontend Architecture</a>
162
+ </div>
163
+ <div class="sidebar-group">
164
+ <div class="sidebar-group-title">Advanced</div>
165
+ <a class="sidebar-link" href="09_advanced_topics.html"><span class="sidebar-num">09</span>Advanced Topics</a>
166
+ <a class="sidebar-link" href="10_contribution_guide.html"><span class="sidebar-num">10</span>Contribution Guide</a>
167
+ </div>
168
+ <div class="sidebar-group">
169
+ <div class="sidebar-group-title">Integrations</div>
170
+ <a class="sidebar-link" href="integrations_houdini.html">Houdini Bridge</a>
171
+ <a class="sidebar-link" href="integrations_maya.html">Maya Headless</a>
172
+ <a class="sidebar-link active" href="integrations_blender.html">Blender Headless</a>
173
+ <a class="sidebar-link" href="integrations_prism.html">Prism Pipeline</a>
174
+ <a class="sidebar-link" href="integrations_deadline.html">Deadline Render Farm</a>
175
+ </div>
176
+ <div class="sidebar-group">
177
+ <div class="sidebar-group-title">Reference</div>
178
+ <a class="sidebar-link" href="11_troubleshooting.html"><span class="sidebar-num">11</span>Troubleshooting</a>
179
+ <a class="sidebar-link" href="12_examples_library.html"><span class="sidebar-num">12</span>Examples Library</a>
180
+ <a class="sidebar-link" href="13_general_purpose_automation.html"><span class="sidebar-num">13</span>General Purpose Automation</a>
181
+ </div>
182
+ </nav>
183
+
184
+ <!-- ── Main content ───────────────────────────────────────────────────── -->
185
+ <main class="content">
186
+ <div class="content-inner">
187
+ <nav class="breadcrumb">
188
+ <a href="index.html">Docs</a>
189
+ <span class="breadcrumb-sep">›</span>
190
+ <span>Integrations</span>
191
+ <span class="breadcrumb-sep">›</span>
192
+ <span>Blender Headless</span>
193
+ </nav>
194
+
195
+ <div class="val-badge val-badge-ok">&#10003; Verified — v2.5.0</div>
196
+
197
+ <h1 id="blender-headless-integration">Blender Headless Integration</h1>
198
+
199
+ <p>The Blender integration lets you drive Blender entirely from a Vibrante-Node graph — opening <code>.blend</code> files, configuring render settings, rendering animation sequences, exporting geometry in any supported format, running custom Blender Python scripts, and more — all without ever opening the Blender UI. Vibrante-Node launches Blender as a headless subprocess (<code>blender --background</code>) and passes it a compiled action list that a bundled runner script processes sequentially inside the Blender Python context.</p>
200
+
201
+ <p>The integration ships <strong>21 Blender nodes</strong> in the <strong>Blender</strong> category and follows the same action-list architecture as the Maya Headless integration: individual <code>blender_action_*</code> nodes build up a list of operation dictionaries, and the <code>blender_headless</code> executor node launches Blender and processes them all in one subprocess invocation.</p>
202
+
203
+ <hr>
204
+
205
+ <h2 id="how-it-works">How It Works</h2>
206
+
207
+ <h3 id="action-list-pattern">The Action-List Pattern</h3>
208
+
209
+ <p>No Blender node performs work directly inside Vibrante-Node. Instead, each <code>blender_action_*</code> node appends a plain Python dictionary — an <em>action descriptor</em> — to a list that flows through the graph. When the <code>blender_headless</code> executor node fires, it serialises the entire list to JSON and passes it to a Blender runner script via <code>blender --background --python runner.py -- &lt;json_path&gt;</code>. The runner script reads the JSON, iterates through the actions, and dispatches each one to its handler using Blender's Python API (<code>bpy</code>).</p>
210
+
211
+ <p>This design keeps Vibrante-Node itself free of any Blender dependency. Blender does not need to be importable as a Python module — it only needs to be a callable executable on the system <code>PATH</code> or at a configured path.</p>
212
+
213
+ <h3 id="architecture-diagram">Architecture Diagram</h3>
214
+
215
+ <pre><code>Vibrante-Node Graph Blender Subprocess
216
+ ─────────────────── ──────────────────
217
+ blender_action_open ─┐ blender --background
218
+ blender_action_set_render ├─ list─► runner.py
219
+ blender_action_render ┘ processes actions
220
+ blender_action_export_gltf sequentially
221
+ │
222
+ blender_headless ──────────────► subprocess.Popen(["blender", "--background", ...])</code></pre>
223
+
224
+ <h3 id="exec-vs-data-flow">Exec Flow vs. Data Flow</h3>
225
+
226
+ <p>Two parallel wire chains connect the nodes in a typical Blender graph:</p>
227
+ <ul>
228
+ <li><strong>Data chain</strong> — <code>actions_out</code> → <code>actions_in</code> passes the growing action list from node to node.</li>
229
+ <li><strong>Exec chain</strong> — <code>exec_out</code> → <code>exec_in</code> controls the order of execution inside Vibrante-Node's engine.</li>
230
+ </ul>
231
+ <p>Both chains must be wired. The exec chain determines when each node runs; the data chain determines what goes into the final action list.</p>
232
+
233
+ <hr>
234
+
235
+ <h2 id="node-skeleton">Node Skeleton</h2>
236
+
237
+ <p>All Blender action nodes share the same structure. Here is the <code>blender_action_open</code> node as a reference implementation:</p>
238
+
239
+ <pre><code class="language-python">class Blender_Action_Open(BaseNode):
240
+ name = "blender_action_open"
241
+
242
+ def __init__(self):
243
+ super().__init__()
244
+ # [AUTO-GENERATED-PORTS-START]
245
+ self.add_input("actions_in", "list")
246
+ self.add_input("blend_file", "string", widget_type="text")
247
+ self.add_output("actions_out", "list")
248
+ # [AUTO-GENERATED-PORTS-END]
249
+
250
+ async def execute(self, inputs):
251
+ actions = list(inputs.get("actions_in") or [])
252
+ actions.append({
253
+ "type": "open",
254
+ "blend_file": inputs.get("blend_file", "")
255
+ })
256
+ return {"actions_out": actions, "exec_out": True}
257
+
258
+ def register_node():
259
+ return Blender_Action_Open</code></pre>
260
+
261
+ <p>Key conventions that every action node must follow:</p>
262
+ <ul>
263
+ <li><code>actions_in</code> and <code>actions_out</code> are mandatory — they form the data chain.</li>
264
+ <li>Always initialise the list with <code>list(inputs.get("actions_in") or [])</code>. This avoids mutating the upstream list in place and handles the case where <code>actions_in</code> is <code>None</code> (the first node in a chain).</li>
265
+ <li>The <code>"type"</code> key in the action dictionary must exactly match a handler registered in the Blender runner script.</li>
266
+ <li><code>node_id</code> follows the <code>blender_action_*</code> naming convention.</li>
267
+ <li><code>icon_path</code> is <code>"icons/blender.svg"</code>.</li>
268
+ </ul>
269
+
270
+ <hr>
271
+
272
+ <h2 id="node-library">Node Library</h2>
273
+
274
+ <p>The integration ships 21 nodes across several functional groups.</p>
275
+
276
+ <h3 id="scene-management-nodes">Scene Management</h3>
277
+
278
+ <table>
279
+ <thead>
280
+ <tr><th>Node ID</th><th>Description</th></tr>
281
+ </thead>
282
+ <tbody>
283
+ <tr><td><code>blender_action_open</code></td><td>Open an existing <code>.blend</code> file.</td></tr>
284
+ <tr><td><code>blender_action_clean_scene</code></td><td>Remove all objects from the current scene (useful before importing assets).</td></tr>
285
+ <tr><td><code>blender_action_save</code></td><td>Save the current scene to a <code>.blend</code> file at a specified path.</td></tr>
286
+ <tr><td><code>blender_action_run_script</code></td><td>Execute an arbitrary Python script inside the Blender context. The script has full access to <code>bpy</code>.</td></tr>
287
+ </tbody>
288
+ </table>
289
+
290
+ <h3 id="render-nodes">Rendering</h3>
291
+
292
+ <table>
293
+ <thead>
294
+ <tr><th>Node ID</th><th>Description</th></tr>
295
+ </thead>
296
+ <tbody>
297
+ <tr><td><code>blender_action_render</code></td><td>Render a frame range to an output directory.</td></tr>
298
+ <tr><td><code>blender_action_set_render_engine</code></td><td>Set the render engine (e.g. <code>CYCLES</code>, <code>BLENDER_EEVEE</code>).</td></tr>
299
+ <tr><td><code>blender_action_set_output_dir</code></td><td>Set the render output directory path.</td></tr>
300
+ <tr><td><code>blender_action_set_frame_range</code></td><td>Set the scene start and end frame.</td></tr>
301
+ <tr><td><code>blender_action_set_resolution</code></td><td>Set the render resolution (width, height, percentage).</td></tr>
302
+ <tr><td><code>blender_action_bake</code></td><td>Bake a specified texture type (AO, normals, diffuse, etc.) for the selected objects.</td></tr>
303
+ </tbody>
304
+ </table>
305
+
306
+ <h3 id="import-export-nodes">Import / Export</h3>
307
+
308
+ <table>
309
+ <thead>
310
+ <tr><th>Node ID</th><th>Description</th></tr>
311
+ </thead>
312
+ <tbody>
313
+ <tr><td><code>blender_action_export_fbx</code></td><td>Export scene or selection to FBX.</td></tr>
314
+ <tr><td><code>blender_action_export_obj</code></td><td>Export scene or selection to OBJ + MTL.</td></tr>
315
+ <tr><td><code>blender_action_export_gltf</code></td><td>Export scene or selection to glTF 2.0 (binary <code>.glb</code> or text <code>.gltf</code>).</td></tr>
316
+ <tr><td><code>blender_action_export_usd</code></td><td>Export scene to USD (Universal Scene Description).</td></tr>
317
+ <tr><td><code>blender_action_import_fbx</code></td><td>Import an FBX file into the current scene.</td></tr>
318
+ <tr><td><code>blender_action_import_obj</code></td><td>Import an OBJ file into the current scene.</td></tr>
319
+ </tbody>
320
+ </table>
321
+
322
+ <h3 id="geometry-material-nodes">Geometry &amp; Materials</h3>
323
+
324
+ <table>
325
+ <thead>
326
+ <tr><th>Node ID</th><th>Description</th></tr>
327
+ </thead>
328
+ <tbody>
329
+ <tr><td><code>blender_action_apply_modifier</code></td><td>Apply a named modifier (e.g. Subdivision, Decimate) to a named object.</td></tr>
330
+ <tr><td><code>blender_action_join_objects</code></td><td>Join a list of named objects into a single mesh.</td></tr>
331
+ <tr><td><code>blender_action_separate_objects</code></td><td>Separate a mesh by loose parts or material.</td></tr>
332
+ <tr><td><code>blender_action_set_material</code></td><td>Assign a named material to a named object (material must exist in the blend file or be created by a prior script action).</td></tr>
333
+ </tbody>
334
+ </table>
335
+
336
+ <h3 id="executor-node">Executor Node</h3>
337
+
338
+ <table>
339
+ <thead>
340
+ <tr><th>Node ID</th><th>Description</th></tr>
341
+ </thead>
342
+ <tbody>
343
+ <tr><td><code>blender_headless</code></td><td>Launches <code>blender --background</code>, passes the accumulated action list to the runner script, and waits for completion. Outputs <code>success</code> (bool) and <code>log_output</code> (string).</td></tr>
344
+ </tbody>
345
+ </table>
346
+
347
+ <hr>
348
+
349
+ <h2 id="workflow-example">Complete Workflow Example</h2>
350
+
351
+ <p>The following example builds a complete render-and-export pipeline: open a character asset, render the animation, and export as glTF for use in a game engine or web viewer. Paste this into the Scripting Console (Window → Scripting Console) to build the graph programmatically.</p>
352
+
353
+ <pre><code class="language-python">scene.clear()
354
+
355
+ open_node = scene.add_node_by_name("blender_action_open", (0, 0))
356
+ open_node.set_parameter("blend_file", "C:/assets/character.blend")
357
+
358
+ render_node = scene.add_node_by_name("blender_action_render", (300, 0))
359
+ render_node.set_parameter("output_dir", "C:/renders/character/")
360
+ render_node.set_parameter("start_frame", 1)
361
+ render_node.set_parameter("end_frame", 250)
362
+
363
+ export_node = scene.add_node_by_name("blender_action_export_gltf", (600, 0))
364
+ export_node.set_parameter("output_path", "C:/exports/character.glb")
365
+
366
+ exec_node = scene.add_node_by_name("blender_headless", (900, 0))
367
+
368
+ # Data chain
369
+ scene.connect_nodes(open_node, "actions_out", render_node, "actions_in")
370
+ scene.connect_nodes(render_node, "actions_out", export_node, "actions_in")
371
+ scene.connect_nodes(export_node, "actions_out", exec_node, "actions_in")
372
+
373
+ # Exec chain
374
+ scene.connect_nodes(open_node, "exec_out", render_node, "exec_in")
375
+ scene.connect_nodes(render_node, "exec_out", export_node, "exec_in")
376
+ scene.connect_nodes(export_node, "exec_out", exec_node, "exec_in")
377
+
378
+ app.execute_pipeline()</code></pre>
379
+
380
+ <hr>
381
+
382
+ <h2 id="configuration">Configuration</h2>
383
+
384
+ <h3 id="blender-executable-path">Blender Executable Path</h3>
385
+
386
+ <p>By default, the <code>blender_headless</code> executor looks for <code>blender</code> on the system <code>PATH</code>. On Windows, Blender is typically not added to <code>PATH</code> automatically during installation. Configure the path explicitly via <strong>Settings → Environment Variables</strong> in the Vibrante-Node preferences dialog (Edit → Preferences…):</p>
387
+
388
+ <table>
389
+ <thead>
390
+ <tr><th>Variable</th><th>Example Value</th><th>Description</th></tr>
391
+ </thead>
392
+ <tbody>
393
+ <tr><td><code>BLENDER_EXECUTABLE</code></td><td><code>C:/Program Files/Blender Foundation/Blender 4.1/blender.exe</code></td><td>Full path to the Blender executable.</td></tr>
394
+ <tr><td><code>BLENDER_RUNNER_SCRIPT</code></td><td><em>(auto-detected)</em></td><td>Path to the Blender runner Python script. Defaults to the bundled script; override if using a custom runner.</td></tr>
395
+ </tbody>
396
+ </table>
397
+
398
+ <div class="callout callout-tip">
399
+ <div class="callout-title">Tip</div>
400
+ <p>You can have multiple Blender versions installed and select which one to use per-project by setting <code>BLENDER_EXECUTABLE</code> in the Environment Variables page. This is useful when targeting different rendering pipelines (Blender 3.x Cycles vs Blender 4.x EEVEE Next).</p>
401
+ </div>
402
+
403
+ <h3 id="runner-script">Runner Script</h3>
404
+
405
+ <p>The bundled runner script lives at <code>plugins/blender/blender_runner.py</code> inside the application directory. It is passed to Blender via <code>blender --background --python blender_runner.py -- /tmp/actions_xxxxxxxx.json</code>. The runner script:</p>
406
+ <ol>
407
+ <li>Reads the JSON action list from the path passed as the first positional argument after <code>--</code>.</li>
408
+ <li>Iterates through actions in order.</li>
409
+ <li>Dispatches each action's <code>"type"</code> key to the corresponding handler function.</li>
410
+ <li>Writes a result JSON to stdout on completion (success or error per action).</li>
411
+ </ol>
412
+
413
+ <p>If you need to add custom action types, create your own runner script that imports and extends the bundled one, and point <code>BLENDER_RUNNER_SCRIPT</code> to it.</p>
414
+
415
+ <hr>
416
+
417
+ <h2 id="action-type-reference">Action Type Reference</h2>
418
+
419
+ <p>The <code>"type"</code> field in every action dictionary must match exactly one of the following registered handler identifiers:</p>
420
+
421
+ <table>
422
+ <thead>
423
+ <tr><th>type string</th><th>Required fields</th><th>Optional fields</th></tr>
424
+ </thead>
425
+ <tbody>
426
+ <tr><td><code>open</code></td><td><code>blend_file</code></td><td>—</td></tr>
427
+ <tr><td><code>save</code></td><td><code>output_path</code></td><td>—</td></tr>
428
+ <tr><td><code>clean_scene</code></td><td>—</td><td>—</td></tr>
429
+ <tr><td><code>render</code></td><td><code>output_dir</code></td><td><code>start_frame</code>, <code>end_frame</code>, <code>file_format</code></td></tr>
430
+ <tr><td><code>set_render_engine</code></td><td><code>engine</code></td><td>—</td></tr>
431
+ <tr><td><code>set_output_dir</code></td><td><code>output_dir</code></td><td>—</td></tr>
432
+ <tr><td><code>set_frame_range</code></td><td><code>start_frame</code>, <code>end_frame</code></td><td>—</td></tr>
433
+ <tr><td><code>set_resolution</code></td><td><code>width</code>, <code>height</code></td><td><code>percentage</code></td></tr>
434
+ <tr><td><code>export_fbx</code></td><td><code>output_path</code></td><td><code>use_selection</code>, <code>apply_modifiers</code></td></tr>
435
+ <tr><td><code>export_obj</code></td><td><code>output_path</code></td><td><code>use_selection</code></td></tr>
436
+ <tr><td><code>export_gltf</code></td><td><code>output_path</code></td><td><code>export_format</code> (<code>GLB</code>/<code>GLTF_SEPARATE</code>), <code>use_selection</code></td></tr>
437
+ <tr><td><code>export_usd</code></td><td><code>output_path</code></td><td><code>export_textures</code></td></tr>
438
+ <tr><td><code>import_fbx</code></td><td><code>file_path</code></td><td>—</td></tr>
439
+ <tr><td><code>import_obj</code></td><td><code>file_path</code></td><td>—</td></tr>
440
+ <tr><td><code>run_script</code></td><td><code>script_path</code></td><td><code>script_args</code> (dict)</td></tr>
441
+ <tr><td><code>apply_modifier</code></td><td><code>object_name</code>, <code>modifier_name</code></td><td>—</td></tr>
442
+ <tr><td><code>join_objects</code></td><td><code>object_names</code> (list)</td><td><code>result_name</code></td></tr>
443
+ <tr><td><code>separate_objects</code></td><td><code>object_name</code></td><td><code>mode</code> (<code>LOOSE</code>/<code>MATERIAL</code>)</td></tr>
444
+ <tr><td><code>set_material</code></td><td><code>object_name</code>, <code>material_name</code></td><td>—</td></tr>
445
+ <tr><td><code>bake</code></td><td><code>bake_type</code>, <code>output_path</code></td><td><code>object_name</code>, <code>image_size</code></td></tr>
446
+ </tbody>
447
+ </table>
448
+
449
+ <hr>
450
+
451
+ <h2 id="production-use-cases">Production Use Cases</h2>
452
+
453
+ <h3 id="game-asset-pipeline">Game Asset Pipeline</h3>
454
+ <p>Import FBX assets exported from Maya, apply a Decimate modifier to reduce polygon count, and re-export as glTF for use in a game engine or real-time web viewer — all fully automated and reproducible.</p>
455
+
456
+ <pre><code class="language-python">actions = []
457
+
458
+ # Import Maya export
459
+ actions.append({"type": "import_fbx", "file_path": "/exports/maya/hero_rig.fbx"})
460
+
461
+ # Reduce polycount for LOD1
462
+ actions.append({"type": "apply_modifier", "object_name": "hero_body", "modifier_name": "Decimate"})
463
+
464
+ # Export for web
465
+ actions.append({"type": "export_gltf", "output_path": "/web/assets/hero_lod1.glb",
466
+ "export_format": "GLB", "use_selection": False})</code></pre>
467
+
468
+ <h3 id="batch-render-preparation">Batch Render Farm Preparation</h3>
469
+ <p>For each shot in a sequence, open the corresponding blend file, set the render engine and output path, configure the frame range from a Prism Pipeline query, save the prepared scene, and submit it to Deadline — all in a single Vibrante-Node graph execution.</p>
470
+
471
+ <h3 id="format-conversion">Format Conversion Pipeline</h3>
472
+ <p>Convert an entire library of <code>.blend</code> files to USD for a multi-DCC pipeline where downstream tools (Houdini, Karma, USD Hydra) consume USD natively. Loop over files using a <code>for_each</code> control node and chain a <code>blender_action_open</code> → <code>blender_action_export_usd</code> → <code>blender_headless</code> subgraph.</p>
473
+
474
+ <h3 id="procedural-scene-population">Procedural Scene Population</h3>
475
+ <p>Use <code>blender_action_run_script</code> to invoke custom <code>bpy</code> scripts that scatter instanced objects across a terrain, assign randomised materials, or bake lightmaps — keeping complex procedural logic inside Blender while orchestrating the overall pipeline from Vibrante-Node.</p>
476
+
477
+ <h3 id="automated-lod-generation">Automated LOD Generation</h3>
478
+ <p>Run a Blender Python script via <code>blender_action_run_script</code> that iterates over all mesh objects, applies a Decimate modifier with a configurable ratio, and exports separate LOD levels as FBX. Wire this into a Maya headless pre-processing step that exports the source geometry, passing the file path through the graph as a string data pin.</p>
479
+
480
+ <hr>
481
+
482
+ <h2 id="troubleshooting">Troubleshooting</h2>
483
+
484
+ <h3 id="blender-not-found">Blender executable not found</h3>
485
+ <p>If <code>blender_headless</code> reports <code>FileNotFoundError</code> or <code>blender: command not found</code>, set <code>BLENDER_EXECUTABLE</code> to the full path in Settings → Environment Variables and restart the application (or use Scripts → Refresh Scripts to reload the environment without restarting).</p>
486
+
487
+ <h3 id="runner-script-errors">Runner script errors</h3>
488
+ <p>Errors inside the Blender subprocess are captured and surfaced in the Vibrante-Node log panel as part of the <code>log_output</code> from the <code>blender_headless</code> node. Check for Python tracebacks in the log — they will reference the runner script and the specific action that failed.</p>
489
+
490
+ <h3 id="action-type-not-found">Unknown action type</h3>
491
+ <p>If the runner reports <code>Unknown action type: 'my_type'</code>, verify the <code>"type"</code> string in your action dictionary matches the handler name exactly (case-sensitive). Check the action type reference table above.</p>
492
+
493
+ <div class="callout callout-warning">
494
+ <div class="callout-title">Warning</div>
495
+ <p>Blender's Python API (<code>bpy</code>) is only available inside the Blender subprocess — it cannot be imported in Vibrante-Node's own Python environment. Never attempt to <code>import bpy</code> in a node's <code>execute()</code> method. Use <code>blender_action_run_script</code> to run <code>bpy</code> code inside the Blender context.</p>
496
+ </div>
497
+
498
+ <!-- Prev / Next -->
499
+ <nav class="page-nav">
500
+ <a class="page-nav-link prev" href="integrations_maya.html">
501
+ <span class="page-nav-label">Previous</span>
502
+ <span class="page-nav-title">Maya Headless</span>
503
+ </a>
504
+ <a class="page-nav-link next" href="integrations_prism.html">
505
+ <span class="page-nav-label">Next</span>
506
+ <span class="page-nav-title">Prism Pipeline</span>
507
+ </a>
508
+ </nav>
509
+
510
+ </div>
511
+ <section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
512
+ <p>Documentation &amp;copy; 2024&amp;ndash;2026 Mahmoud Kamal (KamalTD), licensed under
513
+ <a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
514
+ <a href="../LICENSE.txt">Full licence notice</a>.</p>
515
+ <p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
516
+ and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
517
+ cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
518
+ </section>
519
+ </main>
520
+
521
+ <!-- ── TOC ────────────────────────────────────────────────────────────── -->
522
+ <aside class="toc">
523
+ <div class="toc-title">On this page</div>
524
+ <a class="toc-link" href="#blender-headless-integration">Blender Headless Integration</a>
525
+ <a class="toc-link" href="#how-it-works">How It Works</a>
526
+ <a class="toc-link toc-h3" href="#action-list-pattern">Action-List Pattern</a>
527
+ <a class="toc-link toc-h3" href="#architecture-diagram">Architecture Diagram</a>
528
+ <a class="toc-link toc-h3" href="#exec-vs-data-flow">Exec vs. Data Flow</a>
529
+ <a class="toc-link" href="#node-skeleton">Node Skeleton</a>
530
+ <a class="toc-link" href="#node-library">Node Library</a>
531
+ <a class="toc-link toc-h3" href="#scene-management-nodes">Scene Management</a>
532
+ <a class="toc-link toc-h3" href="#render-nodes">Rendering</a>
533
+ <a class="toc-link toc-h3" href="#import-export-nodes">Import / Export</a>
534
+ <a class="toc-link toc-h3" href="#geometry-material-nodes">Geometry &amp; Materials</a>
535
+ <a class="toc-link toc-h3" href="#executor-node">Executor Node</a>
536
+ <a class="toc-link" href="#workflow-example">Workflow Example</a>
537
+ <a class="toc-link" href="#configuration">Configuration</a>
538
+ <a class="toc-link toc-h3" href="#blender-executable-path">Executable Path</a>
539
+ <a class="toc-link toc-h3" href="#runner-script">Runner Script</a>
540
+ <a class="toc-link" href="#action-type-reference">Action Type Reference</a>
541
+ <a class="toc-link" href="#production-use-cases">Production Use Cases</a>
542
+ <a class="toc-link" href="#troubleshooting">Troubleshooting</a>
543
+ </aside>
544
+
545
+ <script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
546
+ <script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
547
+ <script>
548
+ let _idx = null, _docs = [];
549
+ async function initSearch() {
550
+ try {
551
+ const base = document.getElementById('portal-base').dataset.base;
552
+ const resp = await fetch(base + 'search.json');
553
+ _docs = await resp.json();
554
+ _idx = lunr(function() {
555
+ this.ref('id'); this.field('title', { boost: 10 }); this.field('body');
556
+ _docs.forEach((d, i) => { this.add({ id: i, title: d.title, body: d.body }); });
557
+ });
558
+ } catch(e) { console.warn('Search index not available', e); }
559
+ }
560
+ function doSearch(q) {
561
+ const box = document.getElementById('search-results');
562
+ if (!q || q.length < 2) { box.classList.remove('visible'); return; }
563
+ if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
564
+ const results = _idx.search(q + '~1');
565
+ if (!results.length) { box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>'; box.classList.add('visible'); return; }
566
+ box.innerHTML = results.slice(0, 8).map(r => {
567
+ const d = _docs[r.ref];
568
+ const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
569
+ return `<a class="search-result-item" href="${d.url}"><div class="search-result-title">${d.title}</div><div class="search-result-excerpt">${excerpt}</div></a>`;
570
+ }).join('');
571
+ box.classList.add('visible');
572
+ }
573
+ document.addEventListener('DOMContentLoaded', () => {
574
+ initSearch();
575
+ const inp = document.getElementById('search-input');
576
+ if (inp) {
577
+ inp.addEventListener('input', e => doSearch(e.target.value));
578
+ inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
579
+ }
580
+ document.addEventListener('click', e => { if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible'); });
581
+ document.addEventListener('keydown', e => { if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) { e.preventDefault(); document.getElementById('search-input')?.focus(); } });
582
+ const tocLinks = document.querySelectorAll('.toc-link');
583
+ const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
584
+ if (tocLinks.length && headings.length) {
585
+ const obs = new IntersectionObserver(entries => {
586
+ entries.forEach(entry => { if (entry.isIntersecting) { tocLinks.forEach(l => l.classList.remove('active')); const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`); if (link) link.classList.add('active'); } });
587
+ }, { rootMargin: '-20% 0px -70% 0px' });
588
+ headings.forEach(h => obs.observe(h));
589
+ }
590
+ document.querySelectorAll('pre').forEach(pre => {
591
+ const btn = document.createElement('button');
592
+ btn.className = 'copy-btn'; btn.textContent = 'Copy';
593
+ btn.addEventListener('click', () => {
594
+ const code = pre.querySelector('code');
595
+ navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => { btn.textContent = 'Copied!'; btn.classList.add('copied'); setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000); });
596
+ });
597
+ pre.style.position = 'relative'; pre.appendChild(btn);
598
+ });
599
+ const cur = window.location.pathname.split('/').pop();
600
+ document.querySelectorAll('.sidebar-link').forEach(l => { if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active'); });
601
+ if (window.hljs) { hljs.configure({ ignoreUnescapedHTML: true }); hljs.highlightAll(); }
602
+ });
603
+ </script>
604
+ </body>
605
+ </html>