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,22 @@
1
+ {
2
+ "node_id": "maya_action_export_alembic",
3
+ "name": "Maya Action: Export Alembic",
4
+ "description": "Creates a Maya action to export geometry as an Alembic (.abc) cache. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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
+ { "name": "uvWrite", "type": "bool", "widget_type": "checkbox", "default": true },
15
+ { "name": "worldSpace", "type": "bool", "widget_type": "checkbox", "default": true }
16
+ ],
17
+ "outputs": [
18
+ { "name": "exec_out", "type": "exec" },
19
+ { "name": "actions_out", "type": "list" }
20
+ ],
21
+ "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\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 uvWrite = inputs.get('uvWrite')\n if uvWrite is None:\n uvWrite = self.get_parameter('uvWrite', True)\n worldSpace = inputs.get('worldSpace')\n if worldSpace is None:\n worldSpace = self.get_parameter('worldSpace', True)\n\n action = {\n 'type': 'export_alembic',\n 'abc_path': abc_path,\n 'root_nodes': root_nodes,\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end),\n 'uvWrite': bool(uvWrite),\n 'worldSpace': bool(worldSpace)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_alembic action -> {abc_path} (frames {frame_start}-{frame_end})')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
22
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "node_id": "maya_action_export_camera_alembic",
3
+ "name": "Maya Action: Export Camera Alembic",
4
+ "description": "Creates a Maya action to export one or more cameras as an Alembic (.abc) cache. Provide camera transform names (comma-separated). Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\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\n action = {\n 'type': 'export_camera_alembic',\n 'abc_path': abc_path,\n 'camera_nodes': camera_nodes,\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_camera_alembic action -> {abc_path} (frames {frame_start}-{frame_end})')\n\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": "maya_action_export_fbx",
3
+ "name": "Maya Action: Export FBX",
4
+ "description": "Creates a Maya action to export the scene (or selected nodes) as an FBX file. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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": "selection_only", "type": "bool", "widget_type": "checkbox", "default": false }
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\n fbx_path = inputs.get('fbx_path') or self.get_parameter('fbx_path', '')\n selection_only = inputs.get('selection_only')\n if selection_only is None:\n selection_only = self.get_parameter('selection_only', False)\n\n action = {\n 'type': 'export_fbx',\n 'fbx_path': fbx_path,\n 'selection_only': bool(selection_only)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added export_fbx action -> {fbx_path}')\n\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": "maya_action_import_alembic",
3
+ "name": "Maya Action: Import Alembic",
4
+ "description": "Creates a Maya action to import an Alembic (.abc) cache file directly into the scene. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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
+ ],
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\n abc_path = inputs.get('abc_path') or self.get_parameter('abc_path', '')\n\n action = {\n 'type': 'import_alembic',\n 'abc_path': abc_path\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_alembic action for: {abc_path}')\n\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": "maya_action_import_camera",
3
+ "name": "Maya Action: Import Camera",
4
+ "description": "Creates a Maya action that imports a camera from an external file (.ma, .mb, .fbx, or .abc). Auto-detects the file type from extension. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\n camera_path = inputs.get('camera_path') or self.get_parameter('camera_path', '')\n\n action = {\n 'type': 'import_camera',\n 'camera_path': camera_path\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_camera action -> {camera_path}')\n\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": "maya_action_import_fbx",
3
+ "name": "Maya Action: Import FBX",
4
+ "description": "Creates a Maya action to import an FBX file. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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
+ ],
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\n fbx_path = inputs.get('fbx_path') or self.get_parameter('fbx_path', '')\n\n action = {\n 'type': 'import_fbx',\n 'fbx_path': fbx_path\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_fbx action for: {fbx_path}')\n\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": "maya_action_import_obj",
3
+ "name": "Maya Action: Import OBJ",
4
+ "description": "Creates a Maya action to import an OBJ file. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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
+ ],
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\n obj_path = inputs.get('obj_path') or self.get_parameter('obj_path', '')\n\n action = {\n 'type': 'import_obj',\n 'obj_path': obj_path\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added import_obj action for: {obj_path}')\n\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": "maya_action_list_references",
3
+ "name": "Maya Action: List References",
4
+ "description": "Creates a Maya action that queries all references in the current scene. The list of reference nodes, file paths, namespaces, and loaded state is written into the action's 'info' field, available via the executed_actions output of the Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\n action = {\n 'type': 'list_references'\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info('Added list_references action')\n\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,16 @@
1
+ {
2
+ "node_id": "maya_action_new_scene",
3
+ "name": "Maya Action: New Scene",
4
+ "description": "Creates a Maya action that opens a new empty scene (discarding any current scene). Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\n action = {\n 'type': 'new_scene'\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info('Added new_scene action')\n\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": "maya_action_open_scene",
3
+ "name": "Maya Action: Open Scene",
4
+ "description": "Creates a Maya action to open a .ma/.mb scene file. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "scene_path", "type": "string", "widget_type": "file", "default": "" },
11
+ { "name": "force", "type": "bool", "widget_type": "checkbox", "default": true }
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\n scene_path = inputs.get('scene_path') or self.get_parameter('scene_path', '')\n force = inputs.get('force')\n if force is None:\n force = self.get_parameter('force', True)\n\n action = {\n 'type': 'open_scene',\n 'scene_path': scene_path,\n 'force': force\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added open_scene action for: {scene_path}')\n\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,22 @@
1
+ {
2
+ "node_id": "maya_action_playblast",
3
+ "name": "Maya Action: Playblast",
4
+ "description": "Creates a Maya action to render a playblast (viewport capture) of the current scene. Note: playblast in Maya headless/batch mode has limitations and may require a display. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "output_path", "type": "string", "widget_type": "file_save", "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": "width", "type": "int", "widget_type": "int", "default": 1920 },
14
+ { "name": "height", "type": "int", "widget_type": "int", "default": 1080 },
15
+ { "name": "format", "type": "string", "widget_type": "dropdown", "options": ["qt", "avi", "image"], "default": "qt" }
16
+ ],
17
+ "outputs": [
18
+ { "name": "exec_out", "type": "exec" },
19
+ { "name": "actions_out", "type": "list" }
20
+ ],
21
+ "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\n output_path = inputs.get('output_path') or self.get_parameter('output_path', '')\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 width = inputs.get('width')\n if width is None:\n width = self.get_parameter('width', 1920)\n height = inputs.get('height')\n if height is None:\n height = self.get_parameter('height', 1080)\n fmt = inputs.get('format') or self.get_parameter('format', 'qt')\n\n action = {\n 'type': 'playblast',\n 'output_path': output_path,\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end),\n 'width': int(width),\n 'height': int(height),\n 'format': fmt\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added playblast action -> {output_path} (frames {frame_start}-{frame_end}, {width}x{height})')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
22
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "maya_action_reference_alembic",
3
+ "name": "Maya Action: Reference Alembic",
4
+ "description": "Creates a Maya action to reference an Alembic (.abc) file into the scene. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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": "namespace", "type": "string", "widget_type": "text", "default": "abc_ref" }
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\n abc_path = inputs.get('abc_path') or self.get_parameter('abc_path', '')\n namespace = inputs.get('namespace') or self.get_parameter('namespace', 'abc_ref')\n\n action = {\n 'type': 'reference_alembic',\n 'abc_path': abc_path,\n 'namespace': namespace\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added reference_alembic action for: {abc_path} (ns: {namespace})')\n\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": "maya_action_reference_scene",
3
+ "name": "Maya Action: Reference Scene",
4
+ "description": "Creates a Maya action to reference another Maya scene (.ma/.mb) into the current scene with namespace support. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "scene_path", "type": "string", "widget_type": "file", "default": "" },
11
+ { "name": "namespace", "type": "string", "widget_type": "text", "default": "ref" }
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\n scene_path = inputs.get('scene_path') or self.get_parameter('scene_path', '')\n namespace = inputs.get('namespace') or self.get_parameter('namespace', 'ref')\n\n action = {\n 'type': 'reference_scene',\n 'scene_path': scene_path,\n 'namespace': namespace\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added reference_scene action for: {scene_path} (ns: {namespace})')\n\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": "maya_action_save_scene",
3
+ "name": "Maya Action: Save Scene",
4
+ "description": "Creates a Maya action to save the current scene. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "save_scene_path", "type": "string", "widget_type": "file_save", "default": "" },
11
+ { "name": "file_type", "type": "string", "widget_type": "dropdown", "options": ["mayaAscii", "mayaBinary"], "default": "mayaAscii" }
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\n save_scene_path = inputs.get('save_scene_path') or self.get_parameter('save_scene_path', '')\n file_type = inputs.get('file_type') or self.get_parameter('file_type', 'mayaAscii')\n\n action = {\n 'type': 'save_scene',\n 'save_scene_path': save_scene_path,\n 'file_type': file_type\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added save_scene action -> {save_scene_path} ({file_type})')\n\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": "maya_action_scene_info",
3
+ "name": "Maya Action: Scene Info",
4
+ "description": "Creates a Maya action that queries the current scene for frame range, FPS, units, renderer, project path, and scene path. The results are written back into the action dict so they can be read from executed_actions output on the Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\n action = {\n 'type': 'scene_info'\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info('Added scene_info action')\n\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": "maya_action_set_aovs",
3
+ "name": "Maya Action: Set AOVs",
4
+ "description": "Creates a Maya action that ensures a list of AOVs (arbitrary output variables / render passes) exists for the active renderer. Currently supports Arnold (mtoa) and Redshift. Provide AOV names comma-separated (e.g. 'diffuse,specular,N,P,Z'). Chain via actions_in/actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "renderer", "type": "string", "widget_type": "dropdown", "options": ["arnold", "redshift"], "default": "arnold" },
11
+ { "name": "aovs", "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\n renderer = inputs.get('renderer') or self.get_parameter('renderer', 'arnold')\n aovs = inputs.get('aovs') or self.get_parameter('aovs', '')\n\n action = {\n 'type': 'set_aovs',\n 'renderer': renderer,\n 'aovs': aovs\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added set_aovs action -> {renderer}: {aovs}')\n\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": "maya_action_set_frame_range",
3
+ "name": "Maya Action: Set Frame Range",
4
+ "description": "Creates a Maya action that sets the playback frame range (animation start/end and playback start/end) of the current scene. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\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\n action = {\n 'type': 'set_frame_range',\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added set_frame_range action -> {frame_start}-{frame_end}')\n\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,23 @@
1
+ {
2
+ "node_id": "maya_action_set_render_settings",
3
+ "name": "Maya Action: Set Render Settings",
4
+ "description": "Creates a Maya action that configures render globals: renderer, resolution, frame range, image format, and output filename prefix. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "inputs": [
8
+ { "name": "exec_in", "type": "exec" },
9
+ { "name": "actions_in", "type": "list", "default": [] },
10
+ { "name": "renderer", "type": "string", "widget_type": "dropdown", "options": ["arnold", "vray", "redshift", "renderman", "mayaSoftware", "mayaHardware2"], "default": "arnold" },
11
+ { "name": "width", "type": "int", "widget_type": "int", "default": 1920 },
12
+ { "name": "height", "type": "int", "widget_type": "int", "default": 1080 },
13
+ { "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
14
+ { "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 },
15
+ { "name": "image_format", "type": "string", "widget_type": "text", "default": "exr" },
16
+ { "name": "file_prefix", "type": "string", "widget_type": "text", "default": "" }
17
+ ],
18
+ "outputs": [
19
+ { "name": "exec_out", "type": "exec" },
20
+ { "name": "actions_out", "type": "list" }
21
+ ],
22
+ "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\n renderer = inputs.get('renderer') or self.get_parameter('renderer', 'arnold')\n width = inputs.get('width')\n if width is None:\n width = self.get_parameter('width', 1920)\n height = inputs.get('height')\n if height is None:\n height = self.get_parameter('height', 1080)\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 image_format = inputs.get('image_format') or self.get_parameter('image_format', 'exr')\n file_prefix = inputs.get('file_prefix') or self.get_parameter('file_prefix', '')\n\n action = {\n 'type': 'set_render_settings',\n 'renderer': renderer,\n 'width': int(width),\n 'height': int(height),\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end),\n 'image_format': image_format,\n 'file_prefix': file_prefix\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added set_render_settings action -> {renderer} {width}x{height} frames {frame_start}-{frame_end}')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
23
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "node_id": "maya_get_action_result",
3
+ "name": "Maya: Get Action Result",
4
+ "description": "Extracts a single action result from the Maya Headless 'executed_actions' output. Select by action type (first match) or by index. Outputs the matched action dict, its 'info' field (if present), and key scalar fields so they can be wired into downstream nodes without manual list filtering.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
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\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 else:\n self.log_error(f'Executed action at index {index} is not a dict')\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 ('fbx_path', 'abc_path', 'obj_path', 'scene_path', 'save_scene_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,27 @@
1
+ {
2
+ "node_id": "maya_headless",
3
+ "name": "Maya Headless",
4
+ "description": "Launches Maya in headless (batch) mode, optionally opens a scene file, executes a list of Maya Actions collected from upstream action nodes, and returns the results. Supports custom environment variables via .bat launcher or Maya.env file.",
5
+ "category": "DCCs",
6
+ "icon_path": "icons/maya_icon.jpg",
7
+ "use_exec": true,
8
+ "inputs": [
9
+ { "name": "exec_in", "type": "exec" },
10
+ { "name": "maya_version", "type": "string", "widget_type": "dropdown", "options": ["2022", "2024", "2025", "2026"], "default": "2024" },
11
+ { "name": "mayapy.exe", "type": "string", "widget_type": "text", "default": "C:/Program Files/Autodesk/Maya2024/bin/mayapy.exe" },
12
+ { "name": "bat_file", "type": "string", "widget_type": "file", "default": "" },
13
+ { "name": "maya_env_file", "type": "string", "widget_type": "file", "default": "" },
14
+ { "name": "scene_file", "type": "string", "widget_type": "file", "default": "" },
15
+ { "name": "actions", "type": "list" }
16
+ ],
17
+ "outputs": [
18
+ { "name": "exec_out", "type": "exec" },
19
+ { "name": "success", "type": "bool" },
20
+ { "name": "stdout", "type": "string" },
21
+ { "name": "stderr", "type": "string" },
22
+ { "name": "exit_code", "type": "int" },
23
+ { "name": "executed_actions", "type": "list" },
24
+ { "name": "skipped_actions", "type": "list" }
25
+ ],
26
+ "python_code": "import subprocess, json, tempfile, os\n\nVERSION_PATHS = {\n '2022': 'C:/Program Files/Autodesk/Maya2022/bin/mayapy.exe',\n '2024': 'C:/Program Files/Autodesk/Maya2024/bin/mayapy.exe',\n '2025': 'C:/Program Files/Autodesk/Maya2025/bin/mayapy.exe',\n '2026': 'C:/Program Files/Autodesk/Maya2026/bin/mayapy.exe',\n}\n\nMAYA_RUNNER_SCRIPT = '''import json, sys, os\nimport maya.cmds as cmds\nimport maya.standalone\nmaya.standalone.initialize()\n\nwith open(sys.argv[1], \"r\") as f:\n payload = json.load(f)\n\nresults_path = sys.argv[2]\nresults = {\"actions\": [], \"errors\": []}\n\nscene_file = payload.get(\"scene_file\", \"\")\nif scene_file:\n try:\n cmds.file(scene_file, open=True, force=True)\n except Exception as e:\n results[\"errors\"].append(\"Failed to open scene: \" + str(e))\n with open(results_path, \"w\") as f:\n json.dump(results, f)\n cmds.quit(force=True)\n sys.exit(1)\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_scene\":\n cmds.file(action[\"scene_path\"], open=True, force=action.get(\"force\", True))\n entry[\"ok\"] = True\n elif action_type == \"import_obj\":\n cmds.file(action[\"obj_path\"], i=True, type=\"OBJ\", ignoreVersion=True)\n entry[\"ok\"] = True\n elif action_type == \"import_fbx\":\n cmds.loadPlugin(\"fbxmaya\", quiet=True)\n cmds.file(action[\"fbx_path\"], i=True, type=\"FBX\", ignoreVersion=True)\n entry[\"ok\"] = True\n elif action_type == \"export_fbx\":\n cmds.loadPlugin(\"fbxmaya\", quiet=True)\n sel_only = bool(action.get(\"selection_only\", False))\n cmds.file(action[\"fbx_path\"], force=True, options=\"v=0\", typ=\"FBX export\", pr=True, es=sel_only, ea=(not sel_only))\n entry[\"ok\"] = True\n elif action_type == \"new_scene\":\n cmds.file(new=True, force=True)\n entry[\"ok\"] = True\n elif action_type == \"list_references\":\n refs = []\n try:\n ref_nodes = cmds.ls(type=\"reference\") or []\n except Exception:\n ref_nodes = []\n for rn in ref_nodes:\n if rn in (\"sharedReferenceNode\", \"_UNKNOWN_REF_NODE_\"):\n continue\n rinfo = {\"reference_node\": rn}\n try:\n rinfo[\"file\"] = cmds.referenceQuery(rn, filename=True)\n except Exception as e:\n rinfo[\"file\"] = \"\"\n rinfo[\"file_error\"] = str(e)\n try:\n rinfo[\"namespace\"] = cmds.referenceQuery(rn, namespace=True)\n except Exception:\n rinfo[\"namespace\"] = \"\"\n try:\n rinfo[\"loaded\"] = cmds.referenceQuery(rn, isLoaded=True)\n except Exception:\n rinfo[\"loaded\"] = False\n refs.append(rinfo)\n entry[\"info\"] = {\"references\": refs, \"count\": len(refs)}\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 cmds.playbackOptions(animationStartTime=fs, animationEndTime=fe, minTime=fs, maxTime=fe)\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 if ext == \".abc\":\n cmds.loadPlugin(\"AbcImport\", quiet=True)\n cmds.file(cam_path, i=True, type=\"Alembic\", ignoreVersion=True)\n elif ext == \".fbx\":\n cmds.loadPlugin(\"fbxmaya\", quiet=True)\n cmds.file(cam_path, i=True, type=\"FBX\", ignoreVersion=True)\n elif ext in (\".ma\", \".mb\"):\n cmds.file(cam_path, i=True, ignoreVersion=True)\n else:\n cmds.file(cam_path, i=True, ignoreVersion=True)\n entry[\"ok\"] = True\n elif action_type == \"export_camera_alembic\":\n cmds.loadPlugin(\"AbcExport\", quiet=True)\n fs = int(action.get(\"frame_start\", 1))\n fe = int(action.get(\"frame_end\", 100))\n job_args = \"-frameRange {0} {1} -worldSpace -dataFormat ogawa\".format(fs, fe)\n cams = action.get(\"camera_nodes\", \"\") or \"\"\n for c in cams.split(\",\"):\n c = c.strip()\n if c:\n job_args += \" -root \" + c\n job_args += \" -file \" + action[\"abc_path\"]\n cmds.AbcExport(j=job_args)\n entry[\"ok\"] = True\n elif action_type == \"playblast\":\n kwargs = {\n \"filename\": action[\"output_path\"],\n \"startTime\": int(action.get(\"frame_start\", 1)),\n \"endTime\": int(action.get(\"frame_end\", 100)),\n \"width\": int(action.get(\"width\", 1920)),\n \"height\": int(action.get(\"height\", 1080)),\n \"format\": action.get(\"format\", \"qt\"),\n \"forceOverwrite\": True,\n \"percent\": 100,\n \"viewer\": False,\n \"offScreen\": True,\n }\n cmds.playblast(**kwargs)\n entry[\"ok\"] = True\n elif action_type == \"set_render_settings\":\n renderer = action.get(\"renderer\", \"arnold\")\n try:\n cmds.setAttr(\"defaultRenderGlobals.currentRenderer\", renderer, type=\"string\")\n except Exception as _e:\n pass\n try:\n cmds.setAttr(\"defaultResolution.width\", int(action.get(\"width\", 1920)))\n cmds.setAttr(\"defaultResolution.height\", int(action.get(\"height\", 1080)))\n w = float(action.get(\"width\", 1920))\n h = float(action.get(\"height\", 1080))\n if h > 0:\n cmds.setAttr(\"defaultResolution.deviceAspectRatio\", w / h)\n except Exception as _e:\n pass\n try:\n cmds.setAttr(\"defaultRenderGlobals.startFrame\", float(action.get(\"frame_start\", 1)))\n cmds.setAttr(\"defaultRenderGlobals.endFrame\", float(action.get(\"frame_end\", 100)))\n cmds.setAttr(\"defaultRenderGlobals.animation\", 1)\n cmds.setAttr(\"defaultRenderGlobals.putFrameBeforeExt\", 1)\n cmds.setAttr(\"defaultRenderGlobals.extensionPadding\", 4)\n except Exception as _e:\n pass\n file_prefix = action.get(\"file_prefix\", \"\")\n if file_prefix:\n try:\n cmds.setAttr(\"defaultRenderGlobals.imageFilePrefix\", file_prefix, type=\"string\")\n except Exception as _e:\n pass\n image_format = action.get(\"image_format\", \"\")\n if image_format:\n try:\n if renderer == \"arnold\":\n cmds.loadPlugin(\"mtoa\", quiet=True)\n if cmds.objExists(\"defaultArnoldDriver\"):\n cmds.setAttr(\"defaultArnoldDriver.aiTranslator\", image_format, type=\"string\")\n else:\n fmt_map = {\"exr\": 40, \"png\": 32, \"jpg\": 8, \"jpeg\": 8, \"tif\": 3, \"tiff\": 3, \"iff\": 7, \"tga\": 19}\n if image_format.lower() in fmt_map:\n cmds.setAttr(\"defaultRenderGlobals.imageFormat\", fmt_map[image_format.lower()])\n except Exception as _e:\n pass\n entry[\"ok\"] = True\n elif action_type == \"assign_material\":\n mat = action[\"material\"]\n target_str = action.get(\"target_nodes\", \"\") or \"\"\n targets = [t.strip() for t in target_str.split(\",\") if t.strip()]\n if not targets:\n entry[\"error\"] = \"no target nodes provided\"\n elif not cmds.objExists(mat):\n entry[\"error\"] = \"material does not exist: \" + mat\n else:\n sg = mat\n if cmds.nodeType(mat) != \"shadingEngine\":\n sgs = cmds.listConnections(mat, type=\"shadingEngine\") or []\n if sgs:\n sg = sgs[0]\n else:\n sg = mat + \"SG\"\n if not cmds.objExists(sg):\n sg = cmds.sets(name=sg, renderable=True, noSurfaceShader=True, empty=True)\n cmds.connectAttr(mat + \".outColor\", sg + \".surfaceShader\", force=True)\n cmds.sets(targets, edit=True, forceElement=sg)\n entry[\"ok\"] = True\n elif action_type == \"create_render_layer\":\n try:\n import maya.app.renderSetup.model.renderSetup as renderSetup\n import maya.app.renderSetup.model.selector as selector\n rs = renderSetup.instance()\n layer = rs.createRenderLayer(action.get(\"layer_name\", \"renderLayer1\"))\n members_str = action.get(\"members\", \"\") or \"\"\n members = [m.strip() for m in members_str.split(\",\") if m.strip()]\n if members:\n coll = layer.createCollection(action.get(\"layer_name\", \"renderLayer1\") + \"_col\")\n sel = coll.getSelector()\n sel.setPattern(\" \".join(members))\n if bool(action.get(\"make_current\", True)):\n rs.switchToLayer(layer)\n entry[\"ok\"] = True\n except Exception as e:\n entry[\"error\"] = \"renderSetup failed: \" + str(e)\n elif action_type == \"set_aovs\":\n renderer = action.get(\"renderer\", \"arnold\")\n aovs_str = action.get(\"aovs\", \"\") or \"\"\n aov_names = [a.strip() for a in aovs_str.split(\",\") if a.strip()]\n if not aov_names:\n entry[\"error\"] = \"no aov names provided\"\n elif renderer == \"arnold\":\n try:\n cmds.loadPlugin(\"mtoa\", quiet=True)\n try:\n import mtoa.core as mtoa_core\n mtoa_core.createOptions()\n except Exception:\n if not cmds.objExists(\"defaultArnoldRenderOptions\"):\n cmds.createNode(\"aiOptions\", name=\"defaultArnoldRenderOptions\", skipSelect=True)\n from mtoa.aovs import AOVInterface\n ai = AOVInterface()\n existing = [a.name for a in ai.getAOVs()]\n created = []\n for name in aov_names:\n if name not in existing:\n ai.addAOV(name)\n created.append(name)\n entry[\"info\"] = {\"created\": created, \"existing\": existing}\n entry[\"ok\"] = True\n except Exception as e:\n entry[\"error\"] = \"arnold aov setup failed: \" + str(e)\n elif renderer == \"redshift\":\n try:\n cmds.loadPlugin(\"redshift4maya\", quiet=True)\n created = []\n for name in aov_names:\n node = cmds.rsCreateAov(type=name)\n created.append(node)\n entry[\"info\"] = {\"created\": created}\n entry[\"ok\"] = True\n except Exception as e:\n entry[\"error\"] = \"redshift aov setup failed: \" + str(e)\n else:\n entry[\"error\"] = \"unsupported renderer for aovs: \" + renderer\n elif action_type == \"bake_animation\":\n node_str = action.get(\"nodes\", \"\") or \"\"\n target_nodes = [n.strip() for n in node_str.split(\",\") if n.strip()]\n if not target_nodes:\n entry[\"error\"] = \"no target nodes provided\"\n else:\n cmds.bakeResults(\n target_nodes,\n simulation=bool(action.get(\"simulation\", True)),\n time=(int(action.get(\"frame_start\", 1)), int(action.get(\"frame_end\", 100))),\n sampleBy=float(action.get(\"sample_by\", 1.0)),\n disableImplicitControl=True,\n preserveOutsideKeys=True,\n sparseAnimCurveBake=False,\n removeBakedAttributeFromLayer=False,\n removeBakedAnimFromLayer=False,\n bakeOnOverrideLayer=False,\n minimizeRotation=True,\n controlPoints=False,\n shape=True\n )\n entry[\"ok\"] = True\n elif action_type == \"save_scene\":\n cmds.file(rename=action[\"save_scene_path\"])\n cmds.file(save=True, type=action.get(\"file_type\", \"mayaAscii\"))\n entry[\"ok\"] = True\n elif action_type == \"import_alembic\":\n cmds.loadPlugin(\"AbcImport\", quiet=True)\n cmds.file(action[\"abc_path\"], i=True, type=\"Alembic\", ignoreVersion=True)\n entry[\"ok\"] = True\n elif action_type == \"scene_info\":\n info = {}\n info[\"scene_path\"] = cmds.file(q=True, sceneName=True) or \"\"\n info[\"frame_start\"] = cmds.playbackOptions(q=True, minTime=True)\n info[\"frame_end\"] = cmds.playbackOptions(q=True, maxTime=True)\n info[\"fps\"] = cmds.currentUnit(q=True, time=True)\n info[\"linear_unit\"] = cmds.currentUnit(q=True, linear=True)\n info[\"renderer\"] = cmds.getAttr(\"defaultRenderGlobals.currentRenderer\") if cmds.objExists(\"defaultRenderGlobals\") else \"\"\n info[\"project_path\"] = cmds.workspace(q=True, rootDirectory=True) or \"\"\n entry[\"info\"] = info\n entry[\"ok\"] = True\n elif action_type == \"export_alembic\":\n cmds.loadPlugin(\"AbcExport\", quiet=True)\n job_args = \"-frameRange {0} {1}\".format(int(action.get(\"frame_start\", 1)), int(action.get(\"frame_end\", 100)))\n if action.get(\"uvWrite\", True):\n job_args += \" -uvWrite\"\n if action.get(\"worldSpace\", True):\n job_args += \" -worldSpace\"\n roots = action.get(\"root_nodes\", \"\")\n if roots:\n for r in roots.split(\",\"):\n r = r.strip()\n if r:\n job_args += \" -root \" + r\n job_args += \" -file \" + action[\"abc_path\"]\n cmds.AbcExport(j=job_args)\n entry[\"ok\"] = True\n elif action_type == \"reference_scene\":\n cmds.file(action[\"scene_path\"], reference=True, ignoreVersion=True, namespace=action.get(\"namespace\", \"ref\"))\n entry[\"ok\"] = True\n elif action_type == \"reference_alembic\":\n cmds.loadPlugin(\"AbcImport\", quiet=True)\n cmds.file(action[\"abc_path\"], reference=True, type=\"Alembic\", ignoreVersion=True, namespace=action.get(\"namespace\", \"abc_ref\"))\n entry[\"ok\"] = True\n elif action_type == \"custom_python\":\n user_code = action.get(\"python_code\", \"\")\n exec(user_code, {\"cmds\": cmds, \"action\": action, \"os\": os, \"json\": json})\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\ncmds.quit(force=True)\n'''\n\ndef _parse_maya_env(path):\n \"\"\"Parse a Maya.env file into a dict of env vars.\"\"\"\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 \"\"\"Parse SET commands from a .bat file into a dict of env vars.\"\"\"\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, maya_env_file):\n \"\"\"Merge current env with bat and Maya.env vars. bat takes precedence over Maya.env.\"\"\"\n env = os.environ.copy()\n maya_vars = _parse_maya_env(maya_env_file)\n bat_vars = _parse_bat_env(bat_file)\n # Maya.env first, then bat overrides\n for k, v in maya_vars.items():\n # Expand references to existing env vars like %PYTHONPATH%\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 == 'maya_version' and value in VERSION_PATHS:\n self.set_parameter('mayapy.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('maya_version') or self.get_parameter('maya_version', '2024')\n mayapy = inputs.get('mayapy.exe') or self.get_parameter('mayapy.exe', '')\n if not mayapy and version in VERSION_PATHS:\n mayapy = VERSION_PATHS[version]\n bat_file = inputs.get('bat_file') or self.get_parameter('bat_file', '')\n maya_env_file = inputs.get('maya_env_file') or self.get_parameter('maya_env_file', '')\n scene_file = inputs.get('scene_file') or self.get_parameter('scene_file', '')\n actions = inputs.get('actions') or []\n\n if not isinstance(actions, list):\n actions = [actions]\n\n # Build environment from bat and Maya.env\n env = _build_env(bat_file, maya_env_file)\n env_sources = []\n if bat_file:\n env_sources.append(f'bat: {bat_file}')\n if maya_env_file:\n env_sources.append(f'Maya.env: {maya_env_file}')\n if env_sources:\n self.log_info(f'Environment loaded from: {\" + \".join(env_sources)}')\n\n # Validate actions upfront\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_scene':\n if not action.get('scene_path'):\n skipped.append({'action': action, 'reason': 'scene_path is empty'})\n continue\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 == '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 == 'new_scene':\n planned.append(action)\n elif action_type == 'list_references':\n planned.append(action)\n elif action_type == 'set_frame_range':\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_camera_alembic':\n if not action.get('abc_path'):\n skipped.append({'action': action, 'reason': 'abc_path is empty'})\n continue\n if not action.get('camera_nodes'):\n skipped.append({'action': action, 'reason': 'camera_nodes is empty'})\n continue\n planned.append(action)\n elif action_type == 'playblast':\n if not action.get('output_path'):\n skipped.append({'action': action, 'reason': 'output_path 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 == 'set_render_settings':\n planned.append(action)\n elif action_type == 'assign_material':\n if not action.get('material'):\n skipped.append({'action': action, 'reason': 'material is empty'})\n continue\n if not action.get('target_nodes'):\n skipped.append({'action': action, 'reason': 'target_nodes is empty'})\n continue\n planned.append(action)\n elif action_type == 'create_render_layer':\n if not action.get('layer_name'):\n skipped.append({'action': action, 'reason': 'layer_name is empty'})\n continue\n planned.append(action)\n elif action_type == 'set_aovs':\n if not action.get('aovs'):\n skipped.append({'action': action, 'reason': 'aovs is empty'})\n continue\n planned.append(action)\n elif action_type == 'save_scene':\n if not action.get('save_scene_path'):\n skipped.append({'action': action, 'reason': 'save_scene_path is required'})\n continue\n planned.append(action)\n elif action_type == 'scene_info':\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 == 'reference_scene':\n if not action.get('scene_path'):\n skipped.append({'action': action, 'reason': 'scene_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 == 'reference_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 == '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 # Write structured payload and results file\n payload = {'scene_file': scene_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(MAYA_RUNNER_SCRIPT)\n script_file.close()\n\n cmd = [mayapy, script_file.name, payload_file.name, results_file.name]\n self.log_info(f'Running Maya {version}: {\" \".join(cmd)}')\n\n proc = subprocess.run(cmd, capture_output=True, text=True, timeout=600, env=env)\n\n # Parse structured results from Maya\n executed = []\n maya_errors = []\n try:\n with open(results_file.name, 'r') as rf:\n maya_results = json.load(rf)\n for ar in maya_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 maya_errors.append(f'Action {ar[\"index\"]} ({ar[\"type\"]}): {ar[\"error\"]}')\n maya_errors.extend(maya_results.get('errors', []))\n except Exception:\n pass\n\n # Maya often writes warnings and diagnostics to stderr even when the run\n # succeeds. Treat stderr as informational unless the process failed or\n # the structured runner reported action errors.\n ok = proc.returncode == 0 and not maya_errors\n\n if proc.returncode != 0 and not maya_errors and proc.stderr:\n maya_errors.append(f'Maya process failed with exit code {proc.returncode}')\n\n for err in maya_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'Maya completed successfully. {len(executed)} actions executed.')\n else:\n self.log_error(f'Maya run failed. {len(executed)}/{len(planned)} actions succeeded.')\n\n return result\n except Exception as e:\n self.log_error(f'Maya 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"
27
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "node_id": "mcp_call_tool",
3
+ "name": "MCP: Call Tool",
4
+ "description": "Invoke a tool on a registered MCP server. Arguments are passed as a JSON string and parsed into a dict before the call. Outputs the raw result, a pre-serialised JSON string for downstream LLM prompts, and an is_error flag for branching. Requires an upstream MCP: Server Init node with a matching server_name.",
5
+ "category": "MCP",
6
+ "icon_path": null,
7
+ "use_exec": true,
8
+ "inputs": [
9
+ {"name": "server_name", "type": "string", "widget_type": "text", "default": "default"},
10
+ {"name": "tool_name", "type": "string", "widget_type": "text", "default": ""},
11
+ {"name": "arguments_json", "type": "string", "widget_type": "text", "default": "{}"}
12
+ ],
13
+ "outputs": [
14
+ {"name": "result", "type": "any"},
15
+ {"name": "result_json", "type": "string"},
16
+ {"name": "is_error", "type": "bool"}
17
+ ],
18
+ "python_code": "import json\nfrom src.nodes.base import BaseNode\nfrom src.runtime import mcp_runtime\n\nclass MCPCallToolNode(BaseNode):\n name = \"MCP: Call Tool\"\n category = \"MCP\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"server_name\", \"string\", widget_type=\"text\", default=\"default\")\n self.add_input(\"tool_name\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"arguments_json\", \"string\", widget_type=\"text\", default=\"{}\")\n self.add_output(\"result\", \"any\")\n self.add_output(\"result_json\", \"string\")\n self.add_output(\"is_error\", \"bool\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs):\n server_name = (inputs.get(\"server_name\") or \"default\").strip() or \"default\"\n tool_name = (inputs.get(\"tool_name\") or \"\").strip()\n if not tool_name:\n self.log_error(\"tool_name is required.\")\n return {\"result\": None, \"result_json\": \"\", \"is_error\": True, \"exec_out\": True}\n\n raw_args = inputs.get(\"arguments_json\") or \"{}\"\n if isinstance(raw_args, dict):\n arguments = raw_args\n else:\n try:\n arguments = json.loads(raw_args) if raw_args.strip() else {}\n except json.JSONDecodeError as exc:\n self.log_error(f\"arguments_json is not valid JSON: {exc}. Defaulting to {{}}.\")\n arguments = {}\n if not isinstance(arguments, dict):\n self.log_error(\"arguments_json must decode to a JSON object. Defaulting to {}.\")\n arguments = {}\n\n try:\n result = await mcp_runtime.call_tool(server_name, tool_name, arguments)\n except Exception as exc:\n self.log_error(f\"MCP call_tool failed: {exc}\")\n return {\"result\": None, \"result_json\": \"\", \"is_error\": True, \"exec_out\": True}\n\n is_error = bool(result.get(\"is_error\"))\n if is_error:\n self.log_error(f\"MCP tool '{tool_name}' returned an error.\")\n else:\n self.log_info(f\"MCP tool '{tool_name}' completed.\")\n return {\n \"result\": result.get(\"result\"),\n \"result_json\": result.get(\"result_json\") or \"\",\n \"is_error\": is_error,\n \"exec_out\": True,\n }\n\ndef register_node():\n return MCPCallToolNode\n"
19
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "node_id": "mcp_list_tools",
3
+ "name": "MCP: List Tools",
4
+ "description": "List every tool exposed by a registered MCP server. Outputs the full tool catalog, just the names (handy for a for-each loop), the per-tool inputSchemas, and the server capabilities. Requires an upstream MCP: Server Init node with a matching server_name.",
5
+ "category": "MCP",
6
+ "icon_path": null,
7
+ "use_exec": true,
8
+ "inputs": [
9
+ {"name": "server_name", "type": "string", "widget_type": "text", "default": "default"}
10
+ ],
11
+ "outputs": [
12
+ {"name": "tools", "type": "list"},
13
+ {"name": "names", "type": "list"},
14
+ {"name": "schemas", "type": "list"},
15
+ {"name": "count", "type": "int"}
16
+ ],
17
+ "python_code": "from src.nodes.base import BaseNode\nfrom src.runtime import mcp_runtime\n\nclass MCPListToolsNode(BaseNode):\n name = \"MCP: List Tools\"\n category = \"MCP\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"server_name\", \"string\", widget_type=\"text\", default=\"default\")\n self.add_output(\"tools\", \"list\")\n self.add_output(\"names\", \"list\")\n self.add_output(\"schemas\", \"list\")\n self.add_output(\"count\", \"int\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs):\n server_name = (inputs.get(\"server_name\") or \"default\").strip() or \"default\"\n try:\n tools = await mcp_runtime.list_tools(server_name)\n except Exception as exc:\n self.log_error(f\"MCP list_tools failed for '{server_name}': {exc}\")\n return {\"tools\": [], \"names\": [], \"schemas\": [], \"count\": 0, \"exec_out\": True}\n\n names = [t.get(\"name\", \"\") for t in tools]\n schemas = [t.get(\"inputSchema\", {}) for t in tools]\n self.log_info(f\"MCP server '{server_name}' exposes {len(tools)} tool(s).\")\n return {\n \"tools\": list(tools),\n \"names\": names,\n \"schemas\": schemas,\n \"count\": len(tools),\n \"exec_out\": True,\n }\n\ndef register_node():\n return MCPListToolsNode\n"
18
+ }