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,1473 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<meta name="description" content="Vibrante-Node v2.5.1 — Workflow Tutorials">
|
|
7
|
+
<title>Workflow Tutorials — Vibrante-Node Docs</title>
|
|
8
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/styles/atom-one-dark.min.css">
|
|
9
|
+
<style>
|
|
10
|
+
/* ── Reset & Variables ─────────────────────────────────────────────────── */
|
|
11
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
12
|
+
:root {
|
|
13
|
+
--bg: #1e1e2e;
|
|
14
|
+
--surface: #181825;
|
|
15
|
+
--surface2: #11111b;
|
|
16
|
+
--border: #313244;
|
|
17
|
+
--text: #cdd6f4;
|
|
18
|
+
--subtext: #a6adc8;
|
|
19
|
+
--muted: #6c7086;
|
|
20
|
+
--lavender: #b4befe;
|
|
21
|
+
--blue: #89b4fa;
|
|
22
|
+
--teal: #94e2d5;
|
|
23
|
+
--green: #a6e3a1;
|
|
24
|
+
--yellow: #f9e2af;
|
|
25
|
+
--peach: #fab387;
|
|
26
|
+
--red: #f38ba8;
|
|
27
|
+
--pink: #f5c2e7;
|
|
28
|
+
--mauve: #cba6f7;
|
|
29
|
+
--sidebar-w: 260px;
|
|
30
|
+
--toc-w: 220px;
|
|
31
|
+
--header-h: 56px;
|
|
32
|
+
--font: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
33
|
+
--mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ── Layout ─────────────────────────────────────────────────────────────── */
|
|
37
|
+
html { scroll-behavior: smooth; }
|
|
38
|
+
body {
|
|
39
|
+
font-family: var(--font);
|
|
40
|
+
background: var(--bg);
|
|
41
|
+
color: var(--text);
|
|
42
|
+
line-height: 1.7;
|
|
43
|
+
min-height: 100vh;
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-rows: var(--header-h) 1fr;
|
|
46
|
+
grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
|
|
47
|
+
grid-template-areas:
|
|
48
|
+
"header header header"
|
|
49
|
+
"sidebar content toc";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ── Header ─────────────────────────────────────────────────────────────── */
|
|
53
|
+
.header {
|
|
54
|
+
grid-area: header;
|
|
55
|
+
position: sticky; top: 0; z-index: 200;
|
|
56
|
+
background: var(--surface2);
|
|
57
|
+
border-bottom: 1px solid var(--border);
|
|
58
|
+
display: flex; align-items: center; gap: 16px;
|
|
59
|
+
padding: 0 24px;
|
|
60
|
+
}
|
|
61
|
+
.header-logo {
|
|
62
|
+
font-weight: 700; font-size: 1.05em;
|
|
63
|
+
color: var(--mauve);
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
.header-version {
|
|
68
|
+
font-size: .78em;
|
|
69
|
+
background: var(--border);
|
|
70
|
+
color: var(--subtext);
|
|
71
|
+
padding: 2px 8px; border-radius: 12px;
|
|
72
|
+
}
|
|
73
|
+
.header-spacer { flex: 1; }
|
|
74
|
+
.search-wrap { position: relative; }
|
|
75
|
+
#search-input {
|
|
76
|
+
background: var(--surface);
|
|
77
|
+
border: 1px solid var(--border);
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
color: var(--text);
|
|
80
|
+
font-family: var(--font);
|
|
81
|
+
font-size: .9em;
|
|
82
|
+
padding: 6px 14px 6px 36px;
|
|
83
|
+
width: 260px;
|
|
84
|
+
outline: none;
|
|
85
|
+
transition: border-color .15s;
|
|
86
|
+
}
|
|
87
|
+
#search-input:focus { border-color: var(--mauve); }
|
|
88
|
+
.search-icon {
|
|
89
|
+
position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
|
|
90
|
+
color: var(--muted); pointer-events: none; font-size: .9em;
|
|
91
|
+
}
|
|
92
|
+
#search-results {
|
|
93
|
+
position: absolute; top: calc(100% + 8px); right: 0;
|
|
94
|
+
width: 380px; max-height: 420px; overflow-y: auto;
|
|
95
|
+
background: var(--surface);
|
|
96
|
+
border: 1px solid var(--border);
|
|
97
|
+
border-radius: 10px;
|
|
98
|
+
box-shadow: 0 8px 32px rgba(0,0,0,.5);
|
|
99
|
+
display: none; z-index: 300;
|
|
100
|
+
}
|
|
101
|
+
#search-results.visible { display: block; }
|
|
102
|
+
.search-result-item {
|
|
103
|
+
padding: 10px 16px;
|
|
104
|
+
border-bottom: 1px solid var(--border);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
transition: background .1s;
|
|
107
|
+
}
|
|
108
|
+
.search-result-item:last-child { border-bottom: none; }
|
|
109
|
+
.search-result-item:hover { background: var(--bg); }
|
|
110
|
+
.search-result-title { color: var(--blue); font-weight: 600; font-size: .9em; }
|
|
111
|
+
.search-result-excerpt { color: var(--subtext); font-size: .82em; margin-top: 2px; line-height: 1.4; }
|
|
112
|
+
.search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: .9em; }
|
|
113
|
+
|
|
114
|
+
/* ── Sidebar ─────────────────────────────────────────────────────────────── */
|
|
115
|
+
.sidebar {
|
|
116
|
+
grid-area: sidebar;
|
|
117
|
+
position: sticky; top: var(--header-h);
|
|
118
|
+
height: calc(100vh - var(--header-h));
|
|
119
|
+
overflow-y: auto;
|
|
120
|
+
background: var(--surface);
|
|
121
|
+
border-right: 1px solid var(--border);
|
|
122
|
+
padding: 20px 0;
|
|
123
|
+
scrollbar-width: thin;
|
|
124
|
+
scrollbar-color: var(--border) transparent;
|
|
125
|
+
}
|
|
126
|
+
.sidebar::-webkit-scrollbar { width: 4px; }
|
|
127
|
+
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
|
|
128
|
+
|
|
129
|
+
.sidebar-group { margin-bottom: 4px; }
|
|
130
|
+
.sidebar-group-title {
|
|
131
|
+
font-size: .7em;
|
|
132
|
+
text-transform: uppercase;
|
|
133
|
+
letter-spacing: .1em;
|
|
134
|
+
color: var(--muted);
|
|
135
|
+
padding: 10px 20px 4px;
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
}
|
|
138
|
+
.sidebar-link {
|
|
139
|
+
display: flex; align-items: center; gap: 8px;
|
|
140
|
+
padding: 6px 20px;
|
|
141
|
+
color: var(--subtext);
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
font-size: .88em;
|
|
144
|
+
border-left: 3px solid transparent;
|
|
145
|
+
transition: all .12s;
|
|
146
|
+
line-height: 1.3;
|
|
147
|
+
}
|
|
148
|
+
.sidebar-link:hover { color: var(--text); background: var(--bg); }
|
|
149
|
+
.sidebar-link.active {
|
|
150
|
+
color: var(--mauve);
|
|
151
|
+
border-left-color: var(--mauve);
|
|
152
|
+
background: rgba(180,190,254,.06);
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
.sidebar-num {
|
|
156
|
+
font-size: .7em;
|
|
157
|
+
color: var(--muted);
|
|
158
|
+
background: var(--border);
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
padding: 1px 5px;
|
|
161
|
+
flex-shrink: 0;
|
|
162
|
+
}
|
|
163
|
+
.sidebar-divider {
|
|
164
|
+
border: none;
|
|
165
|
+
border-top: 1px solid var(--border);
|
|
166
|
+
margin: 12px 16px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* ── Content ─────────────────────────────────────────────────────────────── */
|
|
170
|
+
.content {
|
|
171
|
+
grid-area: content;
|
|
172
|
+
min-width: 0;
|
|
173
|
+
padding: 40px 48px 80px;
|
|
174
|
+
max-width: 860px;
|
|
175
|
+
}
|
|
176
|
+
.content-inner { max-width: 820px; }
|
|
177
|
+
|
|
178
|
+
/* Breadcrumb */
|
|
179
|
+
.breadcrumb {
|
|
180
|
+
font-size: .8em;
|
|
181
|
+
color: var(--muted);
|
|
182
|
+
margin-bottom: 28px;
|
|
183
|
+
display: flex; align-items: center; gap: 6px;
|
|
184
|
+
}
|
|
185
|
+
.breadcrumb a { color: var(--blue); text-decoration: none; }
|
|
186
|
+
.breadcrumb a:hover { text-decoration: underline; }
|
|
187
|
+
.breadcrumb-sep { color: var(--border); }
|
|
188
|
+
|
|
189
|
+
/* Typography */
|
|
190
|
+
h1 { font-size: 2em; color: var(--mauve); border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 20px 0 20px; }
|
|
191
|
+
h2 { font-size: 1.45em; color: var(--blue); margin: 40px 0 14px; padding-top: 8px; }
|
|
192
|
+
h3 { font-size: 1.15em; color: var(--teal); margin: 28px 0 10px; }
|
|
193
|
+
h4 { font-size: 1em; color: var(--pink); margin: 20px 0 8px; }
|
|
194
|
+
h5 { font-size: .95em; color: var(--yellow); margin: 16px 0 6px; }
|
|
195
|
+
p { margin-bottom: 16px; color: var(--text); }
|
|
196
|
+
a { color: var(--blue); }
|
|
197
|
+
a:hover { text-decoration: underline; }
|
|
198
|
+
strong { color: var(--peach); }
|
|
199
|
+
em { color: var(--yellow); font-style: italic; }
|
|
200
|
+
|
|
201
|
+
ul, ol { margin: 10px 0 16px 24px; }
|
|
202
|
+
li { margin-bottom: 6px; }
|
|
203
|
+
li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }
|
|
204
|
+
|
|
205
|
+
blockquote {
|
|
206
|
+
border-left: 4px solid var(--mauve);
|
|
207
|
+
padding: 10px 20px;
|
|
208
|
+
margin: 16px 0;
|
|
209
|
+
background: rgba(180,190,254,.05);
|
|
210
|
+
border-radius: 0 8px 8px 0;
|
|
211
|
+
color: var(--subtext);
|
|
212
|
+
}
|
|
213
|
+
blockquote strong { color: var(--mauve); }
|
|
214
|
+
|
|
215
|
+
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
|
|
216
|
+
|
|
217
|
+
/* Code */
|
|
218
|
+
code {
|
|
219
|
+
background: var(--surface2);
|
|
220
|
+
color: var(--red);
|
|
221
|
+
padding: 2px 7px; border-radius: 5px;
|
|
222
|
+
font-family: var(--mono); font-size: .87em;
|
|
223
|
+
}
|
|
224
|
+
pre {
|
|
225
|
+
background: var(--surface2) !important;
|
|
226
|
+
border: 1px solid var(--border);
|
|
227
|
+
border-radius: 10px;
|
|
228
|
+
padding: 20px 22px;
|
|
229
|
+
overflow-x: auto;
|
|
230
|
+
margin: 16px 0 22px;
|
|
231
|
+
position: relative;
|
|
232
|
+
}
|
|
233
|
+
pre code {
|
|
234
|
+
background: none !important;
|
|
235
|
+
color: inherit !important;
|
|
236
|
+
padding: 0; font-size: .9em;
|
|
237
|
+
border-radius: 0;
|
|
238
|
+
}
|
|
239
|
+
/* Copy button */
|
|
240
|
+
.copy-btn {
|
|
241
|
+
position: absolute; top: 10px; right: 12px;
|
|
242
|
+
background: var(--border);
|
|
243
|
+
color: var(--subtext);
|
|
244
|
+
border: none; border-radius: 5px;
|
|
245
|
+
padding: 3px 10px; font-size: .75em;
|
|
246
|
+
cursor: pointer; transition: all .12s;
|
|
247
|
+
font-family: var(--font);
|
|
248
|
+
}
|
|
249
|
+
.copy-btn:hover { background: var(--mauve); color: var(--surface2); }
|
|
250
|
+
.copy-btn.copied { background: var(--green); color: var(--surface2); }
|
|
251
|
+
|
|
252
|
+
/* Tables */
|
|
253
|
+
table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: .9em; }
|
|
254
|
+
th { background: var(--border); color: var(--mauve); padding: 10px 14px; text-align: left; font-weight: 600; }
|
|
255
|
+
td { border-top: 1px solid var(--border); padding: 9px 14px; color: var(--text); }
|
|
256
|
+
tr:nth-child(even) td { background: rgba(17,17,27,.4); }
|
|
257
|
+
td code { font-size: .85em; }
|
|
258
|
+
|
|
259
|
+
/* Callout boxes */
|
|
260
|
+
.callout {
|
|
261
|
+
border-radius: 8px;
|
|
262
|
+
padding: 14px 18px;
|
|
263
|
+
margin: 16px 0 22px;
|
|
264
|
+
border-left: 4px solid;
|
|
265
|
+
}
|
|
266
|
+
.callout-note { background: rgba(137,180,250,.08); border-color: var(--blue); }
|
|
267
|
+
.callout-tip { background: rgba(166,227,161,.08); border-color: var(--green); }
|
|
268
|
+
.callout-warning { background: rgba(249,226,175,.08); border-color: var(--yellow); }
|
|
269
|
+
.callout-danger { background: rgba(243,139,168,.08); border-color: var(--red); }
|
|
270
|
+
.callout-title { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
|
|
271
|
+
.callout-note .callout-title { color: var(--blue); }
|
|
272
|
+
.callout-tip .callout-title { color: var(--green); }
|
|
273
|
+
.callout-warning .callout-title { color: var(--yellow); }
|
|
274
|
+
.callout-danger .callout-title { color: var(--red); }
|
|
275
|
+
|
|
276
|
+
/* Validation badges */
|
|
277
|
+
.val-badge {
|
|
278
|
+
display: inline-block; font-size: .78em; font-weight: 600;
|
|
279
|
+
padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
|
|
280
|
+
border: 1px solid transparent; letter-spacing: .02em;
|
|
281
|
+
}
|
|
282
|
+
.val-badge-ok { background: rgba(166,227,161,.12); border-color: var(--green); color: var(--green); }
|
|
283
|
+
.val-badge-warn { background: rgba(249,226,175,.12); border-color: var(--yellow); color: var(--yellow); }
|
|
284
|
+
.val-badge-error { background: rgba(243,139,168,.12); border-color: var(--red); color: var(--red); }
|
|
285
|
+
.val-badge-unknown { background: rgba(108,112,134,.12); border-color: #6c7086; color: #6c7086; }
|
|
286
|
+
|
|
287
|
+
/* Prev/Next navigation */
|
|
288
|
+
.page-nav {
|
|
289
|
+
display: flex; justify-content: space-between;
|
|
290
|
+
margin-top: 60px; padding-top: 24px;
|
|
291
|
+
border-top: 1px solid var(--border);
|
|
292
|
+
gap: 16px;
|
|
293
|
+
}
|
|
294
|
+
.page-nav-link {
|
|
295
|
+
display: flex; flex-direction: column;
|
|
296
|
+
text-decoration: none;
|
|
297
|
+
padding: 14px 20px;
|
|
298
|
+
background: var(--surface);
|
|
299
|
+
border: 1px solid var(--border);
|
|
300
|
+
border-radius: 10px;
|
|
301
|
+
min-width: 200px;
|
|
302
|
+
transition: border-color .15s;
|
|
303
|
+
max-width: 48%;
|
|
304
|
+
}
|
|
305
|
+
.page-nav-link:hover { border-color: var(--mauve); }
|
|
306
|
+
.page-nav-label { font-size: .75em; color: var(--muted); margin-bottom: 4px; }
|
|
307
|
+
.page-nav-title { color: var(--blue); font-weight: 600; font-size: .95em; }
|
|
308
|
+
.page-nav-link.prev .page-nav-label::before { content: '← '; }
|
|
309
|
+
.page-nav-link.next { margin-left: auto; text-align: right; }
|
|
310
|
+
.page-nav-link.next .page-nav-label::after { content: ' →'; }
|
|
311
|
+
|
|
312
|
+
/* ── TOC (right panel) ───────────────────────────────────────────────────── */
|
|
313
|
+
.toc {
|
|
314
|
+
grid-area: toc;
|
|
315
|
+
position: sticky; top: var(--header-h);
|
|
316
|
+
height: calc(100vh - var(--header-h));
|
|
317
|
+
overflow-y: auto;
|
|
318
|
+
padding: 28px 16px 28px 8px;
|
|
319
|
+
scrollbar-width: thin;
|
|
320
|
+
scrollbar-color: var(--border) transparent;
|
|
321
|
+
}
|
|
322
|
+
.toc-title {
|
|
323
|
+
font-size: .72em;
|
|
324
|
+
text-transform: uppercase;
|
|
325
|
+
letter-spacing: .1em;
|
|
326
|
+
color: var(--muted);
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
margin-bottom: 12px;
|
|
329
|
+
padding-left: 8px;
|
|
330
|
+
}
|
|
331
|
+
.toc-link {
|
|
332
|
+
display: block;
|
|
333
|
+
padding: 4px 8px;
|
|
334
|
+
color: var(--subtext);
|
|
335
|
+
text-decoration: none;
|
|
336
|
+
font-size: .82em;
|
|
337
|
+
border-left: 2px solid transparent;
|
|
338
|
+
border-radius: 0 4px 4px 0;
|
|
339
|
+
transition: all .12s;
|
|
340
|
+
line-height: 1.35;
|
|
341
|
+
margin-bottom: 1px;
|
|
342
|
+
}
|
|
343
|
+
.toc-link:hover { color: var(--text); border-left-color: var(--border); }
|
|
344
|
+
.toc-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.05); }
|
|
345
|
+
.toc-link.toc-h3 { padding-left: 20px; font-size: .79em; }
|
|
346
|
+
.toc-link.toc-h4 { padding-left: 32px; font-size: .76em; color: var(--muted); }
|
|
347
|
+
|
|
348
|
+
/* ── Responsive ──────────────────────────────────────────────────────────── */
|
|
349
|
+
@media (max-width: 1100px) {
|
|
350
|
+
body { grid-template-columns: var(--sidebar-w) 1fr 0; }
|
|
351
|
+
.toc { display: none; }
|
|
352
|
+
}
|
|
353
|
+
@media (max-width: 760px) {
|
|
354
|
+
body { grid-template-columns: 0 1fr 0; grid-template-rows: var(--header-h) 1fr; }
|
|
355
|
+
.sidebar { display: none; }
|
|
356
|
+
.content { padding: 24px 20px 60px; }
|
|
357
|
+
#search-input { width: 180px; }
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* ── Index / landing page ────────────────────────────────────────────────── */
|
|
361
|
+
.hero { text-align: center; padding: 60px 0 48px; }
|
|
362
|
+
.hero h1 { border: none; font-size: 2.8em; }
|
|
363
|
+
.hero .tagline { color: var(--subtext); font-size: 1.15em; margin-top: 10px; }
|
|
364
|
+
.hero .version-badge {
|
|
365
|
+
display: inline-block;
|
|
366
|
+
background: var(--border); color: var(--mauve);
|
|
367
|
+
padding: 4px 14px; border-radius: 20px; font-size: .85em;
|
|
368
|
+
margin-top: 14px;
|
|
369
|
+
}
|
|
370
|
+
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 36px; }
|
|
371
|
+
.doc-card {
|
|
372
|
+
background: var(--surface);
|
|
373
|
+
border: 1px solid var(--border);
|
|
374
|
+
border-radius: 12px;
|
|
375
|
+
padding: 20px 24px;
|
|
376
|
+
text-decoration: none;
|
|
377
|
+
color: var(--text);
|
|
378
|
+
transition: border-color .15s, background .15s;
|
|
379
|
+
display: block;
|
|
380
|
+
}
|
|
381
|
+
.doc-card:hover { border-color: var(--mauve); background: rgba(180,190,254,.04); }
|
|
382
|
+
.doc-card-num { font-size: .72em; color: var(--muted); margin-bottom: 4px; }
|
|
383
|
+
.doc-card-title { color: var(--blue); font-weight: 700; font-size: 1em; margin-bottom: 6px; }
|
|
384
|
+
.doc-card-desc { color: var(--subtext); font-size: .85em; line-height: 1.5; }
|
|
385
|
+
.group-title { color: var(--teal); font-size: 1.1em; font-weight: 600; margin: 32px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
|
|
386
|
+
</style>
|
|
387
|
+
<span id="portal-base" data-base="" style="display:none"></span>
|
|
388
|
+
</head>
|
|
389
|
+
<body>
|
|
390
|
+
|
|
391
|
+
<!-- ── Header ─────────────────────────────────────────────────────────── -->
|
|
392
|
+
<header class="header">
|
|
393
|
+
<a class="header-logo" href="index.html">Vibrante-Node</a>
|
|
394
|
+
<span class="header-version">v2.5.1</span>
|
|
395
|
+
<div class="header-spacer"></div>
|
|
396
|
+
<div class="search-wrap">
|
|
397
|
+
<span class="search-icon">🔍</span>
|
|
398
|
+
<input id="search-input" type="text" placeholder="Search docs… (/)" autocomplete="off" spellcheck="false">
|
|
399
|
+
<div id="search-results"></div>
|
|
400
|
+
</div>
|
|
401
|
+
</header>
|
|
402
|
+
|
|
403
|
+
<!-- ── Sidebar ────────────────────────────────────────────────────────── -->
|
|
404
|
+
<nav class="sidebar">
|
|
405
|
+
<div class="sidebar-group">
|
|
406
|
+
<div class="sidebar-group-title">Overview</div>
|
|
407
|
+
<a class="sidebar-link" href="01_introduction.html"><span class="sidebar-num">01</span>Introduction</a>
|
|
408
|
+
<a class="sidebar-link" href="02_getting_started.html"><span class="sidebar-num">02</span>Getting Started</a>
|
|
409
|
+
</div>
|
|
410
|
+
<div class="sidebar-group">
|
|
411
|
+
<div class="sidebar-group-title">Using the App</div>
|
|
412
|
+
<a class="sidebar-link" href="03_user_guide.html"><span class="sidebar-num">03</span>User Guide</a>
|
|
413
|
+
<a class="sidebar-link active" href="04_workflow_tutorials.html"><span class="sidebar-num">04</span>Workflow Tutorials</a>
|
|
414
|
+
</div>
|
|
415
|
+
<div class="sidebar-group">
|
|
416
|
+
<div class="sidebar-group-title">Developing Nodes</div>
|
|
417
|
+
<a class="sidebar-link" href="05_node_development.html"><span class="sidebar-num">05</span>Node Development Guide</a>
|
|
418
|
+
<a class="sidebar-link" href="14_custom_nodes_api.html"><span class="sidebar-num">14</span>Custom Nodes API</a>
|
|
419
|
+
<a class="sidebar-link" href="08_api_reference.html"><span class="sidebar-num">08</span>API Reference</a>
|
|
420
|
+
</div>
|
|
421
|
+
<div class="sidebar-group">
|
|
422
|
+
<div class="sidebar-group-title">Architecture</div>
|
|
423
|
+
<a class="sidebar-link" href="06_backend_architecture.html"><span class="sidebar-num">06</span>Backend Architecture</a>
|
|
424
|
+
<a class="sidebar-link" href="07_frontend_architecture.html"><span class="sidebar-num">07</span>Frontend Architecture</a>
|
|
425
|
+
</div>
|
|
426
|
+
<div class="sidebar-group">
|
|
427
|
+
<div class="sidebar-group-title">Advanced</div>
|
|
428
|
+
<a class="sidebar-link" href="09_advanced_topics.html"><span class="sidebar-num">09</span>Advanced Topics</a>
|
|
429
|
+
<a class="sidebar-link" href="10_contribution_guide.html"><span class="sidebar-num">10</span>Contribution Guide</a>
|
|
430
|
+
</div>
|
|
431
|
+
<div class="sidebar-group">
|
|
432
|
+
<div class="sidebar-group-title">Reference</div>
|
|
433
|
+
<a class="sidebar-link" href="11_troubleshooting.html"><span class="sidebar-num">11</span>Troubleshooting</a>
|
|
434
|
+
<a class="sidebar-link" href="12_examples_library.html"><span class="sidebar-num">12</span>Examples Library</a>
|
|
435
|
+
<a class="sidebar-link" href="13_general_purpose_automation.html"><span class="sidebar-num">13</span>General Purpose Automation</a>
|
|
436
|
+
</div>
|
|
437
|
+
|
|
438
|
+
</nav>
|
|
439
|
+
|
|
440
|
+
<!-- ── Main content ───────────────────────────────────────────────────── -->
|
|
441
|
+
<main class="content">
|
|
442
|
+
<div class="content-inner">
|
|
443
|
+
<nav class="breadcrumb"><a href="index.html">Docs</a><span class="breadcrumb-sep">›</span><span>Workflow Tutorials</span></nav>
|
|
444
|
+
<div class="val-badge val-badge-ok" title="Verified against source code">✓ Verified</div>
|
|
445
|
+
<p># Workflow Tutorials</p>
|
|
446
|
+
<p>This chapter walks you through ten complete, self-contained tutorials. Each tutorial builds a real workflow from scratch and shows exactly which nodes to use, how to wire them, and what to expect in the log panel. All examples use the built-in node set unless explicitly noted.</p>
|
|
447
|
+
<hr />
|
|
448
|
+
<h2 id="tutorial-1-basic-file-renaming-workflow">Tutorial 1: Basic File Renaming Workflow</h2>
|
|
449
|
+
<p><strong>Goal:</strong> Load a list of filenames from a folder, apply a naming convention (lowercase with underscores), and rename every file on disk. Print a summary when done.</p>
|
|
450
|
+
<h3 id="nodes-used">Nodes Used</h3>
|
|
451
|
+
<table>
|
|
452
|
+
<thead>
|
|
453
|
+
<tr>
|
|
454
|
+
<th>Node</th>
|
|
455
|
+
<th>Role</th>
|
|
456
|
+
</tr>
|
|
457
|
+
</thead>
|
|
458
|
+
<tbody>
|
|
459
|
+
<tr>
|
|
460
|
+
<td>Python Script</td>
|
|
461
|
+
<td>List all files in a folder</td>
|
|
462
|
+
</tr>
|
|
463
|
+
<tr>
|
|
464
|
+
<td>ForEach</td>
|
|
465
|
+
<td>Iterate over each filename</td>
|
|
466
|
+
</tr>
|
|
467
|
+
<tr>
|
|
468
|
+
<td>String Lower</td>
|
|
469
|
+
<td>Convert each name to lowercase</td>
|
|
470
|
+
</tr>
|
|
471
|
+
<tr>
|
|
472
|
+
<td>Python Script (inner)</td>
|
|
473
|
+
<td>Replace spaces with underscores, rename file</td>
|
|
474
|
+
</tr>
|
|
475
|
+
<tr>
|
|
476
|
+
<td>Console Print</td>
|
|
477
|
+
<td>Report result</td>
|
|
478
|
+
</tr>
|
|
479
|
+
</tbody>
|
|
480
|
+
</table>
|
|
481
|
+
<h3 id="step-by-step-build">Step-by-Step Build</h3>
|
|
482
|
+
<p><strong>1. Create the entry Python Script node</strong></p>
|
|
483
|
+
<p>Open the Node Library (left panel) and drag a <strong>Python Script</strong> node onto the canvas. This will be the entry point — it fires first when you click Run.</p>
|
|
484
|
+
<p>In the node's code editor paste:</p>
|
|
485
|
+
<pre><code class="language-python">import os
|
|
486
|
+
|
|
487
|
+
folder = inputs.get("data", "")
|
|
488
|
+
if not folder or not os.path.isdir(folder):
|
|
489
|
+
result = []
|
|
490
|
+
else:
|
|
491
|
+
result = [
|
|
492
|
+
os.path.join(folder, f)
|
|
493
|
+
for f in os.listdir(folder)
|
|
494
|
+
if os.path.isfile(os.path.join(folder, f))
|
|
495
|
+
]
|
|
496
|
+
</code></pre>
|
|
497
|
+
<p>Set the folder path as the default value on the <code>data</code> port (in the node's parameter editor). Connect <code>exec_out</code> to the ForEach node.</p>
|
|
498
|
+
<p><strong>2. ForEach node</strong></p>
|
|
499
|
+
<p>Drag a <strong>ForEach</strong> node onto the canvas. Connect:<br />
|
|
500
|
+
- <code>result</code> output → ForEach <code>items</code> input<br />
|
|
501
|
+
- Python Script <code>exec_out</code> → ForEach <code>exec_in</code></p>
|
|
502
|
+
<p>ForEach fires its <code>loop_exec_out</code> once per item, passing the current item on the <code>current_item</code> port.</p>
|
|
503
|
+
<p><strong>3. String Lower node</strong></p>
|
|
504
|
+
<p>Drag <strong>String Lower</strong>. Connect:<br />
|
|
505
|
+
- ForEach <code>current_item</code> → String Lower <code>string</code> input</p>
|
|
506
|
+
<p>This converts the full path to lowercase. However, we only want to lowercase the filename, not the whole path. Use a Python Script node instead:</p>
|
|
507
|
+
<pre><code class="language-python">import os
|
|
508
|
+
|
|
509
|
+
full_path = inputs.get("data", "")
|
|
510
|
+
folder = os.path.dirname(full_path)
|
|
511
|
+
old_name = os.path.basename(full_path)
|
|
512
|
+
|
|
513
|
+
new_name = old_name.lower().replace(" ", "_")
|
|
514
|
+
new_path = os.path.join(folder, new_name)
|
|
515
|
+
|
|
516
|
+
result = {"old_path": full_path, "new_path": new_path, "new_name": new_name}
|
|
517
|
+
</code></pre>
|
|
518
|
+
<p><strong>4. Rename Python Script node</strong></p>
|
|
519
|
+
<p>Add another Python Script node. Wire the transform script's <code>result</code> → this node's <code>data</code> input:</p>
|
|
520
|
+
<pre><code class="language-python">import os
|
|
521
|
+
|
|
522
|
+
info = inputs.get("data", {})
|
|
523
|
+
old_path = info.get("old_path", "")
|
|
524
|
+
new_path = info.get("new_path", "")
|
|
525
|
+
|
|
526
|
+
if old_path and new_path and old_path != new_path:
|
|
527
|
+
try:
|
|
528
|
+
os.rename(old_path, new_path)
|
|
529
|
+
result = f"Renamed: {old_path} -> {new_path}"
|
|
530
|
+
except OSError as e:
|
|
531
|
+
result = f"ERROR: {e}"
|
|
532
|
+
else:
|
|
533
|
+
result = f"Skipped (no change): {old_path}"
|
|
534
|
+
</code></pre>
|
|
535
|
+
<p><strong>5. Console Print</strong></p>
|
|
536
|
+
<p>Connect the <code>result</code> output to a <strong>Console Print</strong> node. Wire the rename node's <code>exec_out</code> back to the ForEach <code>loop_exec_in</code> to continue the loop.</p>
|
|
537
|
+
<p><strong>6. Final summary</strong></p>
|
|
538
|
+
<p>Connect ForEach <code>exec_out</code> (fires after the loop completes) to a Console Print with the message <code>"Renaming complete."</code>.</p>
|
|
539
|
+
<h3 id="running-the-workflow">Running the Workflow</h3>
|
|
540
|
+
<p>Set the folder path as the default value on the entry node's <code>data</code> port (or wire it from an upstream node). Click <strong>Run</strong>. Watch the log panel — each rename or skip appears in sequence.</p>
|
|
541
|
+
<hr />
|
|
542
|
+
<h2 id="tutorial-2-data-transformation-pipeline">Tutorial 2: Data Transformation Pipeline</h2>
|
|
543
|
+
<p><strong>Goal:</strong> Read a JSON file containing records (e.g., a list of people with names and birthdates), transform the data (uppercase names, reformat dates), and write the result to a new JSON file. Log a summary.</p>
|
|
544
|
+
<h3 id="nodes-used_1">Nodes Used</h3>
|
|
545
|
+
<table>
|
|
546
|
+
<thead>
|
|
547
|
+
<tr>
|
|
548
|
+
<th>Node</th>
|
|
549
|
+
<th>Role</th>
|
|
550
|
+
</tr>
|
|
551
|
+
</thead>
|
|
552
|
+
<tbody>
|
|
553
|
+
<tr>
|
|
554
|
+
<td>File Load</td>
|
|
555
|
+
<td>Read source JSON</td>
|
|
556
|
+
</tr>
|
|
557
|
+
<tr>
|
|
558
|
+
<td>JSON Parse</td>
|
|
559
|
+
<td>Decode file content</td>
|
|
560
|
+
</tr>
|
|
561
|
+
<tr>
|
|
562
|
+
<td>Python Script</td>
|
|
563
|
+
<td>Transform records</td>
|
|
564
|
+
</tr>
|
|
565
|
+
<tr>
|
|
566
|
+
<td>File Save</td>
|
|
567
|
+
<td>Write output JSON</td>
|
|
568
|
+
</tr>
|
|
569
|
+
<tr>
|
|
570
|
+
<td>Console Print</td>
|
|
571
|
+
<td>Log summary</td>
|
|
572
|
+
</tr>
|
|
573
|
+
</tbody>
|
|
574
|
+
</table>
|
|
575
|
+
<h3 id="step-by-step-build_1">Step-by-Step Build</h3>
|
|
576
|
+
<p><strong>1. File Load</strong></p>
|
|
577
|
+
<p>Drag <strong>File Load</strong> onto the canvas. Set <code>file_path</code> to your source JSON file (e.g., <code>people.json</code>). The <code>content</code> output carries the raw text.</p>
|
|
578
|
+
<p><strong>2. JSON Parse</strong></p>
|
|
579
|
+
<p>Connect <code>File Load.content</code> → <code>JSON Parse.json_string</code>. The <code>data</code> output is the decoded Python object (list or dict).</p>
|
|
580
|
+
<p><strong>3. Transform Python Script</strong></p>
|
|
581
|
+
<pre><code class="language-python">import json
|
|
582
|
+
from datetime import datetime
|
|
583
|
+
|
|
584
|
+
records = inputs.get("data", [])
|
|
585
|
+
transformed = []
|
|
586
|
+
|
|
587
|
+
for record in records:
|
|
588
|
+
new_record = dict(record)
|
|
589
|
+
|
|
590
|
+
# Uppercase the name field
|
|
591
|
+
if "name" in new_record:
|
|
592
|
+
new_record["name"] = str(new_record["name"]).upper()
|
|
593
|
+
|
|
594
|
+
# Reformat birthdate from YYYY-MM-DD to DD/MM/YYYY
|
|
595
|
+
if "birthdate" in new_record:
|
|
596
|
+
try:
|
|
597
|
+
dt = datetime.strptime(new_record["birthdate"], "%Y-%m-%d")
|
|
598
|
+
new_record["birthdate"] = dt.strftime("%d/%m/%Y")
|
|
599
|
+
except ValueError:
|
|
600
|
+
pass # leave malformed dates untouched
|
|
601
|
+
|
|
602
|
+
transformed.append(new_record)
|
|
603
|
+
|
|
604
|
+
result = json.dumps(transformed, indent=2)
|
|
605
|
+
</code></pre>
|
|
606
|
+
<p><strong>4. File Save</strong></p>
|
|
607
|
+
<p>Connect the transform script's <code>result</code> → <code>File Save.content</code>. Set <code>file_path</code> to <code>people_transformed.json</code>. Wire <code>exec_out</code> chain through.</p>
|
|
608
|
+
<p><strong>5. Console Print</strong></p>
|
|
609
|
+
<p>Add another <strong>Python Script</strong> node. Wire the transform script's <code>result</code> → its <code>data</code> input to build a summary:</p>
|
|
610
|
+
<pre><code class="language-python">import json
|
|
611
|
+
json_str = inputs.get("data", "[]")
|
|
612
|
+
try:
|
|
613
|
+
count = len(json.loads(json_str))
|
|
614
|
+
except Exception:
|
|
615
|
+
count = 0
|
|
616
|
+
result = f"Transformation complete. {count} records processed."
|
|
617
|
+
</code></pre>
|
|
618
|
+
<p>Then connect <code>result</code> → Console Print.</p>
|
|
619
|
+
<h3 id="key-points">Key Points</h3>
|
|
620
|
+
<ul>
|
|
621
|
+
<li>JSON Parse handles both list-of-dicts and plain dicts.</li>
|
|
622
|
+
<li>All transform logic lives in one Python Script node, making it easy to add or remove transformation steps.</li>
|
|
623
|
+
<li>File Save overwrites the target file. To write alongside the original, compute the output path dynamically.</li>
|
|
624
|
+
</ul>
|
|
625
|
+
<hr />
|
|
626
|
+
<h2 id="tutorial-3-conditional-execution-ifelse-logic">Tutorial 3: Conditional Execution (If/Else Logic)</h2>
|
|
627
|
+
<p><strong>Goal:</strong> Check whether a numeric value exceeds a threshold. Route execution to an "above threshold" branch or a "below threshold" branch. Both branches converge at a final log node.</p>
|
|
628
|
+
<h3 id="nodes-used_2">Nodes Used</h3>
|
|
629
|
+
<table>
|
|
630
|
+
<thead>
|
|
631
|
+
<tr>
|
|
632
|
+
<th>Node</th>
|
|
633
|
+
<th>Role</th>
|
|
634
|
+
</tr>
|
|
635
|
+
</thead>
|
|
636
|
+
<tbody>
|
|
637
|
+
<tr>
|
|
638
|
+
<td>Python Script</td>
|
|
639
|
+
<td>Compute or receive the value</td>
|
|
640
|
+
</tr>
|
|
641
|
+
<tr>
|
|
642
|
+
<td>Python Script</td>
|
|
643
|
+
<td>Evaluate condition → bool</td>
|
|
644
|
+
</tr>
|
|
645
|
+
<tr>
|
|
646
|
+
<td>TwoWaySwitch</td>
|
|
647
|
+
<td>Route exec based on bool</td>
|
|
648
|
+
</tr>
|
|
649
|
+
<tr>
|
|
650
|
+
<td>Console Print (×2)</td>
|
|
651
|
+
<td>Branch-specific messages</td>
|
|
652
|
+
</tr>
|
|
653
|
+
<tr>
|
|
654
|
+
<td>Console Print</td>
|
|
655
|
+
<td>Final convergence message</td>
|
|
656
|
+
</tr>
|
|
657
|
+
</tbody>
|
|
658
|
+
</table>
|
|
659
|
+
<h3 id="step-by-step-build_2">Step-by-Step Build</h3>
|
|
660
|
+
<p><strong>1. Source value</strong></p>
|
|
661
|
+
<pre><code class="language-python"># Simulated: in practice this could come from a file, API, etc.
|
|
662
|
+
result = {"value": 87.3, "threshold": 75.0}
|
|
663
|
+
</code></pre>
|
|
664
|
+
<p><strong>2. Condition evaluator</strong></p>
|
|
665
|
+
<p>Wire the source script's <code>result</code> → this node's <code>data</code> input:</p>
|
|
666
|
+
<pre><code class="language-python">data = inputs.get("data", {})
|
|
667
|
+
value = data.get("value", 0.0)
|
|
668
|
+
threshold = data.get("threshold", 0.0)
|
|
669
|
+
result = value > threshold
|
|
670
|
+
</code></pre>
|
|
671
|
+
<p><strong>3. TwoWaySwitch</strong></p>
|
|
672
|
+
<p>Connect:<br />
|
|
673
|
+
- <code>result</code> (bool) → TwoWaySwitch <code>condition</code> input<br />
|
|
674
|
+
- Condition evaluator <code>exec_out</code> → TwoWaySwitch <code>exec_in</code></p>
|
|
675
|
+
<p>TwoWaySwitch has two exec outputs:<br />
|
|
676
|
+
- <code>exec_true</code> — fires when condition is <code>True</code><br />
|
|
677
|
+
- <code>exec_false</code> — fires when condition is <code>False</code></p>
|
|
678
|
+
<p><strong>4. True branch</strong></p>
|
|
679
|
+
<p>Connect <code>exec_true</code> → Console Print A. Set A's message port to a static string <code>"Value exceeds threshold — triggering alert."</code> or pipe a dynamic string through.</p>
|
|
680
|
+
<p><strong>5. False branch</strong></p>
|
|
681
|
+
<p>Connect <code>exec_false</code> → Console Print B with <code>"Value is within threshold — no action needed."</code>.</p>
|
|
682
|
+
<p><strong>6. Convergence</strong></p>
|
|
683
|
+
<p>Both Console Print nodes' <code>exec_out</code> pins connect to a shared final Console Print node with the message <code>"Check complete."</code>.</p>
|
|
684
|
+
<blockquote>
|
|
685
|
+
<p><strong>Note:</strong> In Vibrante-Node, multiple <code>exec_out</code> connections into a single <code>exec_in</code> are valid. The engine executes the target node once for whichever upstream exec fires. Since TwoWaySwitch fires exactly one branch, the final node runs exactly once.</p>
|
|
686
|
+
</blockquote>
|
|
687
|
+
<h3 id="extending-to-multi-branch-logic">Extending to Multi-Branch Logic</h3>
|
|
688
|
+
<p>For more than two conditions, chain TwoWaySwitches:</p>
|
|
689
|
+
<pre><code>Condition A → TwoWaySwitch 1
|
|
690
|
+
exec_true → branch A
|
|
691
|
+
exec_false → Condition B → TwoWaySwitch 2
|
|
692
|
+
exec_true → branch B
|
|
693
|
+
exec_false → branch C (default)
|
|
694
|
+
</code></pre>
|
|
695
|
+
<hr />
|
|
696
|
+
<h2 id="tutorial-4-loop-over-a-list">Tutorial 4: Loop Over a List</h2>
|
|
697
|
+
<p><strong>Goal:</strong> Take a list of names, process each one (title-case), collect the results, and print the final processed list.</p>
|
|
698
|
+
<h3 id="nodes-used_3">Nodes Used</h3>
|
|
699
|
+
<table>
|
|
700
|
+
<thead>
|
|
701
|
+
<tr>
|
|
702
|
+
<th>Node</th>
|
|
703
|
+
<th>Role</th>
|
|
704
|
+
</tr>
|
|
705
|
+
</thead>
|
|
706
|
+
<tbody>
|
|
707
|
+
<tr>
|
|
708
|
+
<td>Create List</td>
|
|
709
|
+
<td>Build or receive the input list</td>
|
|
710
|
+
</tr>
|
|
711
|
+
<tr>
|
|
712
|
+
<td>SetVariable</td>
|
|
713
|
+
<td>Initialize the accumulator</td>
|
|
714
|
+
</tr>
|
|
715
|
+
<tr>
|
|
716
|
+
<td>ForEach</td>
|
|
717
|
+
<td>Iterate over items</td>
|
|
718
|
+
</tr>
|
|
719
|
+
<tr>
|
|
720
|
+
<td>Python Script</td>
|
|
721
|
+
<td>Title-case each item</td>
|
|
722
|
+
</tr>
|
|
723
|
+
<tr>
|
|
724
|
+
<td>GetVariable</td>
|
|
725
|
+
<td>Read current accumulator</td>
|
|
726
|
+
</tr>
|
|
727
|
+
<tr>
|
|
728
|
+
<td>List Append</td>
|
|
729
|
+
<td>Add processed item</td>
|
|
730
|
+
</tr>
|
|
731
|
+
<tr>
|
|
732
|
+
<td>SetVariable</td>
|
|
733
|
+
<td>Update accumulator</td>
|
|
734
|
+
</tr>
|
|
735
|
+
<tr>
|
|
736
|
+
<td>GetVariable</td>
|
|
737
|
+
<td>Final read</td>
|
|
738
|
+
</tr>
|
|
739
|
+
<tr>
|
|
740
|
+
<td>Console Print</td>
|
|
741
|
+
<td>Output result</td>
|
|
742
|
+
</tr>
|
|
743
|
+
</tbody>
|
|
744
|
+
</table>
|
|
745
|
+
<h3 id="step-by-step-build_3">Step-by-Step Build</h3>
|
|
746
|
+
<p><strong>1. Create List</strong></p>
|
|
747
|
+
<p>Use <strong>Create List</strong> (or a Python Script) to produce your list:</p>
|
|
748
|
+
<pre><code class="language-python">result = ["alice smith", "BOB JONES", "carol WHITE", "david brown"]
|
|
749
|
+
</code></pre>
|
|
750
|
+
<p><strong>2. Initialize accumulator</strong></p>
|
|
751
|
+
<p>Drag <strong>SetVariable</strong>. Set <code>var_name</code> = <code>"processed_names"</code>, <code>value</code> = <code>[]</code> (empty list). Connect <code>exec_out</code> → ForEach <code>exec_in</code>.</p>
|
|
752
|
+
<p><strong>3. ForEach</strong></p>
|
|
753
|
+
<p>Connect <code>result</code> → ForEach <code>items</code>.</p>
|
|
754
|
+
<p>ForEach exposes:<br />
|
|
755
|
+
- <code>current_item</code> — the value at the current index<br />
|
|
756
|
+
- <code>current_index</code> — the 0-based index<br />
|
|
757
|
+
- <code>loop_exec_out</code> — exec pin that fires for each iteration (connect your loop body here)<br />
|
|
758
|
+
- <code>exec_out</code> — fires once after the loop finishes</p>
|
|
759
|
+
<p><strong>4. Process item</strong></p>
|
|
760
|
+
<p>Wire ForEach <code>current_item</code> → this script's <code>data</code> input:</p>
|
|
761
|
+
<pre><code class="language-python">item = inputs.get("data", "")
|
|
762
|
+
result = item.title()
|
|
763
|
+
</code></pre>
|
|
764
|
+
<p><strong>5. GetVariable → List Append → SetVariable</strong></p>
|
|
765
|
+
<p>Chain:<br />
|
|
766
|
+
1. GetVariable: <code>var_name</code> = <code>"processed_names"</code> → <code>current_list</code><br />
|
|
767
|
+
2. List Append: <code>list</code> = <code>current_list</code>, <code>item</code> = <code>result</code> (from process script) → <code>appended_list</code><br />
|
|
768
|
+
3. SetVariable: <code>var_name</code> = <code>"processed_names"</code>, <code>value</code> = <code>appended_list</code></p>
|
|
769
|
+
<p>Wire the loop exec chain: ForEach <code>loop_exec_out</code> → Process Script → GetVariable → List Append → SetVariable → ForEach <code>loop_exec_in</code> (to continue the loop).</p>
|
|
770
|
+
<p><strong>6. Post-loop</strong></p>
|
|
771
|
+
<p>After ForEach <code>exec_out</code>:<br />
|
|
772
|
+
1. GetVariable: <code>"processed_names"</code> → <code>final_list</code><br />
|
|
773
|
+
2. Python Script (wire GetVariable <code>final_list</code> → <code>data</code>): <code>result = str(inputs.get("data", []))</code><br />
|
|
774
|
+
3. Console Print</p>
|
|
775
|
+
<h3 id="expected-output">Expected Output</h3>
|
|
776
|
+
<pre><code>['Alice Smith', 'Bob Jones', 'Carol White', 'David Brown']
|
|
777
|
+
</code></pre>
|
|
778
|
+
<hr />
|
|
779
|
+
<h2 id="tutorial-5-maya-automation-workflow">Tutorial 5: Maya Automation Workflow</h2>
|
|
780
|
+
<p><strong>Goal:</strong> Open a Maya scene headlessly, configure render settings, and export an Alembic cache. Check success or failure.</p>
|
|
781
|
+
<h3 id="nodes-used_4">Nodes Used</h3>
|
|
782
|
+
<table>
|
|
783
|
+
<thead>
|
|
784
|
+
<tr>
|
|
785
|
+
<th>Node</th>
|
|
786
|
+
<th>Role</th>
|
|
787
|
+
</tr>
|
|
788
|
+
</thead>
|
|
789
|
+
<tbody>
|
|
790
|
+
<tr>
|
|
791
|
+
<td>Maya Action: Open Scene</td>
|
|
792
|
+
<td>Open .ma/.mb file</td>
|
|
793
|
+
</tr>
|
|
794
|
+
<tr>
|
|
795
|
+
<td>Maya Action: Set Render Settings</td>
|
|
796
|
+
<td>Frame range, renderer</td>
|
|
797
|
+
</tr>
|
|
798
|
+
<tr>
|
|
799
|
+
<td>Maya Action: Export Alembic</td>
|
|
800
|
+
<td>Export specified objects</td>
|
|
801
|
+
</tr>
|
|
802
|
+
<tr>
|
|
803
|
+
<td>Maya Headless Executor</td>
|
|
804
|
+
<td>Run the action list</td>
|
|
805
|
+
</tr>
|
|
806
|
+
<tr>
|
|
807
|
+
<td>TwoWaySwitch</td>
|
|
808
|
+
<td>Branch on success</td>
|
|
809
|
+
</tr>
|
|
810
|
+
<tr>
|
|
811
|
+
<td>Console Print (×2)</td>
|
|
812
|
+
<td>Success / failure messages</td>
|
|
813
|
+
</tr>
|
|
814
|
+
</tbody>
|
|
815
|
+
</table>
|
|
816
|
+
<h3 id="understanding-the-action-list-pattern">Understanding the Action-List Pattern</h3>
|
|
817
|
+
<p>Maya automation in Vibrante-Node uses an <strong>action list</strong> — a Python list of dicts that describes operations to perform. Each action node appends a dict to the list. The <strong>Maya Headless Executor</strong> node consumes the complete list, launches a Maya batch subprocess, and executes each action in order.</p>
|
|
818
|
+
<p>This design means:<br />
|
|
819
|
+
- No Maya process is opened until the entire list is assembled.<br />
|
|
820
|
+
- The action list can be branched, filtered, or modified before execution.<br />
|
|
821
|
+
- Execution happens in a single subprocess — fast startup, no repeated Maya launch overhead.</p>
|
|
822
|
+
<h3 id="step-by-step-build_4">Step-by-Step Build</h3>
|
|
823
|
+
<p><strong>1. Maya Action: Open Scene</strong></p>
|
|
824
|
+
<p>This is a Houdini-style headless action node. If a custom <code>maya_action_open_scene</code> node is registered:</p>
|
|
825
|
+
<pre><code class="language-python"># Node python_code equivalent
|
|
826
|
+
actions = list(inputs.get("actions_in") or [])
|
|
827
|
+
actions.append({
|
|
828
|
+
"type": "open_scene",
|
|
829
|
+
"scene_path": inputs.get("scene_path", "")
|
|
830
|
+
})
|
|
831
|
+
return {"actions_out": actions, "exec_out": True}
|
|
832
|
+
</code></pre>
|
|
833
|
+
<p>Set <code>scene_path</code> to your <code>.mb</code> file path.</p>
|
|
834
|
+
<p><strong>2. Maya Action: Set Render Settings</strong></p>
|
|
835
|
+
<pre><code class="language-python">actions = list(inputs.get("actions_in") or [])
|
|
836
|
+
actions.append({
|
|
837
|
+
"type": "set_render_settings",
|
|
838
|
+
"renderer": inputs.get("renderer", "arnold"),
|
|
839
|
+
"start_frame": int(inputs.get("start_frame", 1)),
|
|
840
|
+
"end_frame": int(inputs.get("end_frame", 100)),
|
|
841
|
+
"image_output": inputs.get("image_output", "/tmp/render/"),
|
|
842
|
+
"image_prefix": inputs.get("image_prefix", "render")
|
|
843
|
+
})
|
|
844
|
+
return {"actions_out": actions, "exec_out": True}
|
|
845
|
+
</code></pre>
|
|
846
|
+
<p><strong>3. Maya Action: Export Alembic</strong></p>
|
|
847
|
+
<pre><code class="language-python">actions = list(inputs.get("actions_in") or [])
|
|
848
|
+
actions.append({
|
|
849
|
+
"type": "export_alembic",
|
|
850
|
+
"objects": inputs.get("objects", ""), # e.g. "|geo_GRP"
|
|
851
|
+
"output_path": inputs.get("output_path", "/tmp/export.abc"),
|
|
852
|
+
"frame_range": [
|
|
853
|
+
int(inputs.get("start_frame", 1)),
|
|
854
|
+
int(inputs.get("end_frame", 100))
|
|
855
|
+
]
|
|
856
|
+
})
|
|
857
|
+
return {"actions_out": actions, "exec_out": True}
|
|
858
|
+
</code></pre>
|
|
859
|
+
<p><strong>4. Maya Headless Executor</strong></p>
|
|
860
|
+
<p>This node launches Maya, runs the actions, and outputs:<br />
|
|
861
|
+
- <code>success</code> (bool)<br />
|
|
862
|
+
- <code>log_output</code> (string)<br />
|
|
863
|
+
- <code>error_message</code> (string, empty on success)</p>
|
|
864
|
+
<p><strong>5. Conditional routing</strong></p>
|
|
865
|
+
<p>Connect <code>success</code> → TwoWaySwitch <code>condition</code>. Route:<br />
|
|
866
|
+
- <code>exec_true</code> → Console Print: <code>"Maya export completed successfully."</code><br />
|
|
867
|
+
- <code>exec_false</code> → Python Script that reads <code>error_message</code> and prints it.</p>
|
|
868
|
+
<h3 id="notes">Notes</h3>
|
|
869
|
+
<ul>
|
|
870
|
+
<li>Ensure <code>MAYA_LOCATION</code> and <code>VIBRANTE_MAYA_EXE</code> are set in your environment.</li>
|
|
871
|
+
<li>The Maya runner script in <code>plugins/maya/</code> must have a handler for every action <code>type</code> key.</li>
|
|
872
|
+
<li><code>objects</code> can be a single DAG path or a semicolon-separated list.</li>
|
|
873
|
+
</ul>
|
|
874
|
+
<hr />
|
|
875
|
+
<h2 id="tutorial-6-houdini-procedural-workflow">Tutorial 6: Houdini Procedural Workflow</h2>
|
|
876
|
+
<p><strong>Goal:</strong> Create a Houdini geometry container, add a Box SOP, transform it, cook the network, and store the resulting node path.</p>
|
|
877
|
+
<h3 id="nodes-used_5">Nodes Used</h3>
|
|
878
|
+
<table>
|
|
879
|
+
<thead>
|
|
880
|
+
<tr>
|
|
881
|
+
<th>Node</th>
|
|
882
|
+
<th>Role</th>
|
|
883
|
+
</tr>
|
|
884
|
+
</thead>
|
|
885
|
+
<tbody>
|
|
886
|
+
<tr>
|
|
887
|
+
<td>Houdini: Ping</td>
|
|
888
|
+
<td>Verify connection</td>
|
|
889
|
+
</tr>
|
|
890
|
+
<tr>
|
|
891
|
+
<td>Houdini: Create Node</td>
|
|
892
|
+
<td>Create /obj-level geo</td>
|
|
893
|
+
</tr>
|
|
894
|
+
<tr>
|
|
895
|
+
<td>Houdini: Clear Children</td>
|
|
896
|
+
<td>Remove default nodes</td>
|
|
897
|
+
</tr>
|
|
898
|
+
<tr>
|
|
899
|
+
<td>Houdini: Create Node</td>
|
|
900
|
+
<td>Create Box SOP</td>
|
|
901
|
+
</tr>
|
|
902
|
+
<tr>
|
|
903
|
+
<td>Houdini: Create Node</td>
|
|
904
|
+
<td>Create Transform SOP</td>
|
|
905
|
+
</tr>
|
|
906
|
+
<tr>
|
|
907
|
+
<td>Houdini: Connect Nodes</td>
|
|
908
|
+
<td>Wire SOPs</td>
|
|
909
|
+
</tr>
|
|
910
|
+
<tr>
|
|
911
|
+
<td>Houdini: Set Parm</td>
|
|
912
|
+
<td>Position transform</td>
|
|
913
|
+
</tr>
|
|
914
|
+
<tr>
|
|
915
|
+
<td>Houdini: Set Display/Render</td>
|
|
916
|
+
<td>Flag the output SOP</td>
|
|
917
|
+
</tr>
|
|
918
|
+
<tr>
|
|
919
|
+
<td>Houdini: Cook Node</td>
|
|
920
|
+
<td>Force evaluation</td>
|
|
921
|
+
</tr>
|
|
922
|
+
<tr>
|
|
923
|
+
<td>Houdini: Layout Children</td>
|
|
924
|
+
<td>Auto-layout</td>
|
|
925
|
+
</tr>
|
|
926
|
+
<tr>
|
|
927
|
+
<td>Console Print</td>
|
|
928
|
+
<td>Log result path</td>
|
|
929
|
+
</tr>
|
|
930
|
+
</tbody>
|
|
931
|
+
</table>
|
|
932
|
+
<h3 id="step-by-step-build_5">Step-by-Step Build</h3>
|
|
933
|
+
<p>All Houdini nodes call the JSON-RPC bridge internally. The following Python Script node demonstrates the full flow in a single node (which you can then break into individual nodes as needed):</p>
|
|
934
|
+
<pre><code class="language-python">from src.utils.hou_bridge import get_bridge
|
|
935
|
+
|
|
936
|
+
async def execute(self, inputs):
|
|
937
|
+
bridge = get_bridge()
|
|
938
|
+
|
|
939
|
+
# 1. Ping to verify connection
|
|
940
|
+
ping = bridge.ping()
|
|
941
|
+
if ping.get("status") != "ok":
|
|
942
|
+
self.log_error("Houdini not responding.")
|
|
943
|
+
return {"result_path": "", "exec_out": True}
|
|
944
|
+
|
|
945
|
+
# 2. Create /obj-level geo container
|
|
946
|
+
geo_result = bridge.create_node("/obj", "geo", "tutorial_geo")
|
|
947
|
+
geo_path = geo_result["path"] # e.g. "/obj/tutorial_geo"
|
|
948
|
+
|
|
949
|
+
# 3. Clear Houdini's default child nodes
|
|
950
|
+
for child in bridge.children(geo_path):
|
|
951
|
+
bridge.delete_node(child["path"])
|
|
952
|
+
|
|
953
|
+
# 4. Create Box SOP
|
|
954
|
+
box_result = bridge.create_node(geo_path, "box", "my_box")
|
|
955
|
+
box_path = box_result["path"]
|
|
956
|
+
|
|
957
|
+
# 5. Set box size
|
|
958
|
+
bridge.set_parms(box_path, {"sizex": 2.0, "sizey": 1.0, "sizez": 1.5})
|
|
959
|
+
|
|
960
|
+
# 6. Create Transform SOP
|
|
961
|
+
xform_result = bridge.create_node(geo_path, "xform", "my_xform")
|
|
962
|
+
xform_path = xform_result["path"]
|
|
963
|
+
|
|
964
|
+
# 7. Wire box → xform
|
|
965
|
+
bridge.connect_nodes(box_path, xform_path, output=0, input_idx=0)
|
|
966
|
+
|
|
967
|
+
# 8. Translate the transform
|
|
968
|
+
bridge.set_parms(xform_path, {"tx": 3.0, "ty": 1.0, "tz": 0.0})
|
|
969
|
+
|
|
970
|
+
# 9. Set display and render flags on xform
|
|
971
|
+
bridge.set_display_flag(xform_path, True)
|
|
972
|
+
bridge.set_render_flag(xform_path, True)
|
|
973
|
+
|
|
974
|
+
# 10. Cook
|
|
975
|
+
bridge.cook_node(xform_path, force=True)
|
|
976
|
+
|
|
977
|
+
# 11. Auto-layout
|
|
978
|
+
bridge.layout_children(geo_path)
|
|
979
|
+
|
|
980
|
+
self.log_info(f"Geo network created at: {geo_path}")
|
|
981
|
+
return {"result_path": geo_path, "exec_out": True}
|
|
982
|
+
</code></pre>
|
|
983
|
+
<h3 id="expected-result">Expected Result</h3>
|
|
984
|
+
<p>In Houdini's Network Editor, <code>/obj/tutorial_geo</code> appears with two SOPs (<code>my_box</code> → <code>my_xform</code>) wired in series, <code>my_xform</code> flagged for display and render, and the box visible in the viewport.</p>
|
|
985
|
+
<h3 id="extending-to-export">Extending to Export</h3>
|
|
986
|
+
<p>After cooking, add:</p>
|
|
987
|
+
<pre><code class="language-python"># Save the hip file with the new network
|
|
988
|
+
save_result = bridge.save_hip("/path/to/output.hip")
|
|
989
|
+
self.log_info(f"Saved: {save_result['saved']}")
|
|
990
|
+
</code></pre>
|
|
991
|
+
<hr />
|
|
992
|
+
<h2 id="tutorial-7-prism-pipeline-asset-workflow">Tutorial 7: Prism Pipeline Asset Workflow</h2>
|
|
993
|
+
<p><strong>Goal:</strong> Initialize PrismCore, retrieve all assets for a project, get the latest export path for each asset, and log the results.</p>
|
|
994
|
+
<h3 id="nodes-used_6">Nodes Used</h3>
|
|
995
|
+
<table>
|
|
996
|
+
<thead>
|
|
997
|
+
<tr>
|
|
998
|
+
<th>Node</th>
|
|
999
|
+
<th>Role</th>
|
|
1000
|
+
</tr>
|
|
1001
|
+
</thead>
|
|
1002
|
+
<tbody>
|
|
1003
|
+
<tr>
|
|
1004
|
+
<td>prism_core_init</td>
|
|
1005
|
+
<td>Bootstrap PrismCore</td>
|
|
1006
|
+
</tr>
|
|
1007
|
+
<tr>
|
|
1008
|
+
<td>prism_get_assets</td>
|
|
1009
|
+
<td>List project assets</td>
|
|
1010
|
+
</tr>
|
|
1011
|
+
<tr>
|
|
1012
|
+
<td>ForEach</td>
|
|
1013
|
+
<td>Iterate over assets</td>
|
|
1014
|
+
</tr>
|
|
1015
|
+
<tr>
|
|
1016
|
+
<td>prism_get_export_path</td>
|
|
1017
|
+
<td>Resolve the export path</td>
|
|
1018
|
+
</tr>
|
|
1019
|
+
<tr>
|
|
1020
|
+
<td>Console Print</td>
|
|
1021
|
+
<td>Log each path</td>
|
|
1022
|
+
</tr>
|
|
1023
|
+
</tbody>
|
|
1024
|
+
</table>
|
|
1025
|
+
<h3 id="step-by-step-build_6">Step-by-Step Build</h3>
|
|
1026
|
+
<p><strong>Important:</strong> Place <code>prism_core_init</code> anywhere in the graph. The engine detects it before execution begins and bootstraps <code>PrismCore</code> automatically. You do not need to wire <code>core</code> between nodes.</p>
|
|
1027
|
+
<p><strong>1. prism_core_init</strong></p>
|
|
1028
|
+
<p>Drag onto canvas. Configure <code>project_path</code> if your Prism installation requires it. This node has no meaningful output — it exists solely for the bootstrap side effect.</p>
|
|
1029
|
+
<p><strong>2. prism_get_assets</strong></p>
|
|
1030
|
+
<pre><code class="language-python">from src.nodes.base import BaseNode
|
|
1031
|
+
from src.utils.prism_core import resolve_prism_core
|
|
1032
|
+
|
|
1033
|
+
class Prism_Get_Assets(BaseNode):
|
|
1034
|
+
name = "prism_get_assets"
|
|
1035
|
+
|
|
1036
|
+
async def execute(self, inputs):
|
|
1037
|
+
core = resolve_prism_core(inputs)
|
|
1038
|
+
if core is None:
|
|
1039
|
+
self.log_error("PrismCore not available.")
|
|
1040
|
+
return {"assets": [], "exec_out": True}
|
|
1041
|
+
try:
|
|
1042
|
+
assets = core.getAssets()
|
|
1043
|
+
return {"assets": assets, "exec_out": True}
|
|
1044
|
+
except Exception as e:
|
|
1045
|
+
self.log_error(f"Prism error: {e}")
|
|
1046
|
+
return {"assets": [], "exec_out": True}
|
|
1047
|
+
</code></pre>
|
|
1048
|
+
<p><strong>3. ForEach → prism_get_export_path</strong></p>
|
|
1049
|
+
<p>For each asset dict, call:</p>
|
|
1050
|
+
<pre><code class="language-python">core = resolve_prism_core(inputs)
|
|
1051
|
+
asset = inputs.get("current_item", {})
|
|
1052
|
+
asset_name = asset.get("asset", "")
|
|
1053
|
+
|
|
1054
|
+
try:
|
|
1055
|
+
paths = core.getExportPaths(asset=asset_name)
|
|
1056
|
+
latest = paths[-1] if paths else None
|
|
1057
|
+
return {"export_path": latest, "asset_name": asset_name, "exec_out": True}
|
|
1058
|
+
except Exception as e:
|
|
1059
|
+
self.log_error(f"Could not get export path for {asset_name}: {e}")
|
|
1060
|
+
return {"export_path": None, "asset_name": asset_name, "exec_out": True}
|
|
1061
|
+
</code></pre>
|
|
1062
|
+
<p><strong>4. Console Print</strong></p>
|
|
1063
|
+
<p>Build message (custom node receiving <code>asset_name</code> and <code>export_path</code> as named inputs):</p>
|
|
1064
|
+
<pre><code class="language-python">async def execute(self, inputs):
|
|
1065
|
+
name = inputs.get("asset_name", "")
|
|
1066
|
+
path = inputs.get("export_path", None)
|
|
1067
|
+
return {"message": f" {name}: {path or 'No export found'}", "exec_out": True}
|
|
1068
|
+
</code></pre>
|
|
1069
|
+
<h3 id="expected-output_1">Expected Output</h3>
|
|
1070
|
+
<pre><code>character_hero: /project/exports/assets/character_hero/model/v003/character_hero.abc
|
|
1071
|
+
prop_sword: /project/exports/assets/prop_sword/model/v001/prop_sword.abc
|
|
1072
|
+
environment_castle: No export found
|
|
1073
|
+
</code></pre>
|
|
1074
|
+
<hr />
|
|
1075
|
+
<h2 id="tutorial-8-multi-shot-rendering-workflow">Tutorial 8: Multi-Shot Rendering Workflow</h2>
|
|
1076
|
+
<p><strong>Goal:</strong> Iterate over a list of shots. For each shot, open the corresponding Houdini scene, set the frame range, trigger a render, and collect the output paths.</p>
|
|
1077
|
+
<h3 id="nodes-used_7">Nodes Used</h3>
|
|
1078
|
+
<table>
|
|
1079
|
+
<thead>
|
|
1080
|
+
<tr>
|
|
1081
|
+
<th>Node</th>
|
|
1082
|
+
<th>Role</th>
|
|
1083
|
+
</tr>
|
|
1084
|
+
</thead>
|
|
1085
|
+
<tbody>
|
|
1086
|
+
<tr>
|
|
1087
|
+
<td>Python Script</td>
|
|
1088
|
+
<td>Build shot list</td>
|
|
1089
|
+
</tr>
|
|
1090
|
+
<tr>
|
|
1091
|
+
<td>SetVariable</td>
|
|
1092
|
+
<td>Initialize results list</td>
|
|
1093
|
+
</tr>
|
|
1094
|
+
<tr>
|
|
1095
|
+
<td>ForEach</td>
|
|
1096
|
+
<td>Loop over shots</td>
|
|
1097
|
+
</tr>
|
|
1098
|
+
<tr>
|
|
1099
|
+
<td>Python Script</td>
|
|
1100
|
+
<td>Build hip path from shot name</td>
|
|
1101
|
+
</tr>
|
|
1102
|
+
<tr>
|
|
1103
|
+
<td>Houdini: Set Playback Range</td>
|
|
1104
|
+
<td>Set frame range</td>
|
|
1105
|
+
</tr>
|
|
1106
|
+
<tr>
|
|
1107
|
+
<td>Houdini: Cook Node (render)</td>
|
|
1108
|
+
<td>Trigger output driver</td>
|
|
1109
|
+
</tr>
|
|
1110
|
+
<tr>
|
|
1111
|
+
<td>GetVariable + List Append + SetVariable</td>
|
|
1112
|
+
<td>Collect results</td>
|
|
1113
|
+
</tr>
|
|
1114
|
+
<tr>
|
|
1115
|
+
<td>GetVariable</td>
|
|
1116
|
+
<td>Final read</td>
|
|
1117
|
+
</tr>
|
|
1118
|
+
<tr>
|
|
1119
|
+
<td>Console Print</td>
|
|
1120
|
+
<td>Summary</td>
|
|
1121
|
+
</tr>
|
|
1122
|
+
</tbody>
|
|
1123
|
+
</table>
|
|
1124
|
+
<h3 id="shot-list-builder">Shot List Builder</h3>
|
|
1125
|
+
<pre><code class="language-python">outputs["shots"] = [
|
|
1126
|
+
{"name": "sh010", "start": 1001, "end": 1120, "hip": "/project/scenes/sh010.hip"},
|
|
1127
|
+
{"name": "sh020", "start": 1001, "end": 1085, "hip": "/project/scenes/sh020.hip"},
|
|
1128
|
+
{"name": "sh030", "start": 1001, "end": 1240, "hip": "/project/scenes/sh030.hip"},
|
|
1129
|
+
]
|
|
1130
|
+
</code></pre>
|
|
1131
|
+
<h3 id="per-shot-processing-script">Per-Shot Processing Script</h3>
|
|
1132
|
+
<pre><code class="language-python">from src.utils.hou_bridge import get_bridge
|
|
1133
|
+
|
|
1134
|
+
async def execute(self, inputs):
|
|
1135
|
+
shot = inputs.get("current_item", {})
|
|
1136
|
+
bridge = get_bridge()
|
|
1137
|
+
|
|
1138
|
+
hip_path = shot.get("hip", "")
|
|
1139
|
+
start = shot.get("start", 1)
|
|
1140
|
+
end = shot.get("end", 240)
|
|
1141
|
+
name = shot.get("name", "unknown")
|
|
1142
|
+
|
|
1143
|
+
try:
|
|
1144
|
+
# Load the hip file
|
|
1145
|
+
bridge.run_code(f"hou.hipFile.load('{hip_path}', suppress_save_prompt=True)")
|
|
1146
|
+
|
|
1147
|
+
# Set frame range
|
|
1148
|
+
bridge.set_playback_range(start, end)
|
|
1149
|
+
|
|
1150
|
+
# Cook the mantra/karma output driver
|
|
1151
|
+
out_path = f"/out/mantra_beauty"
|
|
1152
|
+
bridge.cook_node(out_path, force=True)
|
|
1153
|
+
|
|
1154
|
+
self.log_info(f"Rendered {name}: frames {start}-{end}")
|
|
1155
|
+
return {"render_result": {"shot": name, "status": "ok", "frames": end - start + 1}, "exec_out": True}
|
|
1156
|
+
|
|
1157
|
+
except Exception as e:
|
|
1158
|
+
self.log_error(f"Failed to render {name}: {e}")
|
|
1159
|
+
return {"render_result": {"shot": name, "status": "error", "error": str(e)}, "exec_out": True}
|
|
1160
|
+
</code></pre>
|
|
1161
|
+
<h3 id="post-loop-summary">Post-Loop Summary</h3>
|
|
1162
|
+
<pre><code class="language-python">results = inputs.get("data", [])
|
|
1163
|
+
ok = [r for r in results if r.get("status") == "ok"]
|
|
1164
|
+
err = [r for r in results if r.get("status") == "error"]
|
|
1165
|
+
|
|
1166
|
+
lines = [f"Render complete: {len(ok)} succeeded, {len(err)} failed."]
|
|
1167
|
+
for r in err:
|
|
1168
|
+
lines.append(f" FAILED: {r['shot']} — {r.get('error', '')}")
|
|
1169
|
+
|
|
1170
|
+
result = "\n".join(lines)
|
|
1171
|
+
</code></pre>
|
|
1172
|
+
<hr />
|
|
1173
|
+
<h2 id="tutorial-9-groupnode-subgraph-workflow">Tutorial 9: GroupNode (Subgraph) Workflow</h2>
|
|
1174
|
+
<p><strong>Goal:</strong> Build a reusable "normalize filename" subgraph, collapse it into a GroupNode, and use it in two different workflows without duplicating nodes.</p>
|
|
1175
|
+
<h3 id="step-1-build-the-reusable-logic">Step 1: Build the Reusable Logic</h3>
|
|
1176
|
+
<p>Create three nodes on the canvas:</p>
|
|
1177
|
+
<p><strong>Trim & Lower:</strong></p>
|
|
1178
|
+
<pre><code class="language-python">s = inputs.get("data", "") # GroupIn value wired to data port
|
|
1179
|
+
result = s.strip().lower()
|
|
1180
|
+
</code></pre>
|
|
1181
|
+
<p><strong>Replace Spaces:</strong></p>
|
|
1182
|
+
<pre><code class="language-python">s = inputs.get("data", "") # wired from previous script's result
|
|
1183
|
+
result = s.replace(" ", "_").replace("-", "_")
|
|
1184
|
+
</code></pre>
|
|
1185
|
+
<p><strong>Remove Special Chars:</strong></p>
|
|
1186
|
+
<pre><code class="language-python">import re
|
|
1187
|
+
s = inputs.get("data", "") # wired from previous script's result
|
|
1188
|
+
result = re.sub(r"[^a-z0-9_.]", "", s)
|
|
1189
|
+
</code></pre>
|
|
1190
|
+
<p>Wire them in sequence: exec_out → exec_in, and data outputs → inputs.</p>
|
|
1191
|
+
<h3 id="step-2-add-groupin-and-groupout-nodes">Step 2: Add GroupIn and GroupOut Nodes</h3>
|
|
1192
|
+
<p>Drag a <strong>GroupIn</strong> node. Set its <code>port_name</code> parameter to <code>"raw_name"</code>. This exposes an input port on the eventual GroupNode.</p>
|
|
1193
|
+
<p>Drag a <strong>GroupOut</strong> node. Set its <code>port_name</code> to <code>"final_name"</code>. Wire the Remove Special Chars <code>result</code> output → GroupOut <code>value</code> input.</p>
|
|
1194
|
+
<p>Wire exec: GroupIn → Trim & Lower → Replace Spaces → Remove Special Chars → GroupOut.</p>
|
|
1195
|
+
<h3 id="step-3-collapse-into-a-groupnode">Step 3: Collapse into a GroupNode</h3>
|
|
1196
|
+
<p>Select all five nodes (Ctrl+A or drag-select). Press <strong>Ctrl+Shift+G</strong> (or Edit → Group Selection).</p>
|
|
1197
|
+
<p>A dialog prompts for a group name. Enter <code>"normalize_filename"</code>.</p>
|
|
1198
|
+
<p>The five nodes collapse into a single <strong>GroupNode</strong> with:<br />
|
|
1199
|
+
- Input port: <code>raw_name</code><br />
|
|
1200
|
+
- Output port: <code>final_name</code><br />
|
|
1201
|
+
- Exec pins: <code>exec_in</code>, <code>exec_out</code></p>
|
|
1202
|
+
<h3 id="step-4-use-the-groupnode">Step 4: Use the GroupNode</h3>
|
|
1203
|
+
<p>The GroupNode behaves identically to any other node:</p>
|
|
1204
|
+
<pre><code>[Python Script: generate raw name]
|
|
1205
|
+
| (raw_name)
|
|
1206
|
+
v
|
|
1207
|
+
[GroupNode: normalize_filename]
|
|
1208
|
+
| (final_name)
|
|
1209
|
+
v
|
|
1210
|
+
[Console Print]
|
|
1211
|
+
</code></pre>
|
|
1212
|
+
<h3 id="step-5-inspect-the-subgraph">Step 5: Inspect the Subgraph</h3>
|
|
1213
|
+
<p>Double-click the GroupNode to open its subgraph in a new tab. The tab is labeled <code>[normalize_filename]</code> and is fully editable — changes sync back to the parent workflow automatically.</p>
|
|
1214
|
+
<h3 id="step-6-reuse-in-another-workflow">Step 6: Reuse in Another Workflow</h3>
|
|
1215
|
+
<p>Save the workflow containing the GroupNode. In a new workflow, use <strong>File → Import Nodes</strong> (or copy-paste the GroupNode widget). The entire subgraph is embedded — no external dependencies.</p>
|
|
1216
|
+
<hr />
|
|
1217
|
+
<h2 id="tutorial-10-debugging-a-failing-workflow">Tutorial 10: Debugging a Failing Workflow</h2>
|
|
1218
|
+
<p><strong>Goal:</strong> A workflow is producing incorrect output. Use Vibrante-Node's debugging tools to find and fix the problem.</p>
|
|
1219
|
+
<h3 id="tool-1-the-log-panel">Tool 1: The Log Panel</h3>
|
|
1220
|
+
<p>The log panel (bottom of the window) shows:</p>
|
|
1221
|
+
<ul>
|
|
1222
|
+
<li><strong>Node started / finished</strong> with timing: <code>Node 'Get Asset' finished in 0.34s</code></li>
|
|
1223
|
+
<li><strong>Info messages</strong> from <code>self.log_info()</code></li>
|
|
1224
|
+
<li><strong>Error messages</strong> from <code>self.log_error()</code> in red</li>
|
|
1225
|
+
<li><strong>Execution order</strong> — nodes appear in the order they ran</li>
|
|
1226
|
+
</ul>
|
|
1227
|
+
<p>Start here. Look for red error lines. Click a log entry to highlight the corresponding node on the canvas.</p>
|
|
1228
|
+
<h3 id="tool-2-console-print-nodes">Tool 2: Console Print Nodes</h3>
|
|
1229
|
+
<p>Insert a <strong>Console Print</strong> node between any two nodes to inspect the intermediate value:</p>
|
|
1230
|
+
<pre><code>[Source Node] → (data output) → [Console Print] → (passthrough) → [Downstream Node]
|
|
1231
|
+
</code></pre>
|
|
1232
|
+
<p>Console Print has a passthrough so it does not break the exec chain. This is the fastest way to verify that a value is what you expect at each stage.</p>
|
|
1233
|
+
<h3 id="tool-3-wire-hover-tooltips-live-value-inspector">Tool 3: Wire Hover Tooltips (Live Value Inspector)</h3>
|
|
1234
|
+
<p>After running the workflow, hover your mouse over any wire (edge) connecting two nodes. A tooltip appears showing:</p>
|
|
1235
|
+
<pre><code>port_name: <repr of last value, capped at 300 chars>
|
|
1236
|
+
</code></pre>
|
|
1237
|
+
<p>This works for both data wires and exec wires. No extra nodes needed — just hover.</p>
|
|
1238
|
+
<p>Values persist after execution finishes, so you can inspect the entire graph's state at leisure.</p>
|
|
1239
|
+
<h3 id="tool-4-bypass-a-node">Tool 4: Bypass a Node</h3>
|
|
1240
|
+
<p>Right-click any node → <strong>Bypass</strong>. A bypassed node is skipped during execution; its input data is forwarded directly to its output. This lets you disable a section without deleting it.</p>
|
|
1241
|
+
<p>Use bypass to isolate which node is causing a problem:</p>
|
|
1242
|
+
<ol>
|
|
1243
|
+
<li>Bypass the suspected node → run → does the error disappear?</li>
|
|
1244
|
+
<li>If yes: the problem is in that node's logic.</li>
|
|
1245
|
+
<li>If no: bypass the next node in the chain and repeat.</li>
|
|
1246
|
+
</ol>
|
|
1247
|
+
<h3 id="common-failure-patterns">Common Failure Patterns</h3>
|
|
1248
|
+
<table>
|
|
1249
|
+
<thead>
|
|
1250
|
+
<tr>
|
|
1251
|
+
<th>Symptom</th>
|
|
1252
|
+
<th>Likely Cause</th>
|
|
1253
|
+
<th>Fix</th>
|
|
1254
|
+
</tr>
|
|
1255
|
+
</thead>
|
|
1256
|
+
<tbody>
|
|
1257
|
+
<tr>
|
|
1258
|
+
<td>No output, no error</td>
|
|
1259
|
+
<td>Entry node not connected to exec chain</td>
|
|
1260
|
+
<td>Ensure entry node has exec_out wired</td>
|
|
1261
|
+
</tr>
|
|
1262
|
+
<tr>
|
|
1263
|
+
<td><code>None</code> appearing mid-chain</td>
|
|
1264
|
+
<td>Missing output key in <code>return</code> dict</td>
|
|
1265
|
+
<td>Check all node return statements</td>
|
|
1266
|
+
</tr>
|
|
1267
|
+
<tr>
|
|
1268
|
+
<td>Loop runs 0 times</td>
|
|
1269
|
+
<td>Empty list input to ForEach</td>
|
|
1270
|
+
<td>Print the list before ForEach</td>
|
|
1271
|
+
</tr>
|
|
1272
|
+
<tr>
|
|
1273
|
+
<td>Houdini nodes hang</td>
|
|
1274
|
+
<td>Houdini bridge not connected</td>
|
|
1275
|
+
<td>Check Houdini console for server startup</td>
|
|
1276
|
+
</tr>
|
|
1277
|
+
<tr>
|
|
1278
|
+
<td>Values not updating</td>
|
|
1279
|
+
<td>Shared <code>parameters</code> from a previous run</td>
|
|
1280
|
+
<td>Use <code>memory</code> dict for per-run state</td>
|
|
1281
|
+
</tr>
|
|
1282
|
+
<tr>
|
|
1283
|
+
<td>GroupNode shows wrong result</td>
|
|
1284
|
+
<td>Subgraph exec chain broken</td>
|
|
1285
|
+
<td>Double-click to inspect the subgraph</td>
|
|
1286
|
+
</tr>
|
|
1287
|
+
</tbody>
|
|
1288
|
+
</table>
|
|
1289
|
+
<h3 id="step-by-step-debug-session">Step-by-Step Debug Session</h3>
|
|
1290
|
+
<ol>
|
|
1291
|
+
<li>Run the workflow. Note which nodes appear in the log.</li>
|
|
1292
|
+
<li>If execution stops early, the last node in the log is the culprit or its immediate successor.</li>
|
|
1293
|
+
<li>Insert Console Print nodes before and after the suspect node.</li>
|
|
1294
|
+
<li>Re-run. Compare actual vs. expected values in the log.</li>
|
|
1295
|
+
<li>Hover wires around the suspect node to see raw values.</li>
|
|
1296
|
+
<li>Bypass the suspect node to confirm it is the source.</li>
|
|
1297
|
+
<li>Open the node's code editor and add <code>print()</code> statements for more detail.</li>
|
|
1298
|
+
<li>Fix the logic, remove debug Console Print nodes, re-run to confirm.</li>
|
|
1299
|
+
</ol>
|
|
1300
|
+
<nav class="page-nav">
|
|
1301
|
+
<a class="page-nav-link prev" href="03_user_guide.html"><span class="page-nav-label">Previous</span><span class="page-nav-title">User Guide</span></a>
|
|
1302
|
+
<a class="page-nav-link next" href="05_node_development.html"><span class="page-nav-label">Next</span><span class="page-nav-title">Node Development Guide</span></a>
|
|
1303
|
+
</nav>
|
|
1304
|
+
<section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
|
|
1305
|
+
<p>Documentation &copy; 2024&ndash;2026 Mahmoud Kamal (KamalTD), licensed under
|
|
1306
|
+
<a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
|
|
1307
|
+
<a href="../LICENSE.txt">Full licence notice</a>.</p>
|
|
1308
|
+
<p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
|
|
1309
|
+
and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
|
|
1310
|
+
cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
|
|
1311
|
+
</section>
|
|
1312
|
+
</div>
|
|
1313
|
+
</main>
|
|
1314
|
+
|
|
1315
|
+
<!-- ── TOC ────────────────────────────────────────────────────────────── -->
|
|
1316
|
+
<aside class="toc">
|
|
1317
|
+
<div class="toc-title">On this page</div>
|
|
1318
|
+
<a class="toc-link toc-h2" href="#tutorial-1-basic-file-renaming-workflow">Tutorial 1: Basic File Renaming Workflow</a>
|
|
1319
|
+
<a class="toc-link toc-h3" href="#nodes-used">Nodes Used</a>
|
|
1320
|
+
<a class="toc-link toc-h3" href="#step-by-step-build">Step-by-Step Build</a>
|
|
1321
|
+
<a class="toc-link toc-h3" href="#running-the-workflow">Running the Workflow</a>
|
|
1322
|
+
<a class="toc-link toc-h2" href="#tutorial-2-data-transformation-pipeline">Tutorial 2: Data Transformation Pipeline</a>
|
|
1323
|
+
<a class="toc-link toc-h3" href="#nodes-used_1">Nodes Used</a>
|
|
1324
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_1">Step-by-Step Build</a>
|
|
1325
|
+
<a class="toc-link toc-h3" href="#key-points">Key Points</a>
|
|
1326
|
+
<a class="toc-link toc-h2" href="#tutorial-3-conditional-execution-ifelse-logic">Tutorial 3: Conditional Execution (If/Else Logic)</a>
|
|
1327
|
+
<a class="toc-link toc-h3" href="#nodes-used_2">Nodes Used</a>
|
|
1328
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_2">Step-by-Step Build</a>
|
|
1329
|
+
<a class="toc-link toc-h3" href="#extending-to-multi-branch-logic">Extending to Multi-Branch Logic</a>
|
|
1330
|
+
<a class="toc-link toc-h2" href="#tutorial-4-loop-over-a-list">Tutorial 4: Loop Over a List</a>
|
|
1331
|
+
<a class="toc-link toc-h3" href="#nodes-used_3">Nodes Used</a>
|
|
1332
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_3">Step-by-Step Build</a>
|
|
1333
|
+
<a class="toc-link toc-h3" href="#expected-output">Expected Output</a>
|
|
1334
|
+
<a class="toc-link toc-h2" href="#tutorial-5-maya-automation-workflow">Tutorial 5: Maya Automation Workflow</a>
|
|
1335
|
+
<a class="toc-link toc-h3" href="#nodes-used_4">Nodes Used</a>
|
|
1336
|
+
<a class="toc-link toc-h3" href="#understanding-the-action-list-pattern">Understanding the Action-List Pattern</a>
|
|
1337
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_4">Step-by-Step Build</a>
|
|
1338
|
+
<a class="toc-link toc-h3" href="#notes">Notes</a>
|
|
1339
|
+
<a class="toc-link toc-h2" href="#tutorial-6-houdini-procedural-workflow">Tutorial 6: Houdini Procedural Workflow</a>
|
|
1340
|
+
<a class="toc-link toc-h3" href="#nodes-used_5">Nodes Used</a>
|
|
1341
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_5">Step-by-Step Build</a>
|
|
1342
|
+
<a class="toc-link toc-h3" href="#expected-result">Expected Result</a>
|
|
1343
|
+
<a class="toc-link toc-h3" href="#extending-to-export">Extending to Export</a>
|
|
1344
|
+
<a class="toc-link toc-h2" href="#tutorial-7-prism-pipeline-asset-workflow">Tutorial 7: Prism Pipeline Asset Workflow</a>
|
|
1345
|
+
<a class="toc-link toc-h3" href="#nodes-used_6">Nodes Used</a>
|
|
1346
|
+
<a class="toc-link toc-h3" href="#step-by-step-build_6">Step-by-Step Build</a>
|
|
1347
|
+
<a class="toc-link toc-h3" href="#expected-output_1">Expected Output</a>
|
|
1348
|
+
<a class="toc-link toc-h2" href="#tutorial-8-multi-shot-rendering-workflow">Tutorial 8: Multi-Shot Rendering Workflow</a>
|
|
1349
|
+
<a class="toc-link toc-h3" href="#nodes-used_7">Nodes Used</a>
|
|
1350
|
+
<a class="toc-link toc-h3" href="#shot-list-builder">Shot List Builder</a>
|
|
1351
|
+
<a class="toc-link toc-h3" href="#per-shot-processing-script">Per-Shot Processing Script</a>
|
|
1352
|
+
<a class="toc-link toc-h3" href="#post-loop-summary">Post-Loop Summary</a>
|
|
1353
|
+
<a class="toc-link toc-h2" href="#tutorial-9-groupnode-subgraph-workflow">Tutorial 9: GroupNode (Subgraph) Workflow</a>
|
|
1354
|
+
<a class="toc-link toc-h3" href="#step-1-build-the-reusable-logic">Step 1: Build the Reusable Logic</a>
|
|
1355
|
+
<a class="toc-link toc-h3" href="#step-2-add-groupin-and-groupout-nodes">Step 2: Add GroupIn and GroupOut Nodes</a>
|
|
1356
|
+
<a class="toc-link toc-h3" href="#step-3-collapse-into-a-groupnode">Step 3: Collapse into a GroupNode</a>
|
|
1357
|
+
<a class="toc-link toc-h3" href="#step-4-use-the-groupnode">Step 4: Use the GroupNode</a>
|
|
1358
|
+
<a class="toc-link toc-h3" href="#step-5-inspect-the-subgraph">Step 5: Inspect the Subgraph</a>
|
|
1359
|
+
<a class="toc-link toc-h3" href="#step-6-reuse-in-another-workflow">Step 6: Reuse in Another Workflow</a>
|
|
1360
|
+
<a class="toc-link toc-h2" href="#tutorial-10-debugging-a-failing-workflow">Tutorial 10: Debugging a Failing Workflow</a>
|
|
1361
|
+
<a class="toc-link toc-h3" href="#tool-1-the-log-panel">Tool 1: The Log Panel</a>
|
|
1362
|
+
<a class="toc-link toc-h3" href="#tool-2-console-print-nodes">Tool 2: Console Print Nodes</a>
|
|
1363
|
+
<a class="toc-link toc-h3" href="#tool-3-wire-hover-tooltips-live-value-inspector">Tool 3: Wire Hover Tooltips (Live Value Inspector)</a>
|
|
1364
|
+
<a class="toc-link toc-h3" href="#tool-4-bypass-a-node">Tool 4: Bypass a Node</a>
|
|
1365
|
+
<a class="toc-link toc-h3" href="#common-failure-patterns">Common Failure Patterns</a>
|
|
1366
|
+
<a class="toc-link toc-h3" href="#step-by-step-debug-session">Step-by-Step Debug Session</a>
|
|
1367
|
+
</aside>
|
|
1368
|
+
|
|
1369
|
+
<script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
|
|
1370
|
+
<script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
|
|
1371
|
+
<script>
|
|
1372
|
+
// ── Search ──────────────────────────────────────────────────────────────
|
|
1373
|
+
let _idx = null, _docs = [];
|
|
1374
|
+
|
|
1375
|
+
async function initSearch() {
|
|
1376
|
+
try {
|
|
1377
|
+
const base = document.getElementById('portal-base').dataset.base;
|
|
1378
|
+
const resp = await fetch(base + 'search.json');
|
|
1379
|
+
_docs = await resp.json();
|
|
1380
|
+
_idx = lunr(function() {
|
|
1381
|
+
this.ref('id');
|
|
1382
|
+
this.field('title', { boost: 10 });
|
|
1383
|
+
this.field('body');
|
|
1384
|
+
_docs.forEach((d, i) => {
|
|
1385
|
+
this.add({ id: i, title: d.title, body: d.body });
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
} catch(e) { console.warn('Search index not available', e); }
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
function doSearch(q) {
|
|
1392
|
+
const box = document.getElementById('search-results');
|
|
1393
|
+
if (!q || q.length < 2) { box.classList.remove('visible'); return; }
|
|
1394
|
+
if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
|
|
1395
|
+
const results = _idx.search(q + '~1');
|
|
1396
|
+
if (!results.length) {
|
|
1397
|
+
box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>';
|
|
1398
|
+
box.classList.add('visible'); return;
|
|
1399
|
+
}
|
|
1400
|
+
box.innerHTML = results.slice(0, 8).map(r => {
|
|
1401
|
+
const d = _docs[r.ref];
|
|
1402
|
+
const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
|
|
1403
|
+
return `<a class="search-result-item" href="${d.url}">
|
|
1404
|
+
<div class="search-result-title">${d.title}</div>
|
|
1405
|
+
<div class="search-result-excerpt">${excerpt}</div>
|
|
1406
|
+
</a>`;
|
|
1407
|
+
}).join('');
|
|
1408
|
+
box.classList.add('visible');
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
1412
|
+
initSearch();
|
|
1413
|
+
const inp = document.getElementById('search-input');
|
|
1414
|
+
if (inp) {
|
|
1415
|
+
inp.addEventListener('input', e => doSearch(e.target.value));
|
|
1416
|
+
inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
|
|
1417
|
+
}
|
|
1418
|
+
document.addEventListener('click', e => {
|
|
1419
|
+
if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible');
|
|
1420
|
+
});
|
|
1421
|
+
// Keyboard shortcut: / to focus search
|
|
1422
|
+
document.addEventListener('keydown', e => {
|
|
1423
|
+
if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) {
|
|
1424
|
+
e.preventDefault(); document.getElementById('search-input')?.focus();
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
|
|
1428
|
+
// ── TOC active section ──────────────────────────────────────────────
|
|
1429
|
+
const tocLinks = document.querySelectorAll('.toc-link');
|
|
1430
|
+
const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
|
|
1431
|
+
if (tocLinks.length && headings.length) {
|
|
1432
|
+
const obs = new IntersectionObserver(entries => {
|
|
1433
|
+
entries.forEach(entry => {
|
|
1434
|
+
if (entry.isIntersecting) {
|
|
1435
|
+
tocLinks.forEach(l => l.classList.remove('active'));
|
|
1436
|
+
const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`);
|
|
1437
|
+
if (link) link.classList.add('active');
|
|
1438
|
+
}
|
|
1439
|
+
});
|
|
1440
|
+
}, { rootMargin: '-20% 0px -70% 0px' });
|
|
1441
|
+
headings.forEach(h => obs.observe(h));
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
// ── Copy buttons ────────────────────────────────────────────────────
|
|
1445
|
+
document.querySelectorAll('pre').forEach(pre => {
|
|
1446
|
+
const btn = document.createElement('button');
|
|
1447
|
+
btn.className = 'copy-btn'; btn.textContent = 'Copy';
|
|
1448
|
+
btn.addEventListener('click', () => {
|
|
1449
|
+
const code = pre.querySelector('code');
|
|
1450
|
+
navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => {
|
|
1451
|
+
btn.textContent = 'Copied!'; btn.classList.add('copied');
|
|
1452
|
+
setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000);
|
|
1453
|
+
});
|
|
1454
|
+
});
|
|
1455
|
+
pre.style.position = 'relative';
|
|
1456
|
+
pre.appendChild(btn);
|
|
1457
|
+
});
|
|
1458
|
+
|
|
1459
|
+
// ── Sidebar active ──────────────────────────────────────────────────
|
|
1460
|
+
const cur = window.location.pathname.split('/').pop();
|
|
1461
|
+
document.querySelectorAll('.sidebar-link').forEach(l => {
|
|
1462
|
+
if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active');
|
|
1463
|
+
});
|
|
1464
|
+
|
|
1465
|
+
// ── highlight.js ────────────────────────────────────────────────────
|
|
1466
|
+
if (window.hljs) {
|
|
1467
|
+
hljs.configure({ ignoreUnescapedHTML: true });
|
|
1468
|
+
hljs.highlightAll();
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
</script>
|
|
1472
|
+
</body>
|
|
1473
|
+
</html>
|