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.
- src/core/__init__.py +0 -0
- src/core/engine.py +484 -0
- src/core/events.py +32 -0
- src/core/graph.py +74 -0
- src/core/integrity.py +925 -0
- src/core/loader.py +56 -0
- src/core/manifest.py +910 -0
- src/core/models.py +59 -0
- src/core/persistence.py +27 -0
- src/core/python_to_workflow.py +182 -0
- src/core/registry.py +314 -0
- src/core/workflow_to_python.py +801 -0
- src/main.py +188 -0
- src/models/__init__.py +0 -0
- src/nodes/__init__.py +0 -0
- src/nodes/ai/__init__.py +1 -0
- src/nodes/base.py +174 -0
- src/nodes/builtins/__init__.py +0 -0
- src/nodes/builtins/group_node.py +210 -0
- src/nodes/builtins/nodes.py +452 -0
- src/nodes/print.py +19 -0
- src/nodes/test.py +19 -0
- src/ui/__init__.py +0 -0
- src/ui/canvas/__init__.py +0 -0
- src/ui/canvas/backdrop.py +223 -0
- src/ui/canvas/canvas_search_bar.py +222 -0
- src/ui/canvas/edge.py +98 -0
- src/ui/canvas/mini_map.py +138 -0
- src/ui/canvas/node_search_popup.py +270 -0
- src/ui/canvas/scene.py +1149 -0
- src/ui/canvas/sticky_note.py +123 -0
- src/ui/canvas/view.py +285 -0
- src/ui/code_editor.py +435 -0
- src/ui/export_python_dialog.py +490 -0
- src/ui/gemini_api_dialog.py +41 -0
- src/ui/gemini_chat.py +370 -0
- src/ui/import_python_dialog.py +122 -0
- src/ui/library_panel.py +246 -0
- src/ui/log_panel.py +315 -0
- src/ui/node_builder.py +841 -0
- src/ui/node_widget.py +1009 -0
- src/ui/port_widget.py +116 -0
- src/ui/script_editor.py +53 -0
- src/ui/scripting_console.py +270 -0
- src/ui/settings_window.py +575 -0
- src/ui/window.py +2012 -0
- src/utils/color_manager.py +50 -0
- src/utils/config_manager.py +71 -0
- src/utils/env_manager.py +232 -0
- src/utils/highlighter.py +110 -0
- src/utils/paths.py +30 -0
- src/utils/prism_config.py +300 -0
- src/utils/prism_core.py +80 -0
- src/utils/qt_compat.py +159 -0
- src/utils/runtime.py +80 -0
- vibrante_node/CLA.md +96 -0
- vibrante_node/COMMERCIAL_LICENSE.md +170 -0
- vibrante_node/LICENSE +178 -0
- vibrante_node/LICENSES/AGPL-3.0.txt +661 -0
- vibrante_node/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
- vibrante_node/LICENSES/CC-BY-4.0.txt +396 -0
- vibrante_node/LICENSES/GPL-3.0.txt +674 -0
- vibrante_node/LICENSES/LGPL-3.0.txt +165 -0
- vibrante_node/LICENSES/README.md +65 -0
- vibrante_node/THIRD_PARTY_NOTICES.txt +3277 -0
- vibrante_node/__init__.py +2 -0
- vibrante_node/app.py +60 -0
- vibrante_node/docs/AUTOMATION_API.html +785 -0
- vibrante_node/docs/DEVELOPER.html +891 -0
- vibrante_node/docs/DOCUMENTATION.html +2761 -0
- vibrante_node/docs/LICENSE.txt +35 -0
- vibrante_node/docs/NODE_BUILDER_API.html +1155 -0
- vibrante_node/docs/RELEASE_v1.0.5.html +140 -0
- vibrante_node/docs/RELEASE_v1.1.0.html +163 -0
- vibrante_node/docs/RELEASE_v1.1.5.html +286 -0
- vibrante_node/docs/RELEASE_v1.2.0.html +175 -0
- vibrante_node/docs/RELEASE_v1.3.0.html +168 -0
- vibrante_node/docs/RELEASE_v1.4.0.html +160 -0
- vibrante_node/docs/RELEASE_v1.5.0.html +432 -0
- vibrante_node/docs/RELEASE_v1.6.0.html +293 -0
- vibrante_node/docs/RELEASE_v1.6.1.html +171 -0
- vibrante_node/docs/RELEASE_v1.7.0.html +270 -0
- vibrante_node/docs/RELEASE_v1.8.0.html +201 -0
- vibrante_node/docs/RELEASE_v1.8.1.html +124 -0
- vibrante_node/docs/RELEASE_v1.8.2.html +119 -0
- vibrante_node/docs/RELEASE_v1.8.3.html +125 -0
- vibrante_node/docs/RELEASE_v1.8.4.html +210 -0
- vibrante_node/docs/RELEASE_v1.8.5.html +223 -0
- vibrante_node/docs/RELEASE_v2.0.0.html +284 -0
- vibrante_node/docs/RELEASE_v2.1.0.html +259 -0
- vibrante_node/docs/RELEASE_v2.1.1.html +156 -0
- vibrante_node/docs/RELEASE_v2.2.0.html +369 -0
- vibrante_node/docs/RELEASE_v2.2.1.html +168 -0
- vibrante_node/docs/RELEASE_v2.3.0.html +185 -0
- vibrante_node/docs/RELEASE_v2.4.0.html +446 -0
- vibrante_node/docs/RELEASE_v2.5.0.html +478 -0
- vibrante_node/docs/RELEASE_v2.5.1.html +190 -0
- vibrante_node/docs/USER_GUIDE.html +1407 -0
- vibrante_node/docs/index.html +103 -0
- vibrante_node/docs/portal/01_introduction.html +1177 -0
- vibrante_node/docs/portal/02_getting_started.html +1267 -0
- vibrante_node/docs/portal/03_user_guide.html +1736 -0
- vibrante_node/docs/portal/04_workflow_tutorials.html +1473 -0
- vibrante_node/docs/portal/05_node_development.html +1562 -0
- vibrante_node/docs/portal/06_backend_architecture.html +1373 -0
- vibrante_node/docs/portal/07_frontend_architecture.html +1588 -0
- vibrante_node/docs/portal/08_api_reference.html +2336 -0
- vibrante_node/docs/portal/09_advanced_topics.html +1664 -0
- vibrante_node/docs/portal/10_contribution_guide.html +1263 -0
- vibrante_node/docs/portal/11_troubleshooting.html +1108 -0
- vibrante_node/docs/portal/12_examples_library.html +1498 -0
- vibrante_node/docs/portal/13_general_purpose_automation.html +1472 -0
- vibrante_node/docs/portal/14_custom_nodes_api.html +1960 -0
- vibrante_node/docs/portal/index.html +605 -0
- vibrante_node/docs/portal/integrations_blender.html +605 -0
- vibrante_node/docs/portal/integrations_deadline.html +536 -0
- vibrante_node/docs/portal/integrations_houdini.html +787 -0
- vibrante_node/docs/portal/integrations_maya.html +675 -0
- vibrante_node/docs/portal/integrations_prism.html +628 -0
- vibrante_node/docs/portal/search.json +1 -0
- vibrante_node/docs/validation.json +333 -0
- vibrante_node/examples/arnold_lighting/orchestration_notes.md +45 -0
- vibrante_node/examples/arnold_lighting/prompt.md +47 -0
- vibrante_node/examples/automation/01_linear_chain.py +10 -0
- vibrante_node/examples/automation/02_batch_update_prefix.py +8 -0
- vibrante_node/examples/automation/03_reset_scene.py +5 -0
- vibrante_node/examples/automation/04_batch_execution.py +9 -0
- vibrante_node/examples/automation/05_git_backup.py +6 -0
- vibrante_node/examples/automation/06_reset_math_nodes.py +12 -0
- vibrante_node/examples/automation/07_stress_test_grid.py +8 -0
- vibrante_node/examples/automation/08_scene_summary.py +8 -0
- vibrante_node/examples/automation/09_toggle_bools.py +8 -0
- vibrante_node/examples/automation/10_session_report.py +7 -0
- vibrante_node/examples/automation/11_simple_math_node.py +7 -0
- vibrante_node/examples/cinematic_camera/orchestration_notes.md +56 -0
- vibrante_node/examples/cinematic_camera/prompt.md +50 -0
- vibrante_node/examples/cinematic_explosion/orchestration_notes.md +76 -0
- vibrante_node/examples/cinematic_explosion/prompt.md +47 -0
- vibrante_node/examples/cinematic_explosion/review.md +75 -0
- vibrante_node/examples/dust_wave/orchestration_notes.md +43 -0
- vibrante_node/examples/dust_wave/prompt.md +40 -0
- vibrante_node/examples/nodes/async_delay.py +21 -0
- vibrante_node/examples/nodes/connection_logger.py +25 -0
- vibrante_node/examples/nodes/data_filter.py +19 -0
- vibrante_node/examples/nodes/dict_merge.py +20 -0
- vibrante_node/examples/nodes/dict_summary.py +21 -0
- vibrante_node/examples/nodes/dropdown_selector.py +29 -0
- vibrante_node/examples/nodes/env_reader.py +18 -0
- vibrante_node/examples/nodes/list_item_picker.py +85 -0
- vibrante_node/examples/nodes/list_stats.py +27 -0
- vibrante_node/examples/nodes/logic_threshold.py +23 -0
- vibrante_node/examples/nodes/math_square.py +30 -0
- vibrante_node/examples/nodes/random_list.py +18 -0
- vibrante_node/examples/nodes/reactive_config.py +24 -0
- vibrante_node/examples/nodes/safety_reset.py +31 -0
- vibrante_node/examples/nodes/string_reverse.py +16 -0
- vibrante_node/icons/210429_DeadlineFreeOn10RenderMachines.jpg +0 -0
- vibrante_node/icons/README.md +39 -0
- vibrante_node/icons/blender_icon.png +0 -0
- vibrante_node/icons/braces.png +0 -0
- vibrante_node/icons/braces.svg +1 -0
- vibrante_node/icons/builder.png +0 -0
- vibrante_node/icons/check.png +0 -0
- vibrante_node/icons/check.svg +1 -0
- vibrante_node/icons/chevron-right.svg +3 -0
- vibrante_node/icons/code.png +0 -0
- vibrante_node/icons/code.svg +4 -0
- vibrante_node/icons/computer-window.png +0 -0
- vibrante_node/icons/data.png +0 -0
- vibrante_node/icons/data.svg +5 -0
- vibrante_node/icons/database-search.png +0 -0
- vibrante_node/icons/database-search.svg +5 -0
- vibrante_node/icons/database-zap.png +0 -0
- vibrante_node/icons/database-zap.svg +5 -0
- vibrante_node/icons/database.png +0 -0
- vibrante_node/icons/database.svg +5 -0
- vibrante_node/icons/dice.png +0 -0
- vibrante_node/icons/dice.svg +1 -0
- vibrante_node/icons/divide.svg +5 -0
- vibrante_node/icons/file-input.svg +6 -0
- vibrante_node/icons/file-plus.png +0 -0
- vibrante_node/icons/file-plus.svg +6 -0
- vibrante_node/icons/file-text.png +0 -0
- vibrante_node/icons/file-text.svg +7 -0
- vibrante_node/icons/folder-plus.png +0 -0
- vibrante_node/icons/folder-plus.svg +5 -0
- vibrante_node/icons/folder.png +0 -0
- vibrante_node/icons/folder.svg +3 -0
- vibrante_node/icons/gear.png +0 -0
- vibrante_node/icons/gear.svg +1 -0
- vibrante_node/icons/git-branch.svg +6 -0
- vibrante_node/icons/hash.png +0 -0
- vibrante_node/icons/hash.svg +1 -0
- vibrante_node/icons/houdini.svg +4 -0
- vibrante_node/icons/houdini_icon.png +0 -0
- vibrante_node/icons/http.png +0 -0
- vibrante_node/icons/list-check.png +0 -0
- vibrante_node/icons/list-check.svg +7 -0
- vibrante_node/icons/list-plus.svg +10 -0
- vibrante_node/icons/list.png +0 -0
- vibrante_node/icons/list.svg +8 -0
- vibrante_node/icons/logic.png +0 -0
- vibrante_node/icons/logic.svg +7 -0
- vibrante_node/icons/math.png +0 -0
- vibrante_node/icons/math.svg +4 -0
- vibrante_node/icons/maya_icon.jpg +0 -0
- vibrante_node/icons/message.png +0 -0
- vibrante_node/icons/message.svg +3 -0
- vibrante_node/icons/minus.svg +3 -0
- vibrante_node/icons/multiply.png +0 -0
- vibrante_node/icons/multiply.svg +1 -0
- vibrante_node/icons/online-library.png +0 -0
- vibrante_node/icons/percentage.svg +5 -0
- vibrante_node/icons/plus.png +0 -0
- vibrante_node/icons/plus.svg +1 -0
- vibrante_node/icons/print.png +0 -0
- vibrante_node/icons/print.svg +5 -0
- vibrante_node/icons/prism_icon.png +0 -0
- vibrante_node/icons/refresh.svg +6 -0
- vibrante_node/icons/repeat.svg +6 -0
- vibrante_node/icons/scales.png +0 -0
- vibrante_node/icons/scales.svg +1 -0
- vibrante_node/icons/shuffle.svg +7 -0
- vibrante_node/icons/string.png +0 -0
- vibrante_node/icons/string.svg +5 -0
- vibrante_node/icons/terminal.png +0 -0
- vibrante_node/icons/terminal.svg +1 -0
- vibrante_node/icons/timer.png +0 -0
- vibrante_node/icons/timer.svg +4 -0
- vibrante_node/icons/toggle-switch.svg +5 -0
- vibrante_node/icons/uppercase.png +0 -0
- vibrante_node/icons/uppercase.svg +1 -0
- vibrante_node/icons/variable-get.svg +4 -0
- vibrante_node/icons/variable-set.svg +6 -0
- vibrante_node/icons/variable.png +0 -0
- vibrante_node/icons/variable.svg +5 -0
- vibrante_node/icons/vibrante-node-icon.png +0 -0
- vibrante_node/icons/vibrante-node-logo.png +0 -0
- vibrante_node/icons/vibrante-node-main_logo.png +0 -0
- vibrante_node/icons/vibrante-node-resize_main_logo.png +0 -0
- vibrante_node/logo.png +0 -0
- vibrante_node/mcp_cli.py +36 -0
- vibrante_node/node_examples/Split_String.json +35 -0
- vibrante_node/node_examples/async_delay.json +32 -0
- vibrante_node/node_examples/delay_timer.json +29 -0
- vibrante_node/node_examples/file_reader.json +29 -0
- vibrante_node/node_examples/fruit_selector.json +37 -0
- vibrante_node/node_examples/json_parser.json +29 -0
- vibrante_node/node_examples/line_counter.json +29 -0
- vibrante_node/node_examples/list_append.json +32 -0
- vibrante_node/node_examples/list_images_recursive.json +55 -0
- vibrante_node/node_examples/logic_and.json +34 -0
- vibrante_node/node_examples/logic_compare.json +36 -0
- vibrante_node/node_examples/math_abs.json +29 -0
- vibrante_node/node_examples/math_add.json +32 -0
- vibrante_node/node_examples/reactive_config.json +28 -0
- vibrante_node/node_examples/string_uppercase.json +29 -0
- vibrante_node/nodes/Dropdown_Selector.json +27 -0
- vibrante_node/nodes/add_integers.json +34 -0
- vibrante_node/nodes/blender_action_bake_animation.json +23 -0
- vibrante_node/nodes/blender_action_custom.json +21 -0
- vibrante_node/nodes/blender_action_export_alembic.json +22 -0
- vibrante_node/nodes/blender_action_export_fbx.json +23 -0
- vibrante_node/nodes/blender_action_export_gltf.json +21 -0
- vibrante_node/nodes/blender_action_export_obj.json +19 -0
- vibrante_node/nodes/blender_action_export_usd.json +23 -0
- vibrante_node/nodes/blender_action_import_alembic.json +18 -0
- vibrante_node/nodes/blender_action_import_fbx.json +18 -0
- vibrante_node/nodes/blender_action_import_gltf.json +18 -0
- vibrante_node/nodes/blender_action_import_obj.json +18 -0
- vibrante_node/nodes/blender_action_new_blend.json +18 -0
- vibrante_node/nodes/blender_action_open_blend.json +18 -0
- vibrante_node/nodes/blender_action_render.json +23 -0
- vibrante_node/nodes/blender_action_save_blend.json +18 -0
- vibrante_node/nodes/blender_action_scene_info.json +17 -0
- vibrante_node/nodes/blender_action_set_frame_range.json +20 -0
- vibrante_node/nodes/blender_action_set_render_settings.json +27 -0
- vibrante_node/nodes/blender_get_action_result.json +22 -0
- vibrante_node/nodes/blender_headless.json +86 -0
- vibrante_node/nodes/compare.json +48 -0
- vibrante_node/nodes/console_print.json +29 -0
- vibrante_node/nodes/create_dictionary.json +18 -0
- vibrante_node/nodes/create_folder.json +17 -0
- vibrante_node/nodes/create_list.json +18 -0
- vibrante_node/nodes/deadline_blender_submit.json +38 -0
- vibrante_node/nodes/deadline_houdini_submit.json +38 -0
- vibrante_node/nodes/deadline_job_status.json +28 -0
- vibrante_node/nodes/deadline_maya_submit.json +40 -0
- vibrante_node/nodes/delay_timer.json +26 -0
- vibrante_node/nodes/example_random_float.json +35 -0
- vibrante_node/nodes/file_append.json +18 -0
- vibrante_node/nodes/file_write.json +18 -0
- vibrante_node/nodes/for_loop.json +46 -0
- vibrante_node/nodes/get_dict_value.json +19 -0
- vibrante_node/nodes/get_list_item.json +19 -0
- vibrante_node/nodes/houdini_action_bake_animation.json +20 -0
- vibrante_node/nodes/houdini_action_custom.json +20 -0
- vibrante_node/nodes/houdini_action_export_alembic.json +20 -0
- vibrante_node/nodes/houdini_action_export_camera_alembic.json +20 -0
- vibrante_node/nodes/houdini_action_export_fbx.json +18 -0
- vibrante_node/nodes/houdini_action_import_alembic.json +18 -0
- vibrante_node/nodes/houdini_action_import_camera.json +17 -0
- vibrante_node/nodes/houdini_action_import_fbx.json +18 -0
- vibrante_node/nodes/houdini_action_import_obj.json +18 -0
- vibrante_node/nodes/houdini_action_new_hip.json +16 -0
- vibrante_node/nodes/houdini_action_open_hip.json +17 -0
- vibrante_node/nodes/houdini_action_save_hip.json +17 -0
- vibrante_node/nodes/houdini_action_scene_info.json +16 -0
- vibrante_node/nodes/houdini_action_set_frame_range.json +18 -0
- vibrante_node/nodes/houdini_get_action_result.json +21 -0
- vibrante_node/nodes/houdini_headless.json +85 -0
- vibrante_node/nodes/houdini_scene_snapshot.json +41 -0
- vibrante_node/nodes/http_request.json +76 -0
- vibrante_node/nodes/if_condition.json +45 -0
- vibrante_node/nodes/list_directory.json +17 -0
- vibrante_node/nodes/list_images_recursive.json +41 -0
- vibrante_node/nodes/list_item_picker.json +41 -0
- vibrante_node/nodes/list_length.json +17 -0
- vibrante_node/nodes/logical_gate.json +45 -0
- vibrante_node/nodes/loop_body.json +62 -0
- vibrante_node/nodes/math_add.json +17 -0
- vibrante_node/nodes/math_divide.json +17 -0
- vibrante_node/nodes/math_modulo.json +17 -0
- vibrante_node/nodes/math_multiply.json +36 -0
- vibrante_node/nodes/math_subtract.json +17 -0
- vibrante_node/nodes/maya_action_assign_material.json +18 -0
- vibrante_node/nodes/maya_action_bake_animation.json +21 -0
- vibrante_node/nodes/maya_action_create_render_layer.json +19 -0
- vibrante_node/nodes/maya_action_custom.json +20 -0
- vibrante_node/nodes/maya_action_export_alembic.json +22 -0
- vibrante_node/nodes/maya_action_export_camera_alembic.json +20 -0
- vibrante_node/nodes/maya_action_export_fbx.json +18 -0
- vibrante_node/nodes/maya_action_import_alembic.json +17 -0
- vibrante_node/nodes/maya_action_import_camera.json +17 -0
- vibrante_node/nodes/maya_action_import_fbx.json +17 -0
- vibrante_node/nodes/maya_action_import_obj.json +17 -0
- vibrante_node/nodes/maya_action_list_references.json +16 -0
- vibrante_node/nodes/maya_action_new_scene.json +16 -0
- vibrante_node/nodes/maya_action_open_scene.json +18 -0
- vibrante_node/nodes/maya_action_playblast.json +22 -0
- vibrante_node/nodes/maya_action_reference_alembic.json +18 -0
- vibrante_node/nodes/maya_action_reference_scene.json +18 -0
- vibrante_node/nodes/maya_action_save_scene.json +18 -0
- vibrante_node/nodes/maya_action_scene_info.json +16 -0
- vibrante_node/nodes/maya_action_set_aovs.json +18 -0
- vibrante_node/nodes/maya_action_set_frame_range.json +18 -0
- vibrante_node/nodes/maya_action_set_render_settings.json +23 -0
- vibrante_node/nodes/maya_get_action_result.json +21 -0
- vibrante_node/nodes/maya_headless.json +27 -0
- vibrante_node/nodes/mcp_call_tool.json +19 -0
- vibrante_node/nodes/mcp_list_tools.json +18 -0
- vibrante_node/nodes/mcp_server_init.json +23 -0
- vibrante_node/nodes/message_node.json +32 -0
- vibrante_node/nodes/prism_add_integration.json +49 -0
- vibrante_node/nodes/prism_build_entity.json +45 -0
- vibrante_node/nodes/prism_change_project.json +37 -0
- vibrante_node/nodes/prism_core_info.json +37 -0
- vibrante_node/nodes/prism_core_init.json +46 -0
- vibrante_node/nodes/prism_create_category.json +44 -0
- vibrante_node/nodes/prism_create_entity.json +60 -0
- vibrante_node/nodes/prism_create_playblast.json +56 -0
- vibrante_node/nodes/prism_create_product_version.json +64 -0
- vibrante_node/nodes/prism_create_project.json +50 -0
- vibrante_node/nodes/prism_create_scene_from_preset.json +59 -0
- vibrante_node/nodes/prism_eval.json +42 -0
- vibrante_node/nodes/prism_get_aovs.json +29 -0
- vibrante_node/nodes/prism_get_asset_by_name.json +69 -0
- vibrante_node/nodes/prism_get_asset_type_by_name.json +62 -0
- vibrante_node/nodes/prism_get_asset_types_by_project.json +55 -0
- vibrante_node/nodes/prism_get_assets_by_project.json +41 -0
- vibrante_node/nodes/prism_get_assets_by_type.json +69 -0
- vibrante_node/nodes/prism_get_config.json +48 -0
- vibrante_node/nodes/prism_get_current_scene.json +37 -0
- vibrante_node/nodes/prism_get_departments.json +37 -0
- vibrante_node/nodes/prism_get_entity_info.json +69 -0
- vibrante_node/nodes/prism_get_entity_path.json +69 -0
- vibrante_node/nodes/prism_get_export_path.json +26 -0
- vibrante_node/nodes/prism_get_latest_product_path.json +34 -0
- vibrante_node/nodes/prism_get_media.json +29 -0
- vibrante_node/nodes/prism_get_media_versions.json +33 -0
- vibrante_node/nodes/prism_get_plugin.json +35 -0
- vibrante_node/nodes/prism_get_preset_scenes.json +35 -0
- vibrante_node/nodes/prism_get_product_versions.json +33 -0
- vibrante_node/nodes/prism_get_products.json +29 -0
- vibrante_node/nodes/prism_get_project_by_name.json +55 -0
- vibrante_node/nodes/prism_get_project_config_path.json +26 -0
- vibrante_node/nodes/prism_get_scene_files.json +45 -0
- vibrante_node/nodes/prism_get_scene_path.json +23 -0
- vibrante_node/nodes/prism_get_sequence_by_project.json +48 -0
- vibrante_node/nodes/prism_get_sequences_by_project.json +41 -0
- vibrante_node/nodes/prism_get_shot_by_name.json +62 -0
- vibrante_node/nodes/prism_get_shot_by_sequence.json +55 -0
- vibrante_node/nodes/prism_get_shot_info.json +69 -0
- vibrante_node/nodes/prism_get_shots.json +29 -0
- vibrante_node/nodes/prism_get_shots_by_project_sequence.json +48 -0
- vibrante_node/nodes/prism_get_shots_by_sequence.json +48 -0
- vibrante_node/nodes/prism_get_tasks.json +39 -0
- vibrante_node/nodes/prism_import_product.json +37 -0
- vibrante_node/nodes/prism_list_plugins.json +25 -0
- vibrante_node/nodes/prism_list_projects.json +25 -0
- vibrante_node/nodes/prism_login_token.json +33 -0
- vibrante_node/nodes/prism_monkey_patch.json +46 -0
- vibrante_node/nodes/prism_open_scene.json +33 -0
- vibrante_node/nodes/prism_popup.json +40 -0
- vibrante_node/nodes/prism_register_callback.json +58 -0
- vibrante_node/nodes/prism_save_scene_version.json +90 -0
- vibrante_node/nodes/prism_send_cmd.json +54 -0
- vibrante_node/nodes/prism_set_config.json +55 -0
- vibrante_node/nodes/prism_studio_assign_project.json +43 -0
- vibrante_node/nodes/prism_trigger_callback.json +42 -0
- vibrante_node/nodes/prism_usd_department_layer_path.json +35 -0
- vibrante_node/nodes/prism_usd_entity_path.json +29 -0
- vibrante_node/nodes/prism_usd_sublayer_path.json +41 -0
- vibrante_node/nodes/prism_usd_update_department_layer.json +33 -0
- vibrante_node/nodes/prism_usd_update_sublayer.json +33 -0
- vibrante_node/nodes/python_script.json +17 -0
- vibrante_node/nodes/scene_intent_extractor.json +25 -0
- vibrante_node/nodes/set_dict_value.json +20 -0
- vibrante_node/nodes/string_concat.json +47 -0
- vibrante_node/nodes/string_length.json +16 -0
- vibrante_node/nodes/string_lowercase.json +16 -0
- vibrante_node/nodes/string_replace.json +18 -0
- vibrante_node/nodes/string_split.json +17 -0
- vibrante_node/nodes/string_uppercase.json +16 -0
- vibrante_node/nodes/variable_node.json +42 -0
- vibrante_node/nodes/while_loop.json +18 -0
- vibrante_node/splash.png +0 -0
- vibrante_node/vfx_workflows/01_prism_project_overview.json +492 -0
- vibrante_node/vfx_workflows/02_maya_asset_publish.json +776 -0
- vibrante_node/vfx_workflows/03_multi_shot_alembic_export.json +856 -0
- vibrante_node/vfx_workflows/04_deadline_render_pipeline.json +994 -0
- vibrante_node/vfx_workflows/05_houdini_fx_pipeline.json +1056 -0
- vibrante_node/vfx_workflows/06_blender_multi_format_export.json +1206 -0
- vibrante_node/website_examples/database_query.json +69 -0
- vibrante_node/website_examples/email_notification.json +104 -0
- vibrante_node/website_examples/file_batch_processor.json +62 -0
- vibrante_node/website_examples/folder_monitor.json +55 -0
- vibrante_node/website_examples/hou_sop_chain.json +69 -0
- vibrante_node/website_examples/http_request.json +90 -0
- vibrante_node/website_examples/image_resizer.json +90 -0
- vibrante_node/website_examples/llm_text_generation.json +90 -0
- vibrante_node/website_examples/prism_multi_asset_publisher.json +76 -0
- vibrante_node/website_examples/regex_replace.json +69 -0
- vibrante_node/workflows/If_condition.json +134 -0
- vibrante_node/workflows/Maya_WorkFlow.json +464 -0
- vibrante_node/workflows/asset_intelligence_pipeline.json +259 -0
- vibrante_node/workflows/concat_string_with_loop.json +262 -0
- vibrante_node/workflows/delay_time.json +74 -0
- vibrante_node/workflows/example_workflow_maya_prism_demo.json +503 -0
- vibrante_node/workflows/example_workflow_prism_demo.json +276 -0
- vibrante_node/workflows/example_workflow_prism_demo_02.json +221 -0
- vibrante_node/workflows/extract_FPS_from_maya_scene.json +265 -0
- vibrante_node/workflows/for_each.json +260 -0
- vibrante_node/workflows/get_list_item.json +151 -0
- vibrante_node/workflows/hou_mcp_scene_context_demo.json +67 -0
- vibrante_node/workflows/list_recursive_images.json +103 -0
- vibrante_node/workflows/logic_if_example.json +262 -0
- vibrante_node/workflows/logic_if_with_variables.json +210 -0
- vibrante_node/workflows/loop_break_example.json +197 -0
- vibrante_node/workflows/loop_operation_example.json +382 -0
- vibrante_node/workflows/mcp_list_tools_demo.json +90 -0
- vibrante_node/workflows/prism_assets_workflow.json +131 -0
- vibrante_node/workflows/python_script_node.json +89 -0
- vibrante_node/workflows/run_in_sequence.json +158 -0
- vibrante_node/workflows/scene_intent_pipeline.json +134 -0
- vibrante_node/workflows/scene_planning_pipeline.json +258 -0
- vibrante_node/workflows/semantic_scene_intent.json +96 -0
- vibrante_node/workflows/setup_maya_scene.json +352 -0
- vibrante_node/workflows/tutorial_maya_headless_prism_pipeline.json +593 -0
- vibrante_node/workflows/two_way_switch.json +341 -0
- vibrante_node/workflows/while_loop_class_example.json +192 -0
- vibrante_node/workflows/while_loop_example.json +184 -0
- vibrante_node/workflows/while_loop_retry_example.json +276 -0
- vibrante_node-2.5.1.dist-info/METADATA +715 -0
- vibrante_node-2.5.1.dist-info/RECORD +487 -0
- vibrante_node-2.5.1.dist-info/WHEEL +5 -0
- vibrante_node-2.5.1.dist-info/entry_points.txt +3 -0
- vibrante_node-2.5.1.dist-info/licenses/CLA.md +96 -0
- vibrante_node-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSE +178 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
- vibrante_node-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
- vibrante_node-2.5.1.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,785 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<title>Automation API — Vibrante-Node v2.5.1</title>
|
|
7
|
+
<style>
|
|
8
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
9
|
+
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
10
|
+
background: #1e1e2e; color: #cdd6f4; line-height: 1.7; }
|
|
11
|
+
.sidebar { position: fixed; top: 0; left: 0; width: 220px; height: 100vh;
|
|
12
|
+
background: #181825; overflow-y: auto; padding: 20px 0; z-index: 100; }
|
|
13
|
+
.sidebar h2 { font-size: 13px; color: #6c7086; text-transform: uppercase;
|
|
14
|
+
letter-spacing: .08em; padding: 0 18px 10px; }
|
|
15
|
+
.sidebar a { display: block; padding: 6px 18px; color: #a6adc8; text-decoration: none;
|
|
16
|
+
font-size: 13px; border-left: 3px solid transparent; transition: all .15s; }
|
|
17
|
+
.sidebar a:hover, .sidebar a.active { color: #cba6f7; border-left-color: #cba6f7;
|
|
18
|
+
background: #1e1e2e; }
|
|
19
|
+
.sidebar .nav-release { font-size: 12px; padding: 4px 18px; }
|
|
20
|
+
.content { margin-left: 220px; max-width: 920px; padding: 40px 48px; }
|
|
21
|
+
h1 { font-size: 2em; color: #cba6f7; border-bottom: 2px solid #313244; padding-bottom: 10px; margin: 28px 0 16px; }
|
|
22
|
+
h2 { font-size: 1.45em; color: #89b4fa; margin: 32px 0 12px; }
|
|
23
|
+
h3 { font-size: 1.15em; color: #94e2d5; margin: 22px 0 8px; }
|
|
24
|
+
h4 { font-size: 1em; color: #f5c2e7; margin: 16px 0 6px; }
|
|
25
|
+
p { margin-bottom: 14px; color: #cdd6f4; }
|
|
26
|
+
a { color: #89b4fa; }
|
|
27
|
+
ul, ol { margin: 10px 0 14px 22px; }
|
|
28
|
+
li { margin-bottom: 5px; }
|
|
29
|
+
code { background: #313244; color: #f38ba8; padding: 2px 6px; border-radius: 4px; font-size: .88em; font-family: 'Consolas','Courier New',monospace; }
|
|
30
|
+
pre { background: #181825; border: 1px solid #313244; border-radius: 8px;
|
|
31
|
+
padding: 18px 20px; overflow-x: auto; margin: 14px 0 20px; }
|
|
32
|
+
pre code { background: none; color: #a6e3a1; padding: 0; font-size: .9em; }
|
|
33
|
+
table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: .92em; }
|
|
34
|
+
th { background: #313244; color: #cba6f7; padding: 9px 14px; text-align: left; }
|
|
35
|
+
td { border-top: 1px solid #313244; padding: 8px 14px; }
|
|
36
|
+
tr:nth-child(even) td { background: #1e1e2e; }
|
|
37
|
+
hr { border: none; border-top: 1px solid #313244; margin: 28px 0; }
|
|
38
|
+
blockquote { border-left: 4px solid #6c7086; padding-left: 16px; color: #a6adc8; margin: 14px 0; }
|
|
39
|
+
@media (max-width: 700px) { .sidebar { display: none; } .content { margin-left: 0; padding: 24px 18px; } }
|
|
40
|
+
</style>
|
|
41
|
+
</head>
|
|
42
|
+
<body>
|
|
43
|
+
<nav class="sidebar">
|
|
44
|
+
<h2>Vibrante-Node</h2>
|
|
45
|
+
<a href="USER_GUIDE.html">User Guide</a>
|
|
46
|
+
<a href="NODE_BUILDER_API.html">Node Builder API</a>
|
|
47
|
+
<a href="AUTOMATION_API.html">Automation API</a>
|
|
48
|
+
<a href="DEVELOPER.html">Developer Documentation</a>
|
|
49
|
+
<a href="DOCUMENTATION.html">Technical Feature List</a>
|
|
50
|
+
<hr style="border-color:#313244;margin:10px 18px">
|
|
51
|
+
<h2 style="margin-top:8px">Release Notes</h2>
|
|
52
|
+
<a class="nav-release" href="RELEASE_v2.5.0.html">Release Notes v2.5.0</a>
|
|
53
|
+
<a class="nav-release" href="RELEASE_v2.5.0.html">Release Notes v2.5.0</a>
|
|
54
|
+
<a class="nav-release" href="RELEASE_v2.3.0.html">Release Notes v2.3.0</a>
|
|
55
|
+
<a class="nav-release" href="RELEASE_v2.2.1.html">Release Notes v2.2.1</a>
|
|
56
|
+
<a class="nav-release" href="RELEASE_v2.2.0.html">Release Notes v2.2.0</a>
|
|
57
|
+
<a class="nav-release" href="RELEASE_v2.1.1.html">Release Notes v2.1.1</a>
|
|
58
|
+
<a class="nav-release" href="RELEASE_v2.1.0.html">Release Notes v2.1.0</a>
|
|
59
|
+
<a class="nav-release" href="RELEASE_v2.0.0.html">Release Notes v2.0.0</a>
|
|
60
|
+
<a class="nav-release" href="RELEASE_v1.8.5.html">Release Notes v1.8.5</a>
|
|
61
|
+
<a class="nav-release" href="RELEASE_v1.8.4.html">Release Notes v1.8.4</a>
|
|
62
|
+
<a class="nav-release" href="RELEASE_v1.8.3.html">Release Notes v1.8.3</a>
|
|
63
|
+
<a class="nav-release" href="RELEASE_v1.8.2.html">Release Notes v1.8.2</a>
|
|
64
|
+
<a class="nav-release" href="RELEASE_v1.8.1.html">Release Notes v1.8.1</a>
|
|
65
|
+
<a class="nav-release" href="RELEASE_v1.8.0.html">Release Notes v1.8.0</a>
|
|
66
|
+
<a class="nav-release" href="RELEASE_v1.7.0.html">Release Notes v1.7.0</a>
|
|
67
|
+
<a class="nav-release" href="RELEASE_v1.6.1.html">Release Notes v1.6.1</a>
|
|
68
|
+
<a class="nav-release" href="RELEASE_v1.6.0.html">Release Notes v1.6.0</a>
|
|
69
|
+
<a class="nav-release" href="RELEASE_v1.5.0.html">Release Notes v1.5.0</a>
|
|
70
|
+
<a class="nav-release" href="RELEASE_v1.4.0.html">Release Notes v1.4.0</a>
|
|
71
|
+
<a class="nav-release" href="RELEASE_v1.3.0.html">Release Notes v1.3.0</a>
|
|
72
|
+
<a class="nav-release" href="RELEASE_v1.2.0.html">Release Notes v1.2.0</a>
|
|
73
|
+
<a class="nav-release" href="RELEASE_v1.1.5.html">Release Notes v1.1.5</a>
|
|
74
|
+
<a class="nav-release" href="RELEASE_v1.1.0.html">Release Notes v1.1.0</a>
|
|
75
|
+
<a class="nav-release" href="RELEASE_v1.0.5.html">Release Notes v1.0.5</a>
|
|
76
|
+
<hr style="border-color:#313244;margin:10px 18px">
|
|
77
|
+
<h2 style="margin-top:8px">On this page</h2>
|
|
78
|
+
<a href="#vibrante-node-automation-scripting-api" style="padding-left:18px">Vibrante-Node — Automation & Scripting API</a>
|
|
79
|
+
<a href="#contents" style="padding-left:18px">Contents</a>
|
|
80
|
+
<a href="#1-scripting-console" style="padding-left:18px">1. Scripting Console</a>
|
|
81
|
+
<a href="#opening-the-console" style="padding-left:32px">Opening the Console</a>
|
|
82
|
+
<a href="#execution" style="padding-left:32px">Execution</a>
|
|
83
|
+
<a href="#context" style="padding-left:32px">Context</a>
|
|
84
|
+
<a href="#2-global-objects-reference" style="padding-left:18px">2. Global Objects Reference</a>
|
|
85
|
+
<a href="#3-scene-api-nodescene" style="padding-left:18px">3. Scene API — NodeScene</a>
|
|
86
|
+
<a href="#node-creation-and-discovery" style="padding-left:32px">Node Creation and Discovery</a>
|
|
87
|
+
<a href="#wiring" style="padding-left:32px">Wiring</a>
|
|
88
|
+
<a href="#canvas-control" style="padding-left:32px">Canvas Control</a>
|
|
89
|
+
<a href="#4-application-api-mainwindow" style="padding-left:18px">4. Application API — MainWindow</a>
|
|
90
|
+
<a href="#tab-management" style="padding-left:32px">Tab Management</a>
|
|
91
|
+
<a href="#execution_1" style="padding-left:32px">Execution</a>
|
|
92
|
+
<a href="#theme" style="padding-left:32px">Theme</a>
|
|
93
|
+
<a href="#workflow-path" style="padding-left:32px">Workflow Path</a>
|
|
94
|
+
<a href="#5-node-api-nodewidget" style="padding-left:18px">5. Node API — NodeWidget</a>
|
|
95
|
+
<a href="#parameters" style="padding-left:32px">Parameters</a>
|
|
96
|
+
<a href="#node-definition" style="padding-left:32px">Node Definition</a>
|
|
97
|
+
<a href="#bypass-state" style="padding-left:32px">Bypass State</a>
|
|
98
|
+
<a href="#position" style="padding-left:32px">Position</a>
|
|
99
|
+
<a href="#instance-id" style="padding-left:32px">Instance ID</a>
|
|
100
|
+
<a href="#6-registry-api-noderegistry" style="padding-left:18px">6. Registry API — NodeRegistry</a>
|
|
101
|
+
<a href="#querying-definitions" style="padding-left:32px">Querying Definitions</a>
|
|
102
|
+
<a href="#source-paths" style="padding-left:32px">Source Paths</a>
|
|
103
|
+
<a href="#hot-reload" style="padding-left:32px">Hot Reload</a>
|
|
104
|
+
<a href="#inspect-a-node-type" style="padding-left:32px">Inspect a Node Type</a>
|
|
105
|
+
<a href="#7-git-api-gitwrapper" style="padding-left:18px">7. Git API — GitWrapper</a>
|
|
106
|
+
<a href="#8-python-runtime-and-environment" style="padding-left:18px">8. Python Runtime and Environment</a>
|
|
107
|
+
<a href="#vibrante_pythonpath" style="padding-left:32px">VIBRANTE_PYTHONPATH</a>
|
|
108
|
+
<a href="#custom-environment-variables" style="padding-left:32px">Custom Environment Variables</a>
|
|
109
|
+
<a href="#v_nodes_dir-and-v_scripts_path" style="padding-left:32px">v_nodes_dir and v_scripts_path</a>
|
|
110
|
+
<a href="#runtime-introspection" style="padding-left:32px">Runtime Introspection</a>
|
|
111
|
+
<a href="#9-headless-and-subprocess-execution" style="padding-left:18px">9. Headless and Subprocess Execution</a>
|
|
112
|
+
<a href="#maya-headless-action-pattern" style="padding-left:32px">Maya — Headless Action Pattern</a>
|
|
113
|
+
<a href="#blender-same-pattern" style="padding-left:32px">Blender — Same Pattern</a>
|
|
114
|
+
<a href="#houdini-live-bridge" style="padding-left:32px">Houdini — Live Bridge</a>
|
|
115
|
+
<a href="#houdini-runtime-layer-direct-python-access" style="padding-left:32px">Houdini — Runtime Layer (Direct Python Access)</a>
|
|
116
|
+
<a href="#10-automation-script-examples" style="padding-left:18px">10. Automation Script Examples</a>
|
|
117
|
+
<a href="#01-linear-chain" style="padding-left:32px">01 — Linear Chain</a>
|
|
118
|
+
<a href="#02-batch-prefix-update" style="padding-left:32px">02 — Batch Prefix Update</a>
|
|
119
|
+
<a href="#03-scene-reset" style="padding-left:32px">03 — Scene Reset</a>
|
|
120
|
+
<a href="#04-batch-execution" style="padding-left:32px">04 — Batch Execution</a>
|
|
121
|
+
<a href="#05-git-backup" style="padding-left:32px">05 — Git Backup</a>
|
|
122
|
+
<a href="#07-stress-test-grid" style="padding-left:32px">07 — Stress Test Grid</a>
|
|
123
|
+
<a href="#08-scene-summary" style="padding-left:32px">08 — Scene Summary</a>
|
|
124
|
+
<a href="#10-session-report" style="padding-left:32px">10 — Session Report</a>
|
|
125
|
+
<a href="#11-mcp-runtime-api-direct-orchestration" style="padding-left:18px">11. MCP Runtime API — Direct Orchestration</a>
|
|
126
|
+
<a href="#starting-the-mcp-server" style="padding-left:32px">Starting the MCP Server</a>
|
|
127
|
+
<a href="#ai-client-configuration" style="padding-left:32px">AI Client Configuration</a>
|
|
128
|
+
<a href="#python-client-via-mcp_runtime" style="padding-left:32px">Python Client via mcp_runtime</a>
|
|
129
|
+
<a href="#semantic-execution-from-python" style="padding-left:32px">Semantic Execution from Python</a>
|
|
130
|
+
<a href="#mcp-tool-registry-from-python" style="padding-left:32px">MCP Tool Registry from Python</a>
|
|
131
|
+
<a href="#execution-safety-invariants" style="padding-left:32px">Execution Safety Invariants</a>
|
|
132
|
+
</nav>
|
|
133
|
+
<main class="content">
|
|
134
|
+
<h1 id="vibrante-node-automation-scripting-api">Vibrante-Node — Automation & Scripting API</h1>
|
|
135
|
+
<p><strong>Version:</strong> v2.5.0 | <a href="USER_GUIDE.md">User Guide</a> | <a href="NODE_BUILDER_API.md">Node Builder API</a> | <a href="DEVELOPER.md">Developer Guide</a> | <a href="DOCUMENTATION.md">Technical Reference</a></p>
|
|
136
|
+
<p>The Scripting Console and Python automation API give programmatic access to every part of the application — graph construction, execution control, parameter updates, node registry management, and environment configuration.</p>
|
|
137
|
+
<hr />
|
|
138
|
+
<h2 id="contents">Contents</h2>
|
|
139
|
+
<ol>
|
|
140
|
+
<li><a href="#1-scripting-console">Scripting Console</a></li>
|
|
141
|
+
<li><a href="#2-global-objects-reference">Global Objects Reference</a></li>
|
|
142
|
+
<li><a href="#3-scene-api">Scene API — NodeScene</a></li>
|
|
143
|
+
<li><a href="#4-application-api">Application API — MainWindow</a></li>
|
|
144
|
+
<li><a href="#5-node-api">Node API — NodeWidget</a></li>
|
|
145
|
+
<li><a href="#6-registry-api">Registry API — NodeRegistry</a></li>
|
|
146
|
+
<li><a href="#7-git-api">Git API — GitWrapper</a></li>
|
|
147
|
+
<li><a href="#8-python-runtime-and-environment">Python Runtime and Environment</a></li>
|
|
148
|
+
<li><a href="#9-headless-and-subprocess-execution">Headless and Subprocess Execution</a></li>
|
|
149
|
+
<li><a href="#10-automation-script-examples">Automation Script Examples</a></li>
|
|
150
|
+
<li><a href="#11-mcp-runtime-api">MCP Runtime API — Direct Orchestration</a></li>
|
|
151
|
+
</ol>
|
|
152
|
+
<hr />
|
|
153
|
+
<h2 id="1-scripting-console">1. Scripting Console</h2>
|
|
154
|
+
<h3 id="opening-the-console">Opening the Console</h3>
|
|
155
|
+
<p><strong>Window → Show/Hide Scripting Console</strong> — a dockable panel with three sub-panels:</p>
|
|
156
|
+
<table>
|
|
157
|
+
<thead>
|
|
158
|
+
<tr>
|
|
159
|
+
<th>Sub-panel</th>
|
|
160
|
+
<th>Contents</th>
|
|
161
|
+
</tr>
|
|
162
|
+
</thead>
|
|
163
|
+
<tbody>
|
|
164
|
+
<tr>
|
|
165
|
+
<td><strong>Code Editor</strong></td>
|
|
166
|
+
<td>Python input area with syntax highlighting and autocomplete</td>
|
|
167
|
+
</tr>
|
|
168
|
+
<tr>
|
|
169
|
+
<td><strong>Debug Output</strong></td>
|
|
170
|
+
<td>stdout/stderr from executed code; also receives <code>print()</code> output</td>
|
|
171
|
+
</tr>
|
|
172
|
+
<tr>
|
|
173
|
+
<td><strong>Git Status</strong></td>
|
|
174
|
+
<td>Current repository status (branch, modified files, last commit)</td>
|
|
175
|
+
</tr>
|
|
176
|
+
</tbody>
|
|
177
|
+
</table>
|
|
178
|
+
<p>The console is connected to the <strong>live application state</strong>: running code here directly manipulates the active canvas, triggers execution, and updates the UI in real time.</p>
|
|
179
|
+
<h3 id="execution">Execution</h3>
|
|
180
|
+
<ul>
|
|
181
|
+
<li><strong>Run button</strong> or <code>Ctrl+Enter</code> — execute the script.</li>
|
|
182
|
+
<li><code>print()</code> inside scripts is redirected to both the Debug Output panel and the Event Log panel.</li>
|
|
183
|
+
<li>Unhandled exceptions in scripts print a traceback to Debug Output.</li>
|
|
184
|
+
</ul>
|
|
185
|
+
<h3 id="context">Context</h3>
|
|
186
|
+
<p>Scripts run with the following globals pre-injected:</p>
|
|
187
|
+
<pre><code class="language-python">app # MainWindow — high-level application control
|
|
188
|
+
scene # NodeScene — active canvas manipulation
|
|
189
|
+
registry # NodeRegistry — node type database
|
|
190
|
+
git # GitWrapper — source control
|
|
191
|
+
</code></pre>
|
|
192
|
+
<hr />
|
|
193
|
+
<h2 id="2-global-objects-reference">2. Global Objects Reference</h2>
|
|
194
|
+
<table>
|
|
195
|
+
<thead>
|
|
196
|
+
<tr>
|
|
197
|
+
<th>Object</th>
|
|
198
|
+
<th>Type</th>
|
|
199
|
+
<th>Module</th>
|
|
200
|
+
<th>Description</th>
|
|
201
|
+
</tr>
|
|
202
|
+
</thead>
|
|
203
|
+
<tbody>
|
|
204
|
+
<tr>
|
|
205
|
+
<td><code>app</code></td>
|
|
206
|
+
<td><code>MainWindow</code></td>
|
|
207
|
+
<td><code>src.ui.window</code></td>
|
|
208
|
+
<td>Main application window; tab management, execution, themes</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td><code>scene</code></td>
|
|
212
|
+
<td><code>NodeScene</code></td>
|
|
213
|
+
<td><code>src.ui.canvas.scene</code></td>
|
|
214
|
+
<td>Active canvas; node creation, wiring, querying</td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr>
|
|
217
|
+
<td><code>registry</code></td>
|
|
218
|
+
<td><code>NodeRegistry</code></td>
|
|
219
|
+
<td><code>src.core.registry</code></td>
|
|
220
|
+
<td>Node type registry; definitions, reload, source paths</td>
|
|
221
|
+
</tr>
|
|
222
|
+
<tr>
|
|
223
|
+
<td><code>git</code></td>
|
|
224
|
+
<td><code>GitWrapper</code></td>
|
|
225
|
+
<td><code>src.utils.git_wrapper</code></td>
|
|
226
|
+
<td>Git operations on the project repository</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr>
|
|
229
|
+
<td><code>print()</code></td>
|
|
230
|
+
<td>built-in</td>
|
|
231
|
+
<td>—</td>
|
|
232
|
+
<td>Redirected to Debug Output + Event Log</td>
|
|
233
|
+
</tr>
|
|
234
|
+
</tbody>
|
|
235
|
+
</table>
|
|
236
|
+
<hr />
|
|
237
|
+
<h2 id="3-scene-api-nodescene">3. Scene API — NodeScene</h2>
|
|
238
|
+
<p>All scene methods operate on the <strong>currently active tab</strong>. Switch tabs first if you need to target a different workflow.</p>
|
|
239
|
+
<h3 id="node-creation-and-discovery">Node Creation and Discovery</h3>
|
|
240
|
+
<pre><code class="language-python">node = scene.add_node_by_name(node_id, pos=(x, y))
|
|
241
|
+
</code></pre>
|
|
242
|
+
<table>
|
|
243
|
+
<thead>
|
|
244
|
+
<tr>
|
|
245
|
+
<th>Parameter</th>
|
|
246
|
+
<th>Type</th>
|
|
247
|
+
<th>Description</th>
|
|
248
|
+
</tr>
|
|
249
|
+
</thead>
|
|
250
|
+
<tbody>
|
|
251
|
+
<tr>
|
|
252
|
+
<td><code>node_id</code></td>
|
|
253
|
+
<td><code>str</code></td>
|
|
254
|
+
<td>Registry ID of the node type (e.g. <code>"math_add"</code>, <code>"console_print"</code>)</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td><code>pos</code></td>
|
|
258
|
+
<td><code>tuple(int, int)</code></td>
|
|
259
|
+
<td>Canvas position in scene coordinates</td>
|
|
260
|
+
</tr>
|
|
261
|
+
<tr>
|
|
262
|
+
<td><strong>Returns</strong></td>
|
|
263
|
+
<td><code>NodeWidget</code></td>
|
|
264
|
+
<td>The newly created node widget</td>
|
|
265
|
+
</tr>
|
|
266
|
+
</tbody>
|
|
267
|
+
</table>
|
|
268
|
+
<pre><code class="language-python">node = scene.find_node_by_name(display_name)
|
|
269
|
+
</code></pre>
|
|
270
|
+
<p>Returns the first <code>NodeWidget</code> whose display name matches. Returns <code>None</code> if not found.</p>
|
|
271
|
+
<pre><code class="language-python">nodes = scene.nodes
|
|
272
|
+
</code></pre>
|
|
273
|
+
<p>List of all <code>NodeWidget</code> objects currently on the canvas.</p>
|
|
274
|
+
<h3 id="wiring">Wiring</h3>
|
|
275
|
+
<pre><code class="language-python">scene.connect_nodes(node_a, port_a, node_b, port_b)
|
|
276
|
+
</code></pre>
|
|
277
|
+
<table>
|
|
278
|
+
<thead>
|
|
279
|
+
<tr>
|
|
280
|
+
<th>Parameter</th>
|
|
281
|
+
<th>Type</th>
|
|
282
|
+
<th>Description</th>
|
|
283
|
+
</tr>
|
|
284
|
+
</thead>
|
|
285
|
+
<tbody>
|
|
286
|
+
<tr>
|
|
287
|
+
<td><code>node_a</code></td>
|
|
288
|
+
<td><code>NodeWidget</code> or <code>str</code></td>
|
|
289
|
+
<td>Source node (or its display name)</td>
|
|
290
|
+
</tr>
|
|
291
|
+
<tr>
|
|
292
|
+
<td><code>port_a</code></td>
|
|
293
|
+
<td><code>str</code></td>
|
|
294
|
+
<td>Output port name on node_a</td>
|
|
295
|
+
</tr>
|
|
296
|
+
<tr>
|
|
297
|
+
<td><code>node_b</code></td>
|
|
298
|
+
<td><code>NodeWidget</code> or <code>str</code></td>
|
|
299
|
+
<td>Destination node (or its display name)</td>
|
|
300
|
+
</tr>
|
|
301
|
+
<tr>
|
|
302
|
+
<td><code>port_b</code></td>
|
|
303
|
+
<td><code>str</code></td>
|
|
304
|
+
<td>Input port name on node_b</td>
|
|
305
|
+
</tr>
|
|
306
|
+
</tbody>
|
|
307
|
+
</table>
|
|
308
|
+
<p>Connecting to an already-occupied input automatically disconnects the previous wire.</p>
|
|
309
|
+
<h3 id="canvas-control">Canvas Control</h3>
|
|
310
|
+
<pre><code class="language-python">scene.clear()
|
|
311
|
+
</code></pre>
|
|
312
|
+
<p>Removes all nodes, wires, sticky notes, and backdrops from the current canvas. Equivalent to File → New Workflow (but stays in the same tab).</p>
|
|
313
|
+
<hr />
|
|
314
|
+
<h2 id="4-application-api-mainwindow">4. Application API — MainWindow</h2>
|
|
315
|
+
<h3 id="tab-management">Tab Management</h3>
|
|
316
|
+
<pre><code class="language-python">app.add_new_workflow(name="Untitled")
|
|
317
|
+
</code></pre>
|
|
318
|
+
<p>Opens a new empty workflow tab with the given name. Returns nothing; the new tab becomes active.</p>
|
|
319
|
+
<pre><code class="language-python">app.save_workflow()
|
|
320
|
+
</code></pre>
|
|
321
|
+
<p>Triggers a save. If the current workflow has never been saved, opens a Save As dialog. Otherwise writes to the existing path.</p>
|
|
322
|
+
<h3 id="execution_1">Execution</h3>
|
|
323
|
+
<pre><code class="language-python">app.execute_pipeline()
|
|
324
|
+
</code></pre>
|
|
325
|
+
<p>Starts the execution engine for the active tab. Equivalent to pressing <strong>F5</strong>. The call is non-blocking — execution runs asynchronously. Monitor the Log Panel or use signals for completion notification.</p>
|
|
326
|
+
<blockquote>
|
|
327
|
+
<p><strong>Note</strong>: The engine is asyncio-based on the Qt main thread. Calling <code>execute_pipeline()</code> from the Scripting Console while execution is already running will queue a second run after the first completes.</p>
|
|
328
|
+
</blockquote>
|
|
329
|
+
<h3 id="theme">Theme</h3>
|
|
330
|
+
<pre><code class="language-python">app.set_theme("dark") # Dracula dark theme
|
|
331
|
+
app.set_theme("light") # One-Light theme
|
|
332
|
+
</code></pre>
|
|
333
|
+
<h3 id="workflow-path">Workflow Path</h3>
|
|
334
|
+
<pre><code class="language-python">path = app.get_current_workflow_path() # Returns str or None
|
|
335
|
+
</code></pre>
|
|
336
|
+
<hr />
|
|
337
|
+
<h2 id="5-node-api-nodewidget">5. Node API — NodeWidget</h2>
|
|
338
|
+
<p>Nodes returned by <code>scene.add_node_by_name()</code> or <code>scene.find_node_by_name()</code> are <code>NodeWidget</code> instances.</p>
|
|
339
|
+
<h3 id="parameters">Parameters</h3>
|
|
340
|
+
<pre><code class="language-python">node.set_parameter(name, value)
|
|
341
|
+
</code></pre>
|
|
342
|
+
<p>Sets a widget value programmatically. Triggers downstream reactive propagation. For dropdown ports, passing a <code>list</code> updates the dropdown options.</p>
|
|
343
|
+
<pre><code class="language-python">value = node.get_parameter(name, default=None)
|
|
344
|
+
</code></pre>
|
|
345
|
+
<p>Safely reads the current widget or parameter value.</p>
|
|
346
|
+
<h3 id="node-definition">Node Definition</h3>
|
|
347
|
+
<pre><code class="language-python">defn = node.node_definition # BaseNode subclass instance
|
|
348
|
+
</code></pre>
|
|
349
|
+
<p>Access the underlying Python logic object. From <code>defn</code> you can:</p>
|
|
350
|
+
<pre><code class="language-python">defn.name # str — node ID
|
|
351
|
+
defn.bypassed # bool — True if bypassed
|
|
352
|
+
defn.log_info(msg) # send a message to the Log Panel
|
|
353
|
+
defn.parameters # dict — full parameter state
|
|
354
|
+
</code></pre>
|
|
355
|
+
<h3 id="bypass-state">Bypass State</h3>
|
|
356
|
+
<pre><code class="language-python">node.node_definition.bypassed = True # bypass
|
|
357
|
+
node.node_definition.bypassed = False # restore
|
|
358
|
+
</code></pre>
|
|
359
|
+
<h3 id="position">Position</h3>
|
|
360
|
+
<pre><code class="language-python">node.setPos(x, y) # QGraphicsItem.setPos
|
|
361
|
+
pos = node.scenePos() # QPointF scene coordinates
|
|
362
|
+
</code></pre>
|
|
363
|
+
<h3 id="instance-id">Instance ID</h3>
|
|
364
|
+
<pre><code class="language-python">node.instance_id # UUID — unique per canvas instance
|
|
365
|
+
</code></pre>
|
|
366
|
+
<hr />
|
|
367
|
+
<h2 id="6-registry-api-noderegistry">6. Registry API — NodeRegistry</h2>
|
|
368
|
+
<h3 id="querying-definitions">Querying Definitions</h3>
|
|
369
|
+
<pre><code class="language-python">defn = registry.get_definition(node_id)
|
|
370
|
+
</code></pre>
|
|
371
|
+
<p>Returns a <code>NodeDefinitionJSON</code> (Pydantic model) or <code>None</code>. Fields include <code>node_id</code>, <code>name</code>, <code>category</code>, <code>inputs</code>, <code>outputs</code>, <code>use_exec</code>, <code>python_code</code>.</p>
|
|
372
|
+
<pre><code class="language-python">all_ids = list(registry._classes.keys()) # all registered node IDs
|
|
373
|
+
</code></pre>
|
|
374
|
+
<h3 id="source-paths">Source Paths</h3>
|
|
375
|
+
<pre><code class="language-python">path = registry.get_source_path(node_id)
|
|
376
|
+
</code></pre>
|
|
377
|
+
<p>Returns the absolute on-disk path to the <code>.json</code> definition file, or <code>None</code> for built-in nodes.</p>
|
|
378
|
+
<h3 id="hot-reload">Hot Reload</h3>
|
|
379
|
+
<pre><code class="language-python">success = registry.reload_node_definition(node_id)
|
|
380
|
+
</code></pre>
|
|
381
|
+
<p>Re-reads the JSON from disk, recompiles the Python class, and replaces the registry entry. Returns <code>True</code> on success. Call <code>scene.reload_node_type(node_id)</code> afterward to update live canvas instances:</p>
|
|
382
|
+
<pre><code class="language-python">registry.reload_node_definition("my_custom_node")
|
|
383
|
+
scene.reload_node_type("my_custom_node")
|
|
384
|
+
</code></pre>
|
|
385
|
+
<p>Or reload all types at once (equivalent to <code>Ctrl+Shift+R</code>):</p>
|
|
386
|
+
<pre><code class="language-python">for node_id in list(registry._classes.keys()):
|
|
387
|
+
registry.reload_node_definition(node_id)
|
|
388
|
+
</code></pre>
|
|
389
|
+
<h3 id="inspect-a-node-type">Inspect a Node Type</h3>
|
|
390
|
+
<pre><code class="language-python">defn = registry.get_definition("math_add")
|
|
391
|
+
print(defn.category) # "Math"
|
|
392
|
+
print(defn.use_exec) # True
|
|
393
|
+
for port in defn.inputs:
|
|
394
|
+
print(port.name, port.type, port.widget_type)
|
|
395
|
+
</code></pre>
|
|
396
|
+
<hr />
|
|
397
|
+
<h2 id="7-git-api-gitwrapper">7. Git API — GitWrapper</h2>
|
|
398
|
+
<p><code>git</code> provides source control operations on the project directory.</p>
|
|
399
|
+
<pre><code class="language-python">git.status() # Print working tree status
|
|
400
|
+
git.commit("message") # Stage all changes and commit
|
|
401
|
+
git.push() # Push to remote
|
|
402
|
+
git.pull() # Pull from remote
|
|
403
|
+
git.log(n=10) # Print last N commits
|
|
404
|
+
</code></pre>
|
|
405
|
+
<p>Example — automated backup after workflow save:</p>
|
|
406
|
+
<pre><code class="language-python">app.save_workflow()
|
|
407
|
+
git.commit(f"Automated backup: {app.get_current_workflow_path()}")
|
|
408
|
+
git.push()
|
|
409
|
+
print("Workflow pushed to repository.")
|
|
410
|
+
</code></pre>
|
|
411
|
+
<hr />
|
|
412
|
+
<h2 id="8-python-runtime-and-environment">8. Python Runtime and Environment</h2>
|
|
413
|
+
<h3 id="vibrante_pythonpath">VIBRANTE_PYTHONPATH</h3>
|
|
414
|
+
<p>Extra <code>sys.path</code> entries configured in <strong>Edit → Preferences → Python Runtime</strong>. These are injected at startup, making any Python packages in those directories importable from node code.</p>
|
|
415
|
+
<pre><code class="language-python"># In a node's execute():
|
|
416
|
+
import my_studio_lib # resolvable because its parent dir is in VIBRANTE_PYTHONPATH
|
|
417
|
+
</code></pre>
|
|
418
|
+
<p>Access from the Scripting Console:</p>
|
|
419
|
+
<pre><code class="language-python">import sys
|
|
420
|
+
print(sys.path) # verify your paths are present
|
|
421
|
+
</code></pre>
|
|
422
|
+
<h3 id="custom-environment-variables">Custom Environment Variables</h3>
|
|
423
|
+
<p>Configured in <strong>Edit → Preferences → Environment Variables</strong>. Available as standard <code>os.environ</code> entries:</p>
|
|
424
|
+
<pre><code class="language-python">import os
|
|
425
|
+
root = os.environ.get("STUDIO_ROOT", "")
|
|
426
|
+
</code></pre>
|
|
427
|
+
<h3 id="v_nodes_dir-and-v_scripts_path">v_nodes_dir and v_scripts_path</h3>
|
|
428
|
+
<table>
|
|
429
|
+
<thead>
|
|
430
|
+
<tr>
|
|
431
|
+
<th>Variable</th>
|
|
432
|
+
<th>Purpose</th>
|
|
433
|
+
</tr>
|
|
434
|
+
</thead>
|
|
435
|
+
<tbody>
|
|
436
|
+
<tr>
|
|
437
|
+
<td><code>v_nodes_dir</code></td>
|
|
438
|
+
<td>Extra directories scanned for <code>.json</code> node definitions</td>
|
|
439
|
+
</tr>
|
|
440
|
+
<tr>
|
|
441
|
+
<td><code>v_scripts_path</code></td>
|
|
442
|
+
<td>Extra directories scanned for Scripts menu <code>.py</code> files</td>
|
|
443
|
+
</tr>
|
|
444
|
+
</tbody>
|
|
445
|
+
</table>
|
|
446
|
+
<p>Both support multiple paths (colon-separated on the stored value). Configured in <strong>Edit → Preferences → Application Paths</strong>. Changes apply on OK without restarting.</p>
|
|
447
|
+
<h3 id="runtime-introspection">Runtime Introspection</h3>
|
|
448
|
+
<pre><code class="language-python">import os, sys
|
|
449
|
+
|
|
450
|
+
# Which node directories are loaded?
|
|
451
|
+
print(os.environ.get("v_nodes_dir", "(none)"))
|
|
452
|
+
|
|
453
|
+
# What Python packages are available?
|
|
454
|
+
import importlib
|
|
455
|
+
for pkg in ["pydantic", "PyQt5", "aiohttp", "toposort"]:
|
|
456
|
+
try:
|
|
457
|
+
importlib.import_module(pkg)
|
|
458
|
+
print(f"{pkg}: OK")
|
|
459
|
+
except ImportError:
|
|
460
|
+
print(f"{pkg}: not installed")
|
|
461
|
+
</code></pre>
|
|
462
|
+
<hr />
|
|
463
|
+
<h2 id="9-headless-and-subprocess-execution">9. Headless and Subprocess Execution</h2>
|
|
464
|
+
<h3 id="maya-headless-action-pattern">Maya — Headless Action Pattern</h3>
|
|
465
|
+
<p>Maya nodes build an action list; <code>maya_headless</code> executes it in a batch Maya session. From a script you can construct and run a Maya pipeline programmatically:</p>
|
|
466
|
+
<pre><code class="language-python"># Build a Maya headless workflow programmatically
|
|
467
|
+
scene.clear()
|
|
468
|
+
|
|
469
|
+
open_node = scene.add_node_by_name("maya_action_open_scene", (0, 0))
|
|
470
|
+
open_node.set_parameter("scene_path", "C:/projects/myproject/scenes/shot_010.ma")
|
|
471
|
+
|
|
472
|
+
render_node = scene.add_node_by_name("maya_action_render", (300, 0))
|
|
473
|
+
render_node.set_parameter("camera", "renderCam")
|
|
474
|
+
render_node.set_parameter("start_frame", 1001)
|
|
475
|
+
render_node.set_parameter("end_frame", 1100)
|
|
476
|
+
|
|
477
|
+
exec_node = scene.add_node_by_name("maya_headless", (600, 0))
|
|
478
|
+
|
|
479
|
+
scene.connect_nodes(open_node, "actions_out", render_node, "actions_in")
|
|
480
|
+
scene.connect_nodes(render_node, "actions_out", exec_node, "actions_in")
|
|
481
|
+
scene.connect_nodes(open_node, "exec_out", render_node, "exec_in")
|
|
482
|
+
scene.connect_nodes(render_node, "exec_out", exec_node, "exec_in")
|
|
483
|
+
|
|
484
|
+
app.execute_pipeline()
|
|
485
|
+
</code></pre>
|
|
486
|
+
<h3 id="blender-same-pattern">Blender — Same Pattern</h3>
|
|
487
|
+
<p>Replace <code>maya_action_*</code> with <code>blender_action_*</code> and <code>maya_headless</code> with <code>blender_headless</code>.</p>
|
|
488
|
+
<h3 id="houdini-live-bridge">Houdini — Live Bridge</h3>
|
|
489
|
+
<p>For Houdini, Vibrante-Node must be launched from within Houdini. From a script you can trigger Houdini operations the same way as from a node:</p>
|
|
490
|
+
<pre><code class="language-python">from src.utils.hou_bridge import get_bridge
|
|
491
|
+
bridge = get_bridge()
|
|
492
|
+
|
|
493
|
+
result = bridge.run_code(
|
|
494
|
+
"nodes = [n.name() for n in hou.node('/obj').children()]; result = nodes"
|
|
495
|
+
)
|
|
496
|
+
print(result["result"])
|
|
497
|
+
</code></pre>
|
|
498
|
+
<h3 id="houdini-runtime-layer-direct-python-access">Houdini — Runtime Layer (Direct Python Access)</h3>
|
|
499
|
+
<p>The <code>src.runtime</code> module can be called directly from Python scripts without going through the visual canvas. This is useful for pipeline automation tools that embed Vibrante's orchestration logic.</p>
|
|
500
|
+
<pre><code class="language-python">import asyncio
|
|
501
|
+
from src.runtime import houdini_runtime, transaction_manager
|
|
502
|
+
|
|
503
|
+
async def build_pyro_scene():
|
|
504
|
+
# Get structured scene snapshot
|
|
505
|
+
ctx = await houdini_runtime.scene_context()
|
|
506
|
+
print(ctx["scene"]["hip_file"])
|
|
507
|
+
|
|
508
|
+
# Execute with automatic rollback on failure
|
|
509
|
+
mgr = transaction_manager.get_transaction_manager()
|
|
510
|
+
txn_id = mgr.begin_transaction("build_pyro")
|
|
511
|
+
|
|
512
|
+
op = await houdini_runtime.execute_operation({
|
|
513
|
+
"op": "create_node",
|
|
514
|
+
"parent": "/obj",
|
|
515
|
+
"type": "geo",
|
|
516
|
+
"name": "pyro_geo",
|
|
517
|
+
})
|
|
518
|
+
|
|
519
|
+
if op["status"] == "ok":
|
|
520
|
+
mgr.record_operation(txn_id, op)
|
|
521
|
+
mgr.commit_transaction(txn_id)
|
|
522
|
+
print("Created:", op["result"]["path"])
|
|
523
|
+
else:
|
|
524
|
+
mgr.rollback_transaction(txn_id)
|
|
525
|
+
print("Failed:", op["error"])
|
|
526
|
+
|
|
527
|
+
asyncio.run(build_pyro_scene())
|
|
528
|
+
</code></pre>
|
|
529
|
+
<hr />
|
|
530
|
+
<h2 id="10-automation-script-examples">10. Automation Script Examples</h2>
|
|
531
|
+
<p>The <code>examples/automation/</code> directory contains 11 scripts demonstrating real automation patterns. Below are representative examples.</p>
|
|
532
|
+
<h3 id="01-linear-chain">01 — Linear Chain</h3>
|
|
533
|
+
<p>Source: <code>examples/automation/01_linear_chain.py</code></p>
|
|
534
|
+
<p>Builds a simple sequential chain of nodes programmatically.</p>
|
|
535
|
+
<pre><code class="language-python"># Build: [Message Node] -> [Console Print]
|
|
536
|
+
scene.clear()
|
|
537
|
+
|
|
538
|
+
msg = scene.add_node_by_name("message_node", (0, 0))
|
|
539
|
+
msg.set_parameter("msg", "Hello from automation")
|
|
540
|
+
|
|
541
|
+
printer = scene.add_node_by_name("console_print", (300, 0))
|
|
542
|
+
|
|
543
|
+
scene.connect_nodes(msg, "exec_out", printer, "exec_in")
|
|
544
|
+
scene.connect_nodes(msg, "out", printer, "data")
|
|
545
|
+
|
|
546
|
+
app.execute_pipeline()
|
|
547
|
+
print("Executed: linear chain")
|
|
548
|
+
</code></pre>
|
|
549
|
+
<h3 id="02-batch-prefix-update">02 — Batch Prefix Update</h3>
|
|
550
|
+
<p>Source: <code>examples/automation/02_batch_update_prefix.py</code></p>
|
|
551
|
+
<p>Finds all Message Node instances and updates their values in a batch.</p>
|
|
552
|
+
<pre><code class="language-python">target_prefix = "v2_"
|
|
553
|
+
|
|
554
|
+
for node in scene.nodes:
|
|
555
|
+
if node.node_definition.name == "message_node":
|
|
556
|
+
current = node.get_parameter("msg") or ""
|
|
557
|
+
if not current.startswith(target_prefix):
|
|
558
|
+
node.set_parameter("msg", target_prefix + current)
|
|
559
|
+
|
|
560
|
+
print("Batch prefix update complete.")
|
|
561
|
+
</code></pre>
|
|
562
|
+
<h3 id="03-scene-reset">03 — Scene Reset</h3>
|
|
563
|
+
<p>Source: <code>examples/automation/03_reset_scene.py</code></p>
|
|
564
|
+
<p>Resets all numeric parameters across the canvas.</p>
|
|
565
|
+
<pre><code class="language-python">reset_nodes = ["math_add", "math_multiply"]
|
|
566
|
+
|
|
567
|
+
for node in scene.nodes:
|
|
568
|
+
if node.node_definition.name in reset_nodes:
|
|
569
|
+
node.set_parameter("a", 0)
|
|
570
|
+
node.set_parameter("b", 0)
|
|
571
|
+
|
|
572
|
+
print(f"Reset {len(scene.nodes)} nodes.")
|
|
573
|
+
</code></pre>
|
|
574
|
+
<h3 id="04-batch-execution">04 — Batch Execution</h3>
|
|
575
|
+
<p>Source: <code>examples/automation/04_batch_execution.py</code></p>
|
|
576
|
+
<p>Runs the same workflow for a list of input values, capturing each result.</p>
|
|
577
|
+
<pre><code class="language-python">input_node = scene.find_node_by_name("Message Node")
|
|
578
|
+
values = ["Asset_A", "Asset_B", "Asset_C"]
|
|
579
|
+
|
|
580
|
+
for v in values:
|
|
581
|
+
input_node.set_parameter("msg", v)
|
|
582
|
+
app.execute_pipeline()
|
|
583
|
+
# Execution is async — results appear in the Log Panel sequentially
|
|
584
|
+
print(f"Queued execution for: {v}")
|
|
585
|
+
</code></pre>
|
|
586
|
+
<h3 id="05-git-backup">05 — Git Backup</h3>
|
|
587
|
+
<p>Source: <code>examples/automation/05_git_backup.py</code></p>
|
|
588
|
+
<p>Save the current workflow and commit it to version control.</p>
|
|
589
|
+
<pre><code class="language-python">app.save_workflow()
|
|
590
|
+
git.status()
|
|
591
|
+
git.commit("Automated workflow checkpoint")
|
|
592
|
+
git.push()
|
|
593
|
+
print("Workflow saved and pushed to remote.")
|
|
594
|
+
</code></pre>
|
|
595
|
+
<h3 id="07-stress-test-grid">07 — Stress Test Grid</h3>
|
|
596
|
+
<p>Source: <code>examples/automation/07_stress_test_grid.py</code></p>
|
|
597
|
+
<p>Generates a grid of nodes to test canvas performance.</p>
|
|
598
|
+
<pre><code class="language-python">scene.clear()
|
|
599
|
+
cols, rows = 10, 8
|
|
600
|
+
for row in range(rows):
|
|
601
|
+
for col in range(cols):
|
|
602
|
+
n = scene.add_node_by_name("message_node", (col * 280, row * 180))
|
|
603
|
+
n.set_parameter("msg", f"Node [{row},{col}]")
|
|
604
|
+
|
|
605
|
+
print(f"Created {cols * rows} nodes.")
|
|
606
|
+
</code></pre>
|
|
607
|
+
<h3 id="08-scene-summary">08 — Scene Summary</h3>
|
|
608
|
+
<p>Source: <code>examples/automation/08_scene_summary.py</code></p>
|
|
609
|
+
<p>Reports statistics about the current canvas.</p>
|
|
610
|
+
<pre><code class="language-python">from collections import Counter
|
|
611
|
+
|
|
612
|
+
counts = Counter(n.node_definition.name for n in scene.nodes)
|
|
613
|
+
|
|
614
|
+
print("=== Canvas Summary ===")
|
|
615
|
+
print(f"Total nodes: {len(scene.nodes)}")
|
|
616
|
+
for name, count in counts.most_common():
|
|
617
|
+
print(f" {name}: {count}")
|
|
618
|
+
</code></pre>
|
|
619
|
+
<h3 id="10-session-report">10 — Session Report</h3>
|
|
620
|
+
<p>Source: <code>examples/automation/10_session_report.py</code></p>
|
|
621
|
+
<p>Generates a human-readable report of the full canvas state.</p>
|
|
622
|
+
<pre><code class="language-python">import json
|
|
623
|
+
|
|
624
|
+
report = {
|
|
625
|
+
"node_count": len(scene.nodes),
|
|
626
|
+
"nodes": [
|
|
627
|
+
{
|
|
628
|
+
"id": str(n.instance_id),
|
|
629
|
+
"type": n.node_definition.name,
|
|
630
|
+
"bypassed": getattr(n.node_definition, "bypassed", False),
|
|
631
|
+
}
|
|
632
|
+
for n in scene.nodes
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
print(json.dumps(report, indent=2))
|
|
637
|
+
</code></pre>
|
|
638
|
+
<hr />
|
|
639
|
+
<h2 id="11-mcp-runtime-api-direct-orchestration">11. MCP Runtime API — Direct Orchestration</h2>
|
|
640
|
+
<p>Vibrante Runtime exposes a full MCP server that external AI clients (Claude Desktop, Codex CLI, Cursor, and any MCP-compatible tool) can connect to <strong>without the visual canvas</strong>. The runtime is fully headless — no Qt dependency, no display required.</p>
|
|
641
|
+
<h3 id="starting-the-mcp-server">Starting the MCP Server</h3>
|
|
642
|
+
<pre><code class="language-bash"># From the repo root
|
|
643
|
+
pip install "mcp>=1.0.0" pydantic toposort
|
|
644
|
+
|
|
645
|
+
python scripts/run_vibrante_mcp.py
|
|
646
|
+
</code></pre>
|
|
647
|
+
<p>The server starts on stdio and blocks until the client disconnects. All 14 semantic tools are immediately available. Houdini-dependent tools (<code>query_scene_context</code>, <code>execute_workflow_transaction</code>) connect to the live bridge automatically when a Houdini session is running.</p>
|
|
648
|
+
<h3 id="ai-client-configuration">AI Client Configuration</h3>
|
|
649
|
+
<p><strong>Claude Desktop</strong> (<code>~/.claude/settings.json</code>):</p>
|
|
650
|
+
<pre><code class="language-json">{
|
|
651
|
+
"mcpServers": {
|
|
652
|
+
"vibrante": {
|
|
653
|
+
"command": "python",
|
|
654
|
+
"args": ["D:/Vibrante-Node/source/scripts/run_vibrante_mcp.py"],
|
|
655
|
+
"env": { "VIBRANTE_HOU_PORT": "18811" }
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
</code></pre>
|
|
660
|
+
<p><strong>Codex CLI</strong> (<code>~/.config/codex/config.toml</code>):</p>
|
|
661
|
+
<pre><code class="language-toml">[mcp_servers.vibrante]
|
|
662
|
+
command = "python"
|
|
663
|
+
args = ["D:/Vibrante-Node/source/scripts/run_vibrante_mcp.py"]
|
|
664
|
+
trust_level = "trusted"
|
|
665
|
+
</code></pre>
|
|
666
|
+
<p><strong>Cursor</strong> (<code>.cursor/mcp.json</code> in workspace root):</p>
|
|
667
|
+
<pre><code class="language-json">{
|
|
668
|
+
"mcpServers": {
|
|
669
|
+
"vibrante": {
|
|
670
|
+
"command": "python",
|
|
671
|
+
"args": ["D:/Vibrante-Node/source/scripts/run_vibrante_mcp.py"]
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
</code></pre>
|
|
676
|
+
<h3 id="python-client-via-mcp_runtime">Python Client via <code>mcp_runtime</code></h3>
|
|
677
|
+
<p>From within Vibrante's event loop you can also call external MCP servers as a client:</p>
|
|
678
|
+
<pre><code class="language-python">from src.runtime import mcp_runtime
|
|
679
|
+
|
|
680
|
+
# Register an MCP server (stdio transport — launches a subprocess)
|
|
681
|
+
await mcp_runtime.register_server(
|
|
682
|
+
"my_server", "stdio",
|
|
683
|
+
{"command": "npx", "args": ["-y", "@modelcontextprotocol/server-everything"]}
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
# List available tools
|
|
687
|
+
tools = await mcp_runtime.list_tools("my_server")
|
|
688
|
+
for t in tools:
|
|
689
|
+
print(t["name"], "-", t["description"])
|
|
690
|
+
|
|
691
|
+
# Call a tool
|
|
692
|
+
result = await mcp_runtime.call_tool("my_server", "echo", {"message": "hello"})
|
|
693
|
+
print(result["result_json"])
|
|
694
|
+
</code></pre>
|
|
695
|
+
<h3 id="semantic-execution-from-python">Semantic Execution from Python</h3>
|
|
696
|
+
<p>The full semantic pipeline is available without the canvas or MCP:</p>
|
|
697
|
+
<pre><code class="language-python">from src.runtime.semantic_execution import get_semantic_executor
|
|
698
|
+
from src.runtime.runtime_bootstrap import initialize_runtime
|
|
699
|
+
|
|
700
|
+
# Initialize all runtime singletons
|
|
701
|
+
initialize_runtime()
|
|
702
|
+
|
|
703
|
+
executor = get_semantic_executor()
|
|
704
|
+
|
|
705
|
+
# Translate a named intent to an execution plan (no execution)
|
|
706
|
+
plan = await executor.translate("build_pyro_source", {
|
|
707
|
+
"parent": "/obj",
|
|
708
|
+
"name": "fire_sim",
|
|
709
|
+
"style": "smoke",
|
|
710
|
+
})
|
|
711
|
+
print(plan["operations"])
|
|
712
|
+
|
|
713
|
+
# Execute end-to-end with automatic rollback on failure
|
|
714
|
+
result = await executor.execute("build_pyro_source", {
|
|
715
|
+
"parent": "/obj",
|
|
716
|
+
"name": "fire_sim",
|
|
717
|
+
}, dry_run=False, auto_commit=True, rollback_on_error=True)
|
|
718
|
+
|
|
719
|
+
print(result["status"]) # "committed" | "rolled_back" | "failed"
|
|
720
|
+
print(result["graph_diff"]) # what changed in the scene
|
|
721
|
+
</code></pre>
|
|
722
|
+
<h3 id="mcp-tool-registry-from-python">MCP Tool Registry from Python</h3>
|
|
723
|
+
<p>Register custom tools that the MCP server exposes to AI clients:</p>
|
|
724
|
+
<pre><code class="language-python">from src.runtime.mcp_tool_registry import get_mcp_tool_registry, ToolDefinition
|
|
725
|
+
|
|
726
|
+
registry = get_mcp_tool_registry()
|
|
727
|
+
|
|
728
|
+
async def my_handler(arguments):
|
|
729
|
+
return {"ok": True, "result": f"custom: {arguments.get('name', '')}"}
|
|
730
|
+
|
|
731
|
+
registry.register_tool(ToolDefinition(
|
|
732
|
+
name="my_studio_tool",
|
|
733
|
+
description="Studio-specific operation",
|
|
734
|
+
inputSchema={"type": "object", "properties": {"name": {"type": "string"}}},
|
|
735
|
+
handler=my_handler,
|
|
736
|
+
category="custom",
|
|
737
|
+
))
|
|
738
|
+
</code></pre>
|
|
739
|
+
<blockquote>
|
|
740
|
+
<p><strong>Forbidden names:</strong> <code>create_node</code>, <code>set_parm</code>, <code>set_parms</code>, <code>run_python</code>, <code>run_code</code>, <code>delete_node</code>, <code>raw_houdini_execute</code>, <code>connect_nodes</code>, <code>cook_node</code> — registering any of these will raise <code>ValueError</code>. These are never exposed as MCP tools.</p>
|
|
741
|
+
</blockquote>
|
|
742
|
+
<h3 id="execution-safety-invariants">Execution Safety Invariants</h3>
|
|
743
|
+
<p>All mutations routed through the runtime respect these invariants regardless of how they are triggered (canvas node, Python API, or MCP tool):</p>
|
|
744
|
+
<ol>
|
|
745
|
+
<li><code>ValidationEngine</code> and <code>RuntimeConstraints</code> run before every transaction.</li>
|
|
746
|
+
<li>Plans with <code>ok=False</code> are rejected before any bridge call.</li>
|
|
747
|
+
<li>Plans with <code>requires_approval=True</code> block until an <code>approver</code> is supplied.</li>
|
|
748
|
+
<li>Rollback handlers never raise — failures are captured and reported.</li>
|
|
749
|
+
<li><code>scene_cache.invalidate("scene_context::")</code> is called after every mutation.</li>
|
|
750
|
+
</ol>
|
|
751
|
+
<hr />
|
|
752
|
+
<p><strong>See also:</strong></p>
|
|
753
|
+
<ul>
|
|
754
|
+
<li><a href="USER_GUIDE.md">User Guide</a> — Scripting Console location and basic usage</li>
|
|
755
|
+
<li><a href="NODE_BUILDER_API.md">Node Builder API</a> — building nodes that expose scriptable parameters</li>
|
|
756
|
+
<li><a href="DEVELOPER.md">Developer Guide</a> — engine internals, Runtime Layer architecture (Tiers 1–6)</li>
|
|
757
|
+
<li><a href="DOCUMENTATION.md">Technical Reference</a> — Runtime Layer API reference, MCP Semantic Tools reference</li>
|
|
758
|
+
<li><code>examples/automation/</code> — full collection of automation scripts</li>
|
|
759
|
+
<li><code>examples/nodes/</code> — custom node Python source examples</li>
|
|
760
|
+
<li><code>scripts/run_vibrante_mcp.py</code> — MCP server entry point</li>
|
|
761
|
+
</ul>
|
|
762
|
+
<section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
|
|
763
|
+
<p>Documentation &copy; 2024&ndash;2026 Mahmoud Kamal (KamalTD), licensed under
|
|
764
|
+
<a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
|
|
765
|
+
<a href="LICENSE.txt">Full licence notice</a>.</p>
|
|
766
|
+
<p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
|
|
767
|
+
and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
|
|
768
|
+
cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
|
|
769
|
+
</section>
|
|
770
|
+
</main>
|
|
771
|
+
<script>
|
|
772
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
773
|
+
var links = document.querySelectorAll('.sidebar a');
|
|
774
|
+
var headings = document.querySelectorAll('h1,h2,h3');
|
|
775
|
+
window.addEventListener('scroll', function() {
|
|
776
|
+
var cur = '';
|
|
777
|
+
headings.forEach(function(h) { if (h.offsetTop <= window.scrollY + 80) cur = h.id; });
|
|
778
|
+
links.forEach(function(a) {
|
|
779
|
+
a.classList.toggle('active', a.getAttribute('href') === '#' + cur);
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
</script>
|
|
784
|
+
</body>
|
|
785
|
+
</html>
|