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,18 @@
1
+ {
2
+ "node_id": "file_write",
3
+ "name": "Write File",
4
+ "description": "Write text to a file (overwrites).",
5
+ "category": "File",
6
+ "icon_path": "icons/file-text.svg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "path", "type": "string", "widget_type": "text", "default": "" },
10
+ { "name": "content", "type": "string", "widget_type": "text_area", "default": "" },
11
+ { "name": "encoding", "type": "string", "widget_type": "text", "default": "utf-8" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "result", "type": "bool" }
16
+ ],
17
+ "python_code": "import os\nfrom pathlib import Path\n\nasync def execute(self, inputs):\n p = inputs.get('path') or self.get_parameter('path', '')\n content = inputs.get('content') if inputs.get('content') is not None else self.get_parameter('content', '')\n encoding = inputs.get('encoding') or self.get_parameter('encoding', 'utf-8')\n try:\n if not p:\n try: self.log_info('Write File: path is empty')\n except Exception: pass\n res = False\n else:\n path = Path(p)\n path.parent.mkdir(parents=True, exist_ok=True)\n with path.open('w', encoding=encoding) as f:\n f.write(str(content))\n res = True\n except Exception as e:\n try: self.log_info(f'Write File error: {e}')\n except Exception: pass\n res = False\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
18
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "node_id": "for_loop",
3
+ "name": "For Loop",
4
+ "description": "Generates a range of indices and outputs them as a list. Fires exec_out once after all indices are ready.",
5
+ "category": "Flow",
6
+ "icon_path": "icons/repeat.svg",
7
+ "inputs": [
8
+ {
9
+ "name": "exec_in",
10
+ "type": "exec"
11
+ },
12
+ {
13
+ "name": "start",
14
+ "type": "int",
15
+ "widget_type": "int",
16
+ "default": 0
17
+ },
18
+ {
19
+ "name": "end",
20
+ "type": "int",
21
+ "widget_type": "int",
22
+ "default": 10
23
+ },
24
+ {
25
+ "name": "step",
26
+ "type": "int",
27
+ "widget_type": "int",
28
+ "default": 1
29
+ }
30
+ ],
31
+ "outputs": [
32
+ {
33
+ "name": "exec_out",
34
+ "type": "exec"
35
+ },
36
+ {
37
+ "name": "current_index",
38
+ "type": "int"
39
+ },
40
+ {
41
+ "name": "indices",
42
+ "type": "list"
43
+ }
44
+ ],
45
+ "python_code": "async def execute(self, inputs):\n try: start = int(inputs.get('start', 0))\n except: start = 0\n try: end = int(inputs.get('end', 10))\n except: end = 10\n try: step = int(inputs.get('step', 1))\n except: step = 1\n if step == 0: step = 1\n\n indices = list(range(start, end, step))\n self.log_info(f'For loop: {len(indices)} iteration(s) ({start} to {end} step {step})')\n\n last_index = indices[-1] if indices else 0\n await self.set_output('indices', indices)\n await self.set_output('current_index', last_index)\n\n # Fire exec_out ONCE after indices are ready so downstream nodes\n # (e.g. loop_body) receive the full list before iterating.\n await self.set_output('exec_out', True)\n\n return {'indices': indices, 'current_index': last_index}"
46
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "node_id": "get_dict_value",
3
+ "name": "Get Dict Value",
4
+ "description": "Gets a value by key from a dictionary (provided or stored under `dict_name`).",
5
+ "category": "Data",
6
+ "icon_path": "icons/database-search.svg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "dict_name", "type": "string", "widget_type": "text", "default": "" },
10
+ { "name": "dict", "type": "dict" },
11
+ { "name": "key", "type": "string", "widget_type": "text" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "value", "type": "any" },
16
+ { "name": "found", "type": "bool" }
17
+ ],
18
+ "python_code": "from src.nodes.base import BaseNode\n\nasync def execute(self, inputs):\n name = inputs.get('dict_name') or self.get_parameter('dict_name', '')\n provided = inputs.get('dict')\n if provided is None or provided == {}:\n d = BaseNode.memory.get(name) if name else None\n else:\n d = provided\n\n key = inputs.get('key')\n if key is None:\n key = self.get_parameter('key', '')\n\n value = None\n found = False\n try:\n if d is not None and key in d:\n value = d.get(key)\n found = True\n else:\n self.log_info('Key not found or no dict available')\n except Exception as e:\n self.log_info(f'Error getting dict value: {e}')\n value = None\n found = False\n\n await self.set_output('value', value)\n await self.set_output('found', found)\n await self.set_output('exec_out', True)\n return {'value': value, 'found': found}"
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "node_id": "get_list_item",
3
+ "name": "Get List Item",
4
+ "description": "Retrieves an item from a list by index. Can read from a named stored list or from an input list.",
5
+ "category": "Data",
6
+ "icon_path": "icons/list-check.svg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "list_name", "type": "string", "widget_type": "text", "default": "" },
10
+ { "name": "list", "type": "list" },
11
+ { "name": "index", "type": "int", "widget_type": "int", "default": 0 }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "item", "type": "any" },
16
+ { "name": "success", "type": "bool" }
17
+ ],
18
+ "python_code": "from src.nodes.base import BaseNode\n\nasync def execute(self, inputs):\n name = inputs.get('list_name') or self.get_parameter('list_name', '')\n provided = inputs.get('list')\n if provided is None or provided == []:\n lst = BaseNode.memory.get(name) if name else None\n else:\n lst = provided\n\n idx = inputs.get('index')\n if idx is None:\n idx = self.get_parameter('index', 0)\n try:\n i = int(idx)\n except Exception:\n i = 0\n\n item = None\n success = False\n try:\n if lst is not None:\n item = lst[i]\n success = True\n else:\n self.log_info('No list available to get item from')\n except Exception as e:\n self.log_info(f'Index error: {e}')\n item = None\n success = False\n\n await self.set_output('item', item)\n await self.set_output('success', success)\n await self.set_output('exec_out', True)\n return {'item': item, 'success': success}"
19
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "node_id": "houdini_action_bake_animation",
3
+ "name": "Houdini Action: Bake Animation",
4
+ "description": "Creates a Houdini action that bakes time-dependent parms on specified nodes over a frame range by sampling and writing discrete keyframes. Provide target node paths comma-separated (e.g. /obj/geo1,/obj/cam1). Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "nodes", "type": "string", "widget_type": "text", "default": "" },
11
+ { "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
12
+ { "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 },
13
+ { "name": "sample_by", "type": "float", "widget_type": "float", "default": 1.0 }
14
+ ],
15
+ "outputs": [
16
+ { "name": "exec_out", "type": "exec" },
17
+ { "name": "actions_out", "type": "list" }
18
+ ],
19
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n nodes = inputs.get('nodes') or self.get_parameter('nodes', '')\n frame_start = inputs.get('frame_start')\n if frame_start is None:\n frame_start = self.get_parameter('frame_start', 1)\n frame_end = inputs.get('frame_end')\n if frame_end is None:\n frame_end = self.get_parameter('frame_end', 100)\n sample_by = inputs.get('sample_by')\n if sample_by is None:\n sample_by = self.get_parameter('sample_by', 1.0)\n action = {'type': 'bake_animation', 'nodes': nodes, 'frame_start': int(frame_start), 'frame_end': int(frame_end), 'sample_by': float(sample_by)}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added bake_animation action -> {nodes} (frames {frame_start}-{frame_end})')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "node_id": "houdini_action_custom",
3
+ "name": "Houdini Action: Custom Python",
4
+ "description": "Creates an editable Houdini action with a user-defined Python code block. The code runs inside hython with access to 'hou', 'action', 'os', and 'json'. Use 'action' to read your own parameters. Chain via actions_in/actions_out into a Houdini Headless node. Click 'Edit Script' to open the code editor.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "action_name", "type": "string", "widget_type": "text", "default": "custom" },
11
+ { "name": "python_code", "type": "string", "widget_type": "text_area", "default": "# Runs inside hython. Available: hou, action, os, json\n# Read custom params from the action dict, e.g. action.get('param1')\nprint('Hello from custom Houdini action')" },
12
+ { "name": "param1", "type": "string", "widget_type": "text", "default": "" },
13
+ { "name": "param2", "type": "string", "widget_type": "text", "default": "" }
14
+ ],
15
+ "outputs": [
16
+ { "name": "exec_out", "type": "exec" },
17
+ { "name": "actions_out", "type": "list" }
18
+ ],
19
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n action_name = inputs.get('action_name') or self.get_parameter('action_name', 'custom')\n python_code = self.get_parameter('python_code', '')\n param1 = inputs.get('param1') or self.get_parameter('param1', '')\n param2 = inputs.get('param2') or self.get_parameter('param2', '')\n action = {'type': 'custom_python', 'name': action_name, 'python_code': python_code, 'param1': param1, 'param2': param2}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added custom_python action -> {action_name}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "node_id": "houdini_action_export_alembic",
3
+ "name": "Houdini Action: Export Alembic",
4
+ "description": "Creates a Houdini action that exports geometry as an Alembic (.abc) cache via an Alembic ROP in /out. Provide root SOP/OBJ paths comma-separated. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "abc_path", "type": "string", "widget_type": "file_save", "default": "" },
11
+ { "name": "root_nodes", "type": "string", "widget_type": "text", "default": "" },
12
+ { "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
13
+ { "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 }
14
+ ],
15
+ "outputs": [
16
+ { "name": "exec_out", "type": "exec" },
17
+ { "name": "actions_out", "type": "list" }
18
+ ],
19
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n abc_path = inputs.get('abc_path') or self.get_parameter('abc_path', '')\n root_nodes = inputs.get('root_nodes') or self.get_parameter('root_nodes', '')\n frame_start = inputs.get('frame_start')\n if frame_start is None:\n frame_start = self.get_parameter('frame_start', 1)\n frame_end = inputs.get('frame_end')\n if frame_end is None:\n frame_end = self.get_parameter('frame_end', 100)\n action = {'type': 'export_alembic', 'abc_path': abc_path, 'root_nodes': root_nodes, 'frame_start': int(frame_start), 'frame_end': int(frame_end)}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_alembic action -> {abc_path} (frames {frame_start}-{frame_end})')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "node_id": "houdini_action_export_camera_alembic",
3
+ "name": "Houdini Action: Export Camera Alembic",
4
+ "description": "Creates a Houdini action to export a camera as an Alembic (.abc) cache via an Alembic ROP in /out. Provide the camera node path (e.g. /obj/cam1). Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "abc_path", "type": "string", "widget_type": "file_save", "default": "" },
11
+ { "name": "camera_nodes", "type": "string", "widget_type": "text", "default": "" },
12
+ { "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
13
+ { "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 }
14
+ ],
15
+ "outputs": [
16
+ { "name": "exec_out", "type": "exec" },
17
+ { "name": "actions_out", "type": "list" }
18
+ ],
19
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n abc_path = inputs.get('abc_path') or self.get_parameter('abc_path', '')\n camera_nodes = inputs.get('camera_nodes') or self.get_parameter('camera_nodes', '')\n frame_start = inputs.get('frame_start')\n if frame_start is None:\n frame_start = self.get_parameter('frame_start', 1)\n frame_end = inputs.get('frame_end')\n if frame_end is None:\n frame_end = self.get_parameter('frame_end', 100)\n action = {'type': 'export_camera_alembic', 'abc_path': abc_path, 'camera_nodes': camera_nodes, 'frame_start': int(frame_start), 'frame_end': int(frame_end)}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_camera_alembic action -> {abc_path}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
20
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "houdini_action_export_fbx",
3
+ "name": "Houdini Action: Export FBX",
4
+ "description": "Creates a Houdini action that exports the scene (or a specific subnet / obj node) as an FBX file via a Filmbox FBX ROP in /out. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "fbx_path", "type": "string", "widget_type": "file_save", "default": "" },
11
+ { "name": "root_nodes", "type": "string", "widget_type": "text", "default": "" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "actions_out", "type": "list" }
16
+ ],
17
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n fbx_path = inputs.get('fbx_path') or self.get_parameter('fbx_path', '')\n root_nodes = inputs.get('root_nodes') or self.get_parameter('root_nodes', '')\n action = {'type': 'export_fbx', 'fbx_path': fbx_path, 'root_nodes': root_nodes}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_fbx action -> {fbx_path}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "houdini_action_import_alembic",
3
+ "name": "Houdini Action: Import Alembic",
4
+ "description": "Creates a Houdini action that imports an Alembic (.abc) file. When context is /obj, creates a geo container with an Alembic SOP. When context is /stage, creates a Sublayer LOP. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "abc_path", "type": "string", "widget_type": "file", "default": "" },
11
+ { "name": "context", "type": "string", "widget_type": "dropdown", "options": ["/obj", "/stage"], "default": "/obj" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "actions_out", "type": "list" }
16
+ ],
17
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n abc_path = inputs.get('abc_path') or self.get_parameter('abc_path', '')\n context = (inputs.get('context') or self.get_parameter('context', '/obj') or '/obj').strip()\n action = {'type': 'import_alembic', 'abc_path': abc_path, 'context': context}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_alembic action -> {abc_path} ({context})')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
18
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "node_id": "houdini_action_import_camera",
3
+ "name": "Houdini Action: Import Camera",
4
+ "description": "Creates a Houdini action that imports a camera from an Alembic or FBX file into /obj. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "camera_path", "type": "string", "widget_type": "file", "default": "" }
11
+ ],
12
+ "outputs": [
13
+ { "name": "exec_out", "type": "exec" },
14
+ { "name": "actions_out", "type": "list" }
15
+ ],
16
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n camera_path = inputs.get('camera_path') or self.get_parameter('camera_path', '')\n action = {'type': 'import_camera', 'camera_path': camera_path}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_camera action -> {camera_path}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
17
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "houdini_action_import_fbx",
3
+ "name": "Houdini Action: Import FBX",
4
+ "description": "Creates a Houdini action that imports an .fbx file. When context is /obj, uses hou.hipFile.importFBX() to build the /obj network. When context is /stage, creates an FBX LOP. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "fbx_path", "type": "string", "widget_type": "file", "default": "" },
11
+ { "name": "context", "type": "string", "widget_type": "dropdown", "options": ["/obj", "/stage"], "default": "/obj" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "actions_out", "type": "list" }
16
+ ],
17
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n fbx_path = inputs.get('fbx_path') or self.get_parameter('fbx_path', '')\n context = inputs.get('context') or self.get_parameter('context', '/obj')\n action = {'type': 'import_fbx', 'fbx_path': fbx_path, 'context': context}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_fbx action -> {fbx_path} ({context})')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "houdini_action_import_obj",
3
+ "name": "Houdini Action: Import OBJ",
4
+ "description": "Creates a Houdini action that imports an .obj file. When context is /obj, creates a geo container with a File SOP. When context is /stage, creates a SOP Import LOP. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "obj_path", "type": "string", "widget_type": "file", "default": "" },
11
+ { "name": "context", "type": "string", "widget_type": "dropdown", "options": ["/obj", "/stage"], "default": "/obj" }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "actions_out", "type": "list" }
16
+ ],
17
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n obj_path = inputs.get('obj_path') or self.get_parameter('obj_path', '')\n context = inputs.get('context') or self.get_parameter('context', '/obj')\n action = {'type': 'import_obj', 'obj_path': obj_path, 'context': context}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_obj action -> {obj_path} ({context})')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
18
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "node_id": "houdini_action_new_hip",
3
+ "name": "Houdini Action: New HIP",
4
+ "description": "Creates a Houdini action that clears the current scene (new empty .hip). Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] }
10
+ ],
11
+ "outputs": [
12
+ { "name": "exec_out", "type": "exec" },
13
+ { "name": "actions_out", "type": "list" }
14
+ ],
15
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n action = {'type': 'new_hip'}\n actions_out = list(actions_in) + [action]\n self.log_info('Added new_hip action')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "node_id": "houdini_action_open_hip",
3
+ "name": "Houdini Action: Open HIP",
4
+ "description": "Creates a Houdini action to open a .hip/.hipnc/.hiplc scene file. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "hip_path", "type": "string", "widget_type": "file", "default": "" }
11
+ ],
12
+ "outputs": [
13
+ { "name": "exec_out", "type": "exec" },
14
+ { "name": "actions_out", "type": "list" }
15
+ ],
16
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n hip_path = inputs.get('hip_path') or self.get_parameter('hip_path', '')\n action = {'type': 'open_hip', 'hip_path': hip_path}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added open_hip action -> {hip_path}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "node_id": "houdini_action_save_hip",
3
+ "name": "Houdini Action: Save HIP",
4
+ "description": "Creates a Houdini action to save the current scene as a .hip/.hipnc/.hiplc file. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "hip_path", "type": "string", "widget_type": "file_save", "default": "" }
11
+ ],
12
+ "outputs": [
13
+ { "name": "exec_out", "type": "exec" },
14
+ { "name": "actions_out", "type": "list" }
15
+ ],
16
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n hip_path = inputs.get('hip_path') or self.get_parameter('hip_path', '')\n action = {'type': 'save_hip', 'hip_path': hip_path}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added save_hip action -> {hip_path}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
17
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "node_id": "houdini_action_scene_info",
3
+ "name": "Houdini Action: Scene Info",
4
+ "description": "Creates a Houdini action that queries the current scene for hip path, FPS, frame range, $HIP, $JOB, and list of /obj cameras. The results are written into the action's 'info' field, available via the executed_actions output of the Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] }
10
+ ],
11
+ "outputs": [
12
+ { "name": "exec_out", "type": "exec" },
13
+ { "name": "actions_out", "type": "list" }
14
+ ],
15
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n action = {'type': 'scene_info'}\n actions_out = list(actions_in) + [action]\n self.log_info('Added scene_info action')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
16
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "houdini_action_set_frame_range",
3
+ "name": "Houdini Action: Set Frame Range",
4
+ "description": "Creates a Houdini action that sets the playbar frame range and playback range. Chain via actions_in/actions_out into a Houdini Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
11
+ { "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "actions_out", "type": "list" }
16
+ ],
17
+ "python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n frame_start = inputs.get('frame_start')\n if frame_start is None:\n frame_start = self.get_parameter('frame_start', 1)\n frame_end = inputs.get('frame_end')\n if frame_end is None:\n frame_end = self.get_parameter('frame_end', 100)\n action = {'type': 'set_frame_range', 'frame_start': int(frame_start), 'frame_end': int(frame_end)}\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added set_frame_range action -> {frame_start}-{frame_end}')\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
18
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "node_id": "houdini_get_action_result",
3
+ "name": "Houdini: Get Action Result",
4
+ "description": "Extracts a single action result from the Houdini Headless 'executed_actions' output. Select by action type (first match) or by index. Outputs the matched action dict, its 'info' field, and a best-guess path field.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "executed_actions", "type": "list", "default": [] },
10
+ { "name": "action_type", "type": "string", "widget_type": "text", "default": "" },
11
+ { "name": "index", "type": "int", "widget_type": "int", "default": 0 }
12
+ ],
13
+ "outputs": [
14
+ { "name": "exec_out", "type": "exec" },
15
+ { "name": "found", "type": "bool" },
16
+ { "name": "action", "type": "dict" },
17
+ { "name": "info", "type": "dict" },
18
+ { "name": "path", "type": "string" }
19
+ ],
20
+ "python_code": "async def execute(self, inputs):\n executed = inputs.get('executed_actions') or []\n if not isinstance(executed, list):\n executed = [executed]\n\n action_type = (inputs.get('action_type') or self.get_parameter('action_type', '') or '').strip()\n index = inputs.get('index')\n if index is None:\n index = self.get_parameter('index', 0)\n try:\n index = int(index)\n except Exception:\n index = 0\n\n match = None\n if action_type:\n for a in executed:\n if isinstance(a, dict) and a.get('type') == action_type:\n match = a\n break\n if match is None:\n self.log_error(f'No executed action of type \"{action_type}\" found')\n else:\n if 0 <= index < len(executed):\n candidate = executed[index]\n if isinstance(candidate, dict):\n match = candidate\n elif len(executed) == 0:\n self.log_error('executed_actions is empty')\n else:\n self.log_error(f'Index {index} out of range (executed_actions has {len(executed)} entries)')\n\n found = match is not None\n action = match or {}\n info = action.get('info', {}) if isinstance(action, dict) else {}\n if not isinstance(info, dict):\n info = {}\n\n path = ''\n if isinstance(action, dict):\n for key in ('hip_path', 'fbx_path', 'abc_path', 'obj_path', 'camera_path', 'output_path'):\n val = action.get(key)\n if val:\n path = val\n break\n\n if found:\n self.log_info(f'Matched action type={action.get(\"type\", \"\")}')\n\n await self.set_output('found', found)\n await self.set_output('action', action)\n await self.set_output('info', info)\n await self.set_output('path', path)\n await self.set_output('exec_out', True)\n return {'found': found, 'action': action, 'info': info, 'path': path}"
21
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "node_id": "houdini_headless",
3
+ "name": "Houdini Headless",
4
+ "description": "Launches Houdini in headless (hython) mode, optionally opens a .hip scene, executes a list of Houdini Actions collected from upstream action nodes, and returns the results. Supports custom environment variables via .bat launcher or houdini.env file.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/houdini_icon.png",
7
+ "use_exec": true,
8
+ "inputs": [
9
+ {
10
+ "name": "exec_in",
11
+ "type": "exec"
12
+ },
13
+ {
14
+ "name": "houdini_version",
15
+ "type": "string",
16
+ "widget_type": "dropdown",
17
+ "options": [
18
+ "20.5.445",
19
+ "20.5.278",
20
+ "20.0.547",
21
+ "19.5.493"
22
+ ],
23
+ "default": "20.5.445"
24
+ },
25
+ {
26
+ "name": "hython.exe",
27
+ "type": "string",
28
+ "widget_type": "text",
29
+ "default": "C:/Program Files/Side Effects Software/Houdini 20.5.445/bin/hython.exe"
30
+ },
31
+ {
32
+ "name": "bat_file",
33
+ "type": "string",
34
+ "widget_type": "file",
35
+ "default": ""
36
+ },
37
+ {
38
+ "name": "houdini_env_file",
39
+ "type": "string",
40
+ "widget_type": "file",
41
+ "default": ""
42
+ },
43
+ {
44
+ "name": "hip_file",
45
+ "type": "string",
46
+ "widget_type": "file",
47
+ "default": ""
48
+ },
49
+ {
50
+ "name": "actions",
51
+ "type": "list"
52
+ }
53
+ ],
54
+ "outputs": [
55
+ {
56
+ "name": "exec_out",
57
+ "type": "exec"
58
+ },
59
+ {
60
+ "name": "success",
61
+ "type": "bool"
62
+ },
63
+ {
64
+ "name": "stdout",
65
+ "type": "string"
66
+ },
67
+ {
68
+ "name": "stderr",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "name": "exit_code",
73
+ "type": "int"
74
+ },
75
+ {
76
+ "name": "executed_actions",
77
+ "type": "list"
78
+ },
79
+ {
80
+ "name": "skipped_actions",
81
+ "type": "list"
82
+ }
83
+ ],
84
+ "python_code": "import subprocess, json, tempfile, os\n\nVERSION_PATHS = {\n '20.5.445': 'C:/Program Files/Side Effects Software/Houdini 20.5.445/bin/hython.exe',\n '20.5.278': 'C:/Program Files/Side Effects Software/Houdini 20.5.278/bin/hython.exe',\n '20.0.547': 'C:/Program Files/Side Effects Software/Houdini 20.0.547/bin/hython.exe',\n '19.5.493': 'C:/Program Files/Side Effects Software/Houdini 19.5.493/bin/hython.exe',\n}\n\nHOUDINI_RUNNER_SCRIPT = '''import json, sys, os\nimport hou\n\nwith open(sys.argv[1], \"r\") as f:\n payload = json.load(f)\n\nresults_path = sys.argv[2]\nresults = {\"actions\": [], \"errors\": []}\n\nhip_file = payload.get(\"hip_file\", \"\")\nif hip_file:\n try:\n hou.hipFile.load(hip_file, suppress_save_prompt=True, ignore_load_warnings=True)\n except Exception as e:\n results[\"errors\"].append(\"Failed to open hip: \" + str(e))\n with open(results_path, \"w\") as f:\n json.dump(results, f)\n sys.exit(1)\n\ndef _ensure_parent(path):\n parent_path = path.rsplit(\"/\", 1)[0] if \"/\" in path else \"/obj\"\n parent = hou.node(parent_path)\n if parent is None:\n parent = hou.node(\"/obj\")\n return parent\n\ndef _unique_name(parent, base):\n name = base\n i = 1\n while parent.node(name) is not None:\n name = base + str(i)\n i += 1\n return name\n\nfor i, action in enumerate(payload.get(\"actions\", [])):\n action_type = action.get(\"type\", \"\")\n entry = {\"index\": i, \"type\": action_type, \"ok\": False, \"error\": \"\"}\n try:\n if action_type == \"open_hip\":\n hou.hipFile.load(action[\"hip_path\"], suppress_save_prompt=True, ignore_load_warnings=True)\n entry[\"ok\"] = True\n elif action_type == \"save_hip\":\n hou.hipFile.save(action[\"hip_path\"])\n entry[\"ok\"] = True\n elif action_type == \"new_hip\":\n hou.hipFile.clear(suppress_save_prompt=True)\n entry[\"ok\"] = True\n elif action_type == \"scene_info\":\n info = {}\n info[\"hip_path\"] = hou.hipFile.path()\n info[\"hip_name\"] = hou.hipFile.basename()\n info[\"fps\"] = hou.fps()\n info[\"frame_start\"] = hou.playbar.frameRange()[0]\n info[\"frame_end\"] = hou.playbar.frameRange()[1]\n info[\"playback_start\"] = hou.playbar.playbackRange()[0]\n info[\"playback_end\"] = hou.playbar.playbackRange()[1]\n info[\"hip_var\"] = hou.hscriptExpression(\"$HIP\")\n info[\"job_var\"] = hou.hscriptExpression(\"$JOB\")\n cams = [c.path() for c in hou.node(\"/obj\").children() if c.type().name() == \"cam\"] if hou.node(\"/obj\") else []\n info[\"cameras\"] = cams\n entry[\"info\"] = info\n entry[\"ok\"] = True\n elif action_type == \"set_frame_range\":\n fs = float(action.get(\"frame_start\", 1))\n fe = float(action.get(\"frame_end\", 100))\n hou.playbar.setFrameRange(fs, fe)\n hou.playbar.setPlaybackRange(fs, fe)\n entry[\"ok\"] = True\n elif action_type == \"import_obj\":\n context = (action.get(\"context\") or \"/obj\").strip()\n if context == \"/obj\":\n parent = hou.node(\"/obj\")\n geo = parent.createNode(\"geo\", _unique_name(parent, \"imported_obj\"))\n file_sop = geo.createNode(\"file\", \"obj_import\")\n file_sop.parm(\"file\").set(action[\"obj_path\"])\n geo.layoutChildren()\n entry[\"info\"] = {\"node\": geo.path()}\n else:\n stage = hou.node(\"/stage\")\n if stage is None:\n stage = hou.node(\"/\").createNode(\"stage\")\n sop_import = stage.createNode(\"sopimport\", _unique_name(stage, \"obj_import\"))\n entry[\"info\"] = {\"node\": sop_import.path()}\n entry[\"ok\"] = True\n elif action_type == \"import_fbx\":\n context = (action.get(\"context\") or \"/obj\").strip()\n if context == \"/obj\":\n root, messages = hou.hipFile.importFBX(action[\"fbx_path\"])\n entry[\"info\"] = {\"node\": root.path() if root else \"\", \"messages\": messages}\n else:\n stage = hou.node(\"/stage\") or hou.node(\"/\").createNode(\"stage\")\n fbx_lop = stage.createNode(\"fbxcharacterimport\", _unique_name(stage, \"fbx_import\"))\n try:\n fbx_lop.parm(\"fbxfile\").set(action[\"fbx_path\"])\n except Exception:\n pass\n entry[\"info\"] = {\"node\": fbx_lop.path()}\n entry[\"ok\"] = True\n elif action_type == \"import_alembic\":\n context = str(action.get(\"context\") or \"/obj\").strip().lower()\n if context == \"/stage\":\n stage = hou.node(\"/stage\") or hou.node(\"/\").createNode(\"stage\")\n abc_lop = stage.createNode(\"sublayer\", _unique_name(stage, \"abc_import\"))\n try:\n abc_lop.parm(\"filepath1\").set(action[\"abc_path\"])\n except Exception:\n pass\n entry[\"info\"] = {\"node\": abc_lop.path()}\n else:\n parent = hou.node(\"/obj\")\n geo = parent.createNode(\"geo\", _unique_name(parent, \"imported_abc\"))\n abc_sop = geo.createNode(\"alembic\", \"abc_import\")\n abc_sop.parm(\"fileName\").set(action[\"abc_path\"])\n geo.layoutChildren()\n entry[\"info\"] = {\"node\": geo.path()}\n entry[\"ok\"] = True\n elif action_type == \"import_camera\":\n cam_path = action[\"camera_path\"]\n ext = os.path.splitext(cam_path)[1].lower()\n parent = hou.node(\"/obj\")\n if ext == \".abc\":\n archive = parent.createNode(\"alembicarchive\", _unique_name(parent, \"abc_cam\"))\n archive.parm(\"fileName\").set(cam_path)\n try:\n archive.parm(\"buildHierarchy\").pressButton()\n except Exception:\n pass\n entry[\"info\"] = {\"node\": archive.path()}\n elif ext == \".fbx\":\n root, messages = hou.hipFile.importFBX(cam_path)\n entry[\"info\"] = {\"node\": root.path() if root else \"\", \"messages\": messages}\n else:\n entry[\"error\"] = \"unsupported camera extension: \" + ext\n results[\"actions\"].append(entry)\n continue\n entry[\"ok\"] = True\n elif action_type == \"export_fbx\":\n out = hou.node(\"/out\") or hou.node(\"/\").createNode(\"out\")\n rop = out.createNode(\"filmboxfbx\", _unique_name(out, \"fbx_export\"))\n rop.parm(\"sopoutput\").set(action[\"fbx_path\"])\n root_nodes = action.get(\"root_nodes\", \"\") or \"\"\n if root_nodes:\n try:\n rop.parm(\"startnode\").set(root_nodes.split(\",\")[0].strip())\n except Exception:\n pass\n rop.render()\n entry[\"info\"] = {\"node\": rop.path(), \"output\": action[\"fbx_path\"]}\n entry[\"ok\"] = True\n elif action_type == \"export_alembic\":\n out = hou.node(\"/out\") or hou.node(\"/\").createNode(\"out\")\n rop = out.createNode(\"alembic\", _unique_name(out, \"abc_export\"))\n rop.parm(\"filename\").set(action[\"abc_path\"])\n rop.parm(\"trange\").set(1)\n rop.parm(\"f1\").deleteAllKeyframes(); rop.parm(\"f1\").set(int(action.get(\"frame_start\", 1)))\n rop.parm(\"f2\").deleteAllKeyframes(); rop.parm(\"f2\").set(int(action.get(\"frame_end\", 100)))\n root_nodes = action.get(\"root_nodes\", \"\") or \"\"\n if root_nodes:\n first_root = root_nodes.split(\",\")[0].strip()\n try:\n rop.parm(\"root\").set(first_root)\n except Exception:\n pass\n rop.render()\n entry[\"info\"] = {\"node\": rop.path(), \"output\": action[\"abc_path\"]}\n entry[\"ok\"] = True\n elif action_type == \"export_camera_alembic\":\n out = hou.node(\"/out\") or hou.node(\"/\").createNode(\"out\")\n rop = out.createNode(\"alembic\", _unique_name(out, \"abc_cam_export\"))\n rop.parm(\"filename\").set(action[\"abc_path\"])\n rop.parm(\"trange\").set(1)\n rop.parm(\"f1\").deleteAllKeyframes(); rop.parm(\"f1\").set(int(action.get(\"frame_start\", 1)))\n rop.parm(\"f2\").deleteAllKeyframes(); rop.parm(\"f2\").set(int(action.get(\"frame_end\", 100)))\n cams = action.get(\"camera_nodes\", \"\") or \"\"\n first_cam = cams.split(\",\")[0].strip() if cams else \"\"\n if first_cam:\n try:\n rop.parm(\"root\").set(first_cam)\n except Exception:\n pass\n rop.render()\n entry[\"info\"] = {\"node\": rop.path(), \"output\": action[\"abc_path\"]}\n entry[\"ok\"] = True\n elif action_type == \"bake_animation\":\n node_str = action.get(\"nodes\", \"\") or \"\"\n targets = [n.strip() for n in node_str.split(\",\") if n.strip()]\n fs = int(action.get(\"frame_start\", 1))\n fe = int(action.get(\"frame_end\", 100))\n sample_by = float(action.get(\"sample_by\", 1.0))\n baked = []\n for tpath in targets:\n tnode = hou.node(tpath)\n if tnode is None:\n continue\n for parm in tnode.parms():\n if not parm.isTimeDependent():\n continue\n keys = []\n f = float(fs)\n while f <= fe:\n val = parm.evalAtFrame(f)\n k = hou.Keyframe()\n k.setFrame(f)\n try:\n k.setValue(val)\n except Exception:\n pass\n keys.append(k)\n f += sample_by\n try:\n parm.deleteAllKeyframes()\n parm.setKeyframes(keys)\n baked.append(parm.path())\n except Exception:\n pass\n entry[\"info\"] = {\"baked_parms\": baked}\n entry[\"ok\"] = True\n elif action_type == \"custom_python\":\n user_code = action.get(\"python_code\", \"\")\n ctx = {\"hou\": hou, \"action\": action, \"os\": os, \"json\": json}\n exec(user_code, ctx)\n entry[\"ok\"] = True\n else:\n entry[\"error\"] = \"unknown action type\"\n except Exception as e:\n entry[\"error\"] = str(e)\n results[\"actions\"].append(entry)\n\nwith open(results_path, \"w\") as f:\n json.dump(results, f)\n'''\n\ndef _parse_houdini_env(path):\n env = {}\n if not path or not os.path.isfile(path):\n return env\n with open(path, 'r') as f:\n for line in f:\n line = line.strip()\n if not line or line.startswith('#'):\n continue\n if '=' in line:\n key, val = line.split('=', 1)\n env[key.strip()] = val.strip()\n return env\n\ndef _parse_bat_env(path):\n env = {}\n if not path or not os.path.isfile(path):\n return env\n with open(path, 'r') as f:\n for line in f:\n line = line.strip()\n lower = line.lower()\n if lower.startswith('set ') and '=' in line:\n rest = line[4:]\n key, val = rest.split('=', 1)\n env[key.strip()] = val.strip()\n return env\n\ndef _build_env(bat_file, houdini_env_file):\n env = os.environ.copy()\n houdini_vars = _parse_houdini_env(houdini_env_file)\n bat_vars = _parse_bat_env(bat_file)\n for k, v in houdini_vars.items():\n for ek, ev in env.items():\n v = v.replace(f'%{ek}%', ev)\n env[k] = v\n for k, v in bat_vars.items():\n for ek, ev in env.items():\n v = v.replace(f'%{ek}%', ev)\n env[k] = v\n return env\n\nasync def on_parameter_changed(self, name, value):\n if name == 'houdini_version' and value in VERSION_PATHS:\n self.set_parameter('hython.exe', VERSION_PATHS[value])\n\ndef _fail(self, msg):\n return {'success': False, 'stdout': '', 'stderr': msg, 'exit_code': -1, 'executed_actions': [], 'skipped_actions': []}\n\nasync def _set_outputs(self, result):\n for k, v in result.items():\n await self.set_output(k, v)\n await self.set_output('exec_out', True)\n\nasync def execute(self, inputs):\n version = inputs.get('houdini_version') or self.get_parameter('houdini_version', '20.5.445')\n hython = inputs.get('hython.exe') or self.get_parameter('hython.exe', '')\n if not hython and version in VERSION_PATHS:\n hython = VERSION_PATHS[version]\n bat_file = inputs.get('bat_file') or self.get_parameter('bat_file', '')\n houdini_env_file = inputs.get('houdini_env_file') or self.get_parameter('houdini_env_file', '')\n hip_file = inputs.get('hip_file') or self.get_parameter('hip_file', '')\n actions = inputs.get('actions') or []\n\n if not isinstance(actions, list):\n actions = [actions]\n\n env = _build_env(bat_file, houdini_env_file)\n env_sources = []\n if bat_file:\n env_sources.append(f'bat: {bat_file}')\n if houdini_env_file:\n env_sources.append(f'houdini.env: {houdini_env_file}')\n if env_sources:\n self.log_info(f'Environment loaded from: {\" + \".join(env_sources)}')\n\n planned = []\n skipped = []\n for action in actions:\n if not isinstance(action, dict):\n skipped.append({'action': action, 'reason': 'not a dict'})\n continue\n action_type = action.get('type', '')\n if action_type == 'open_hip':\n if not action.get('hip_path'):\n skipped.append({'action': action, 'reason': 'hip_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'save_hip':\n if not action.get('hip_path'):\n skipped.append({'action': action, 'reason': 'hip_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'new_hip':\n planned.append(action)\n elif action_type == 'scene_info':\n planned.append(action)\n elif action_type == 'set_frame_range':\n planned.append(action)\n elif action_type == 'import_obj':\n if not action.get('obj_path'):\n skipped.append({'action': action, 'reason': 'obj_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'import_fbx':\n if not action.get('fbx_path'):\n skipped.append({'action': action, 'reason': 'fbx_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'import_alembic':\n if not action.get('abc_path'):\n skipped.append({'action': action, 'reason': 'abc_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'import_camera':\n if not action.get('camera_path'):\n skipped.append({'action': action, 'reason': 'camera_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'export_fbx':\n if not action.get('fbx_path'):\n skipped.append({'action': action, 'reason': 'fbx_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'export_alembic':\n if not action.get('abc_path'):\n skipped.append({'action': action, 'reason': 'abc_path is empty'})\n continue\n planned.append(action)\n elif action_type == 'export_camera_alembic':\n if not action.get('abc_path') or not action.get('camera_nodes'):\n skipped.append({'action': action, 'reason': 'abc_path or camera_nodes is empty'})\n continue\n planned.append(action)\n elif action_type == 'bake_animation':\n if not action.get('nodes'):\n skipped.append({'action': action, 'reason': 'nodes is empty'})\n continue\n planned.append(action)\n elif action_type == 'custom_python':\n if not action.get('python_code'):\n skipped.append({'action': action, 'reason': 'python_code is empty'})\n continue\n planned.append(action)\n else:\n skipped.append({'action': action, 'reason': f'unknown action type: {action_type}'})\n\n if skipped:\n for s in skipped:\n self.log_error(f'Action skipped: {s[\"reason\"]}')\n result = _fail(self, f'{len(skipped)} action(s) skipped due to validation errors')\n result['skipped_actions'] = skipped\n await _set_outputs(self, result)\n return result\n\n if not hython:\n msg = 'hython.exe path is not set. Fill in the hython.exe input or select a Houdini version.'\n self.log_error(msg)\n result = _fail(self, msg)\n await _set_outputs(self, result)\n return result\n if not os.path.isfile(hython):\n msg = f'hython not found: \"{hython}\". Check that Houdini is installed at that path.'\n self.log_error(msg)\n result = _fail(self, msg)\n await _set_outputs(self, result)\n return result\n\n payload = {'hip_file': hip_file, 'actions': planned}\n payload_file = tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False)\n script_file = tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False)\n results_file = tempfile.NamedTemporaryFile(mode='w', suffix='_results.json', delete=False)\n results_file.close()\n try:\n json.dump(payload, payload_file)\n payload_file.close()\n script_file.write(HOUDINI_RUNNER_SCRIPT)\n script_file.close()\n\n cmd = [hython, script_file.name, payload_file.name, results_file.name]\n self.log_info(f'Running Houdini {version}: {\" \".join(cmd)}')\n\n proc = subprocess.run(cmd, capture_output=True, text=True, timeout=600, env=env)\n\n executed = []\n houdini_errors = []\n try:\n with open(results_file.name, 'r') as rf:\n hou_results = json.load(rf)\n for ar in hou_results.get('actions', []):\n if ar.get('ok'):\n merged = dict(planned[ar['index']])\n if 'info' in ar:\n merged['info'] = ar['info']\n executed.append(merged)\n else:\n houdini_errors.append(f'Action {ar[\"index\"]} ({ar[\"type\"]}): {ar[\"error\"]}')\n houdini_errors.extend(hou_results.get('errors', []))\n except Exception:\n pass\n\n ok = proc.returncode == 0 and not houdini_errors\n\n if proc.returncode != 0 and not houdini_errors and proc.stderr:\n houdini_errors.append(f'Houdini process failed with exit code {proc.returncode}')\n\n for err in houdini_errors:\n self.log_error(err)\n\n result = {\n 'success': ok,\n 'stdout': proc.stdout,\n 'stderr': proc.stderr,\n 'exit_code': proc.returncode,\n 'executed_actions': executed,\n 'skipped_actions': [],\n }\n await _set_outputs(self, result)\n\n if ok:\n self.log_info(f'Houdini completed successfully. {len(executed)} actions executed.')\n else:\n self.log_error(f'Houdini run failed. {len(executed)}/{len(planned)} actions succeeded.')\n\n return result\n except Exception as e:\n self.log_error(f'Houdini execution failed: {e}')\n result = _fail(self, str(e))\n await _set_outputs(self, result)\n return result\n finally:\n for f in [payload_file.name, script_file.name, results_file.name]:\n try:\n os.unlink(f)\n except Exception:\n pass"
85
+ }