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,1263 @@
|
|
|
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 — Contribution Guide">
|
|
7
|
+
<title>Contribution Guide — 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" 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 active" 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>Contribution Guide</span></nav>
|
|
444
|
+
<div class="val-badge val-badge-ok" title="Verified against source code">✓ Verified</div>
|
|
445
|
+
<p># Contribution Guide</p>
|
|
446
|
+
<blockquote>
|
|
447
|
+
<p><strong>Distribution note (2.5.0):</strong> <code>plugins/houdini/</code> is not shipped in the PyPI<br />
|
|
448
|
+
wheels or source distributions. Install it from the source repository before<br />
|
|
449
|
+
following this page.</p>
|
|
450
|
+
</blockquote>
|
|
451
|
+
<p>This guide covers everything you need to contribute to Vibrante-Node — from setting up your environment to submitting a pull request. Read it fully before opening your first PR.</p>
|
|
452
|
+
<hr />
|
|
453
|
+
<h2 id="1-project-philosophy">1. Project Philosophy</h2>
|
|
454
|
+
<p>Vibrante-Node is built on three commitments:</p>
|
|
455
|
+
<p><strong>Extensibility first.</strong> Every subsystem — nodes, the engine, the UI, the bridge integrations — is designed to be extended without modifying core files. New nodes should not require touching <code>engine.py</code>. New UI panels should not require editing <code>window.py</code> unless adding a menu entry.</p>
|
|
456
|
+
<p><strong>Backward compatibility is sacred.</strong> A workflow saved with Vibrante-Node v1.0.0 must load and run correctly under v2.0.0. The JSON <code>WorkflowModel</code> format may gain new optional fields but must never remove or rename existing ones in a breaking way. The <code>BaseNode</code> API (especially <code>execute()</code> signature, port registration, and the <code>memory</code> dict) must remain stable across minor versions.</p>
|
|
457
|
+
<p><strong>No breaking changes without a major version bump.</strong> If a change would break existing nodes, existing workflows, or existing user scripts that import from <code>src</code>, it requires a major version increment and a migration guide. Prefer additive changes: add new methods rather than changing existing signatures, add new optional parameters rather than reordering existing ones.</p>
|
|
458
|
+
<hr />
|
|
459
|
+
<h2 id="2-repository-structure">2. Repository Structure</h2>
|
|
460
|
+
<pre><code>Vibrante-Node/
|
|
461
|
+
├── src/ # Core application source
|
|
462
|
+
│ ├── core/
|
|
463
|
+
│ │ ├── engine.py # Async execution engine (NetworkExecutor)
|
|
464
|
+
│ │ ├── graph.py # GraphManager: build dependency graph from WorkflowModel
|
|
465
|
+
│ │ ├── models.py # Pydantic models: WorkflowModel, NodeInstanceModel, etc.
|
|
466
|
+
│ │ └── registry.py # NodeRegistry: load, register, look up node classes
|
|
467
|
+
│ ├── nodes/
|
|
468
|
+
│ │ ├── base.py # BaseNode: the base class all nodes inherit
|
|
469
|
+
│ │ └── builtins/ # Built-in Python node classes (group_node.py, etc.)
|
|
470
|
+
│ └── ui/
|
|
471
|
+
│ ├── window.py # MainWindow: the application shell
|
|
472
|
+
│ ├── canvas/
|
|
473
|
+
│ │ ├── scene.py # NodeScene (QGraphicsScene subclass)
|
|
474
|
+
│ │ ├── view.py # NodeView (QGraphicsView subclass)
|
|
475
|
+
│ │ ├── node_widget.py # NodeWidget: visual representation of a node
|
|
476
|
+
│ │ ├── edge.py # Edge: wire between ports
|
|
477
|
+
│ │ ├── port_widget.py # PortWidget: individual port circle
|
|
478
|
+
│ │ ├── mini_map.py # MiniMap overlay
|
|
479
|
+
│ │ └── canvas_search_bar.py # Ctrl+F search overlay
|
|
480
|
+
│ ├── panels/
|
|
481
|
+
│ │ ├── library_panel.py # Node library browser
|
|
482
|
+
│ │ └── log_panel.py # Execution log
|
|
483
|
+
│ ├── dialogs/
|
|
484
|
+
│ │ ├── node_builder_dialog.py # Node Builder UI
|
|
485
|
+
│ │ └── script_editor_dialog.py
|
|
486
|
+
│ └── code_editor.py # QScintilla-based Python editor (with fallback)
|
|
487
|
+
├── src/utils/
|
|
488
|
+
│ ├── hou_bridge.py # HouBridge TCP client
|
|
489
|
+
│ ├── prism_core.py # PrismCore resolver
|
|
490
|
+
│ ├── config_manager.py # App settings, recent files
|
|
491
|
+
│ └── qt_compat.py # PyQt5/PyQt6 compatibility shim
|
|
492
|
+
├── nodes/ # JSON node definitions (user-visible)
|
|
493
|
+
├── plugins/
|
|
494
|
+
│ └── houdini/ # Houdini plugin package (the only DCC plugin)
|
|
495
|
+
│ ├── vibrante_node.json # Houdini package file
|
|
496
|
+
│ ├── v_nodes_houdini/ # Houdini-specific JSON nodes
|
|
497
|
+
│ ├── v_scripts_houdini/ # Scripts menu .py files
|
|
498
|
+
│ └── houdini/ # Added to HOUDINI_PATH
|
|
499
|
+
├── tests/ # pytest test suite
|
|
500
|
+
│ ├── unit/ # Unit tests for individual nodes and utilities
|
|
501
|
+
│ └── integration/ # Multi-node workflow tests
|
|
502
|
+
├── docs_src/ # Documentation source (Markdown)
|
|
503
|
+
├── examples/ # Example workflows (.json files)
|
|
504
|
+
├── icons/ # SVG/PNG icons for nodes
|
|
505
|
+
├── requirements.txt
|
|
506
|
+
├── pytest.ini
|
|
507
|
+
└── CLAUDE.md # AI developer guide (machine-readable)
|
|
508
|
+
</code></pre>
|
|
509
|
+
<hr />
|
|
510
|
+
<h2 id="3-setting-up-a-development-environment">3. Setting Up a Development Environment</h2>
|
|
511
|
+
<h3 id="prerequisites">Prerequisites</h3>
|
|
512
|
+
<ul>
|
|
513
|
+
<li>Python 3.10 or 3.11 (3.11 recommended)</li>
|
|
514
|
+
<li>Git</li>
|
|
515
|
+
<li>A virtual environment tool (<code>venv</code> is fine)</li>
|
|
516
|
+
</ul>
|
|
517
|
+
<h3 id="steps">Steps</h3>
|
|
518
|
+
<pre><code class="language-bash"># Clone the repository
|
|
519
|
+
git clone https://github.com/KamalTD/Vibrante-Node.git
|
|
520
|
+
cd Vibrante-Node
|
|
521
|
+
|
|
522
|
+
# Create and activate a virtual environment
|
|
523
|
+
python -m venv .venv
|
|
524
|
+
|
|
525
|
+
# Windows
|
|
526
|
+
.venv\Scripts\activate
|
|
527
|
+
|
|
528
|
+
# macOS / Linux
|
|
529
|
+
source .venv/bin/activate
|
|
530
|
+
|
|
531
|
+
# Install all dependencies
|
|
532
|
+
pip install -r requirements.txt
|
|
533
|
+
|
|
534
|
+
# Optional: install QScintilla for the full code editor
|
|
535
|
+
pip install QScintilla
|
|
536
|
+
|
|
537
|
+
# Run the application
|
|
538
|
+
python -m src.main
|
|
539
|
+
|
|
540
|
+
# Run the test suite (per directory — see the Testing section)
|
|
541
|
+
pytest tests/unit
|
|
542
|
+
</code></pre>
|
|
543
|
+
<h3 id="requirementstxt-key-dependencies">requirements.txt Key Dependencies</h3>
|
|
544
|
+
<table>
|
|
545
|
+
<thead>
|
|
546
|
+
<tr>
|
|
547
|
+
<th>Package</th>
|
|
548
|
+
<th>Purpose</th>
|
|
549
|
+
</tr>
|
|
550
|
+
</thead>
|
|
551
|
+
<tbody>
|
|
552
|
+
<tr>
|
|
553
|
+
<td><code>PyQt5</code></td>
|
|
554
|
+
<td>UI framework</td>
|
|
555
|
+
</tr>
|
|
556
|
+
<tr>
|
|
557
|
+
<td><code>pydantic>=2.0</code></td>
|
|
558
|
+
<td>Data models and validation</td>
|
|
559
|
+
</tr>
|
|
560
|
+
<tr>
|
|
561
|
+
<td><code>toposort</code></td>
|
|
562
|
+
<td>Topological sort for execution order</td>
|
|
563
|
+
</tr>
|
|
564
|
+
<tr>
|
|
565
|
+
<td><code>networkx</code></td>
|
|
566
|
+
<td>Graph algorithms</td>
|
|
567
|
+
</tr>
|
|
568
|
+
<tr>
|
|
569
|
+
<td><code>mcp>=2.0.0,<3</code></td>
|
|
570
|
+
<td>MCP server mode (optional <code>mcp</code> extra)</td>
|
|
571
|
+
</tr>
|
|
572
|
+
<tr>
|
|
573
|
+
<td><code>QScintilla</code></td>
|
|
574
|
+
<td>Full code editor (optional <code>editor</code> extra)</td>
|
|
575
|
+
</tr>
|
|
576
|
+
<tr>
|
|
577
|
+
<td><code>pytest</code></td>
|
|
578
|
+
<td>Test runner</td>
|
|
579
|
+
</tr>
|
|
580
|
+
<tr>
|
|
581
|
+
<td><code>pytest-qt</code></td>
|
|
582
|
+
<td>Qt widget testing</td>
|
|
583
|
+
</tr>
|
|
584
|
+
<tr>
|
|
585
|
+
<td><code>pytest-asyncio</code></td>
|
|
586
|
+
<td>Async test support</td>
|
|
587
|
+
</tr>
|
|
588
|
+
<tr>
|
|
589
|
+
<td><code>pytest-cov</code></td>
|
|
590
|
+
<td>Coverage reporting</td>
|
|
591
|
+
</tr>
|
|
592
|
+
</tbody>
|
|
593
|
+
</table>
|
|
594
|
+
<h3 id="ide-configuration">IDE Configuration</h3>
|
|
595
|
+
<p>If using VS Code, add to <code>.vscode/settings.json</code>:</p>
|
|
596
|
+
<pre><code class="language-json">{
|
|
597
|
+
"python.defaultInterpreterPath": ".venv/Scripts/python.exe",
|
|
598
|
+
"python.analysis.extraPaths": ["${workspaceFolder}"]
|
|
599
|
+
}
|
|
600
|
+
</code></pre>
|
|
601
|
+
<p>This ensures <code>from src.core.engine import NetworkExecutor</code> resolves correctly.</p>
|
|
602
|
+
<hr />
|
|
603
|
+
<h2 id="4-coding-standards">4. Coding Standards</h2>
|
|
604
|
+
<h3 id="python-style">Python Style</h3>
|
|
605
|
+
<ul>
|
|
606
|
+
<li>Follow PEP 8. Line length limit: 100 characters.</li>
|
|
607
|
+
<li>Use f-strings for string formatting. Avoid <code>%</code>-style or <code>.format()</code> where f-strings work.</li>
|
|
608
|
+
<li>One blank line between methods. Two blank lines between top-level classes and functions.</li>
|
|
609
|
+
<li>Imports ordered: stdlib → third-party → local (<code>src.*</code>). Separate groups with a blank line.</li>
|
|
610
|
+
</ul>
|
|
611
|
+
<h3 id="type-hints">Type Hints</h3>
|
|
612
|
+
<p>Type hints are preferred in all new code, mandatory in <code>src/core/</code> and <code>src/utils/</code>. Use <code>from __future__ import annotations</code> at the top of files with complex forward references.</p>
|
|
613
|
+
<pre><code class="language-python"># Good
|
|
614
|
+
def get_node(self, node_id: str) -> BaseNode | None:
|
|
615
|
+
...
|
|
616
|
+
|
|
617
|
+
# Acceptable in node python_code (brevity wins there)
|
|
618
|
+
def execute(self, inputs):
|
|
619
|
+
...
|
|
620
|
+
</code></pre>
|
|
621
|
+
<h3 id="async-patterns">Async Patterns</h3>
|
|
622
|
+
<p><strong>Never block the event loop inside <code>execute()</code>.</strong> Any blocking I/O (file read, network request, subprocess) must be wrapped:</p>
|
|
623
|
+
<pre><code class="language-python">import asyncio
|
|
624
|
+
|
|
625
|
+
# File I/O
|
|
626
|
+
content = await asyncio.to_thread(open(path).read)
|
|
627
|
+
|
|
628
|
+
# Subprocess
|
|
629
|
+
proc = await asyncio.create_subprocess_exec(
|
|
630
|
+
"ffmpeg", "-i", input_path, output_path,
|
|
631
|
+
stdout=asyncio.subprocess.PIPE,
|
|
632
|
+
stderr=asyncio.subprocess.PIPE,
|
|
633
|
+
)
|
|
634
|
+
stdout, stderr = await proc.communicate()
|
|
635
|
+
</code></pre>
|
|
636
|
+
<ul>
|
|
637
|
+
<li><code>asyncio.sleep()</code> is fine for delays.</li>
|
|
638
|
+
<li><code>time.sleep()</code> inside <code>execute()</code> is never acceptable — it freezes the UI.</li>
|
|
639
|
+
<li>Long CPU-bound tasks: <code>await asyncio.to_thread(my_cpu_fn, args)</code>.</li>
|
|
640
|
+
</ul>
|
|
641
|
+
<h3 id="error-handling-in-nodes">Error Handling in Nodes</h3>
|
|
642
|
+
<p>Use <code>self.log_error()</code> for recoverable errors. Raise exceptions only for truly unrecoverable states. Always return a valid dict with <code>exec_out</code>:</p>
|
|
643
|
+
<pre><code class="language-python">async def execute(self, inputs):
|
|
644
|
+
try:
|
|
645
|
+
result = do_work(inputs)
|
|
646
|
+
return {"output": result, "exec_out": True}
|
|
647
|
+
except Exception as e:
|
|
648
|
+
self.log_error(f"Failed: {e}")
|
|
649
|
+
return {"output": None, "exec_out": True} # exec continues; downstream handles None
|
|
650
|
+
</code></pre>
|
|
651
|
+
<h3 id="signal-naming-conventions-ui">Signal Naming Conventions (UI)</h3>
|
|
652
|
+
<p>Qt signals in <code>src/ui/</code> follow this pattern:</p>
|
|
653
|
+
<ul>
|
|
654
|
+
<li><code>noun_past_tense</code> for completed events: <code>node_started</code>, <code>node_finished</code>, <code>node_error</code></li>
|
|
655
|
+
<li><code>action_request</code> for user-initiated requests: <code>save_requested</code>, <code>run_requested</code></li>
|
|
656
|
+
<li>Never expose <code>pyqtSignal</code> objects from non-widget classes.</li>
|
|
657
|
+
</ul>
|
|
658
|
+
<hr />
|
|
659
|
+
<h2 id="5-how-to-add-a-new-built-in-node">5. How to Add a New Built-in Node</h2>
|
|
660
|
+
<p>Built-in nodes are Python classes in <code>src/nodes/builtins/</code>. They are registered in <code>src/core/registry.py</code>.</p>
|
|
661
|
+
<h3 id="step-1-create-the-class-file">Step 1: Create the class file</h3>
|
|
662
|
+
<p>Create <code>src/nodes/builtins/my_new_node.py</code>:</p>
|
|
663
|
+
<pre><code class="language-python">from src.nodes.base import BaseNode
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
class MyNewNode(BaseNode):
|
|
667
|
+
name = "my_new_node" # Must be unique; used as the node_id
|
|
668
|
+
|
|
669
|
+
def __init__(self):
|
|
670
|
+
super().__init__() # Adds exec_in and exec_out automatically
|
|
671
|
+
# [AUTO-GENERATED-PORTS-START]
|
|
672
|
+
self.add_input("input_value", "string", widget_type="text", default="")
|
|
673
|
+
self.add_output("output_value", "string")
|
|
674
|
+
# [AUTO-GENERATED-PORTS-END]
|
|
675
|
+
|
|
676
|
+
async def execute(self, inputs: dict) -> dict:
|
|
677
|
+
value = inputs.get("input_value", "")
|
|
678
|
+
result = value.strip() # example transform
|
|
679
|
+
return {
|
|
680
|
+
"output_value": result,
|
|
681
|
+
"exec_out": True,
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
def register_node():
|
|
686
|
+
return MyNewNode
|
|
687
|
+
</code></pre>
|
|
688
|
+
<h3 id="step-2-register-in-registrypy">Step 2: Register in registry.py</h3>
|
|
689
|
+
<p>Open <code>src/core/registry.py</code>. Find the block where other builtins are registered and add:</p>
|
|
690
|
+
<pre><code class="language-python">from src.nodes.builtins.my_new_node import MyNewNode
|
|
691
|
+
|
|
692
|
+
# In NodeRegistry._register_builtins():
|
|
693
|
+
for _cls in (..., MyNewNode):
|
|
694
|
+
_cls.node_id = _cls.name
|
|
695
|
+
cls._classes[_cls.name] = _cls
|
|
696
|
+
</code></pre>
|
|
697
|
+
<p>Built-in nodes registered in <code>_classes</code> only (not <code>_definitions</code>) do not appear in the search popup. To make a node visible in the library, also add it to <code>_definitions</code> with a <code>NodeDefinition</code> object, or define it as a JSON node instead.</p>
|
|
698
|
+
<h3 id="step-3-write-a-test">Step 3: Write a test</h3>
|
|
699
|
+
<p>See section 9 (Testing) for the test pattern.</p>
|
|
700
|
+
<hr />
|
|
701
|
+
<h2 id="6-how-to-add-a-new-json-node-to-nodes">6. How to Add a New JSON Node to <code>nodes/</code></h2>
|
|
702
|
+
<p>JSON nodes live in <code>nodes/</code> (or <code>plugins/houdini/v_nodes_houdini/</code> for Houdini-specific nodes). They appear automatically in the Node Library when the app starts.</p>
|
|
703
|
+
<h3 id="file-format">File format</h3>
|
|
704
|
+
<p>Create <code>nodes/my_node.json</code>:</p>
|
|
705
|
+
<pre><code class="language-json">{
|
|
706
|
+
"node_id": "my_node",
|
|
707
|
+
"name": "my_node",
|
|
708
|
+
"description": "One sentence description.",
|
|
709
|
+
"category": "Utilities",
|
|
710
|
+
"icon_path": null,
|
|
711
|
+
"use_exec": true,
|
|
712
|
+
"inputs": [
|
|
713
|
+
{ "name": "exec_in", "type": "any", "widget_type": null, "options": null, "default": null },
|
|
714
|
+
{ "name": "value", "type": "string", "widget_type": "text", "options": null, "default": "" }
|
|
715
|
+
],
|
|
716
|
+
"outputs": [
|
|
717
|
+
{ "name": "result", "type": "string", "widget_type": null, "options": null, "default": null },
|
|
718
|
+
{ "name": "exec_out", "type": "any", "widget_type": null, "options": null, "default": null }
|
|
719
|
+
],
|
|
720
|
+
"python_code": "class My_Node(BaseNode):\n name = \"my_node\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"value\", \"string\", widget_type=\"text\")\n self.add_output(\"result\", \"string\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs):\n v = inputs.get(\"value\", \"\")\n return {\"result\": v.upper(), \"exec_out\": True}\n\ndef register_node():\n return My_Node\n"
|
|
721
|
+
}
|
|
722
|
+
</code></pre>
|
|
723
|
+
<h3 id="formatting-python_code">Formatting <code>python_code</code></h3>
|
|
724
|
+
<p>The <code>python_code</code> field is a JSON string. All newlines must be <code>\n</code>, all double-quotes must be <code>\"</code>. Use the Node Builder dialog (accessible from the app) to build nodes visually and export the JSON — it handles escaping automatically.</p>
|
|
725
|
+
<h3 id="categories">Categories</h3>
|
|
726
|
+
<p>Use established categories to keep the library organized:</p>
|
|
727
|
+
<table>
|
|
728
|
+
<thead>
|
|
729
|
+
<tr>
|
|
730
|
+
<th>Category</th>
|
|
731
|
+
<th>Use for</th>
|
|
732
|
+
</tr>
|
|
733
|
+
</thead>
|
|
734
|
+
<tbody>
|
|
735
|
+
<tr>
|
|
736
|
+
<td><code>Utilities</code></td>
|
|
737
|
+
<td>General-purpose data manipulation</td>
|
|
738
|
+
</tr>
|
|
739
|
+
<tr>
|
|
740
|
+
<td><code>String</code></td>
|
|
741
|
+
<td>String operations</td>
|
|
742
|
+
</tr>
|
|
743
|
+
<tr>
|
|
744
|
+
<td><code>Math</code></td>
|
|
745
|
+
<td>Numeric operations</td>
|
|
746
|
+
</tr>
|
|
747
|
+
<tr>
|
|
748
|
+
<td><code>List</code></td>
|
|
749
|
+
<td>List operations</td>
|
|
750
|
+
</tr>
|
|
751
|
+
<tr>
|
|
752
|
+
<td><code>Dict</code></td>
|
|
753
|
+
<td>Dictionary operations</td>
|
|
754
|
+
</tr>
|
|
755
|
+
<tr>
|
|
756
|
+
<td><code>File</code></td>
|
|
757
|
+
<td>File I/O</td>
|
|
758
|
+
</tr>
|
|
759
|
+
<tr>
|
|
760
|
+
<td><code>Control</code></td>
|
|
761
|
+
<td>Execution flow (loops, switches)</td>
|
|
762
|
+
</tr>
|
|
763
|
+
<tr>
|
|
764
|
+
<td><code>Houdini</code></td>
|
|
765
|
+
<td>Houdini bridge nodes</td>
|
|
766
|
+
</tr>
|
|
767
|
+
<tr>
|
|
768
|
+
<td><code>Maya</code></td>
|
|
769
|
+
<td>Maya headless action nodes</td>
|
|
770
|
+
</tr>
|
|
771
|
+
<tr>
|
|
772
|
+
<td><code>Prism</code></td>
|
|
773
|
+
<td>Prism Pipeline nodes</td>
|
|
774
|
+
</tr>
|
|
775
|
+
</tbody>
|
|
776
|
+
</table>
|
|
777
|
+
<h3 id="testing-json-nodes">Testing JSON nodes</h3>
|
|
778
|
+
<p>Load the JSON node through the registry and verify it loads without errors:</p>
|
|
779
|
+
<pre><code class="language-python">from src.core.registry import NodeRegistry
|
|
780
|
+
|
|
781
|
+
def test_my_node_loads():
|
|
782
|
+
registry = NodeRegistry()
|
|
783
|
+
registry._load_file("nodes/my_node.json")
|
|
784
|
+
cls = registry.get_class("my_node")
|
|
785
|
+
assert cls is not None
|
|
786
|
+
instance = cls()
|
|
787
|
+
assert hasattr(instance, "execute")
|
|
788
|
+
</code></pre>
|
|
789
|
+
<hr />
|
|
790
|
+
<h2 id="7-how-to-add-a-new-ui-feature">7. How to Add a New UI Feature</h2>
|
|
791
|
+
<h3 id="small-changes-new-action-new-dialog-trigger">Small changes (new action, new dialog trigger)</h3>
|
|
792
|
+
<p>Most small UI features only require changes to <code>src/ui/window.py</code>:</p>
|
|
793
|
+
<ol>
|
|
794
|
+
<li>Add a menu action in <code>_init_menu()</code>.</li>
|
|
795
|
+
<li>Connect the action to a slot method on <code>MainWindow</code>.</li>
|
|
796
|
+
<li>Implement the slot. Keep slots thin — delegate heavy logic to scene, engine, or a utility function.</li>
|
|
797
|
+
<li>If the action modifies the scene, call <code>scene.push_history("Description of change")</code> so it is undoable.</li>
|
|
798
|
+
</ol>
|
|
799
|
+
<h3 id="canvas-features-new-overlay-widget">Canvas features (new overlay widget)</h3>
|
|
800
|
+
<p>Canvas overlay widgets (like <code>MiniMap</code> and <code>CanvasSearchBar</code>) are child widgets of <code>NodeView</code>:</p>
|
|
801
|
+
<ol>
|
|
802
|
+
<li>Create <code>src/ui/canvas/my_overlay.py</code> with a <code>QWidget</code> or <code>QFrame</code> subclass.</li>
|
|
803
|
+
<li>Instantiate in <code>NodeView.__init__</code>: <code>self._my_overlay = MyOverlay(self)</code>.</li>
|
|
804
|
+
<li>Position in <code>NodeView.resizeEvent</code> using <code>self._my_overlay.move(x, y)</code>.</li>
|
|
805
|
+
<li>Expose a <code>show_my_overlay()</code> method on <code>NodeView</code>.</li>
|
|
806
|
+
<li>Call from <code>MainWindow</code> via <code>view.show_my_overlay()</code>.</li>
|
|
807
|
+
<li>Apply theme in <code>NodeView.apply_theme(is_dark)</code> → <code>self._my_overlay.apply_theme(is_dark)</code>.</li>
|
|
808
|
+
</ol>
|
|
809
|
+
<h3 id="new-scene-interactions">New scene interactions</h3>
|
|
810
|
+
<p>For features that respond to scene events (new context menu items, drag behaviors):</p>
|
|
811
|
+
<ol>
|
|
812
|
+
<li>Override the relevant <code>QGraphicsScene</code> event method in <code>NodeScene</code>.</li>
|
|
813
|
+
<li>Emit a custom signal if <code>MainWindow</code> needs to respond.</li>
|
|
814
|
+
<li>Never import <code>MainWindow</code> from inside <code>scene.py</code> — use signals only.</li>
|
|
815
|
+
</ol>
|
|
816
|
+
<h3 id="history-push-rules">History push rules</h3>
|
|
817
|
+
<p>Any action that modifies the workflow must push history:</p>
|
|
818
|
+
<pre><code class="language-python"># Correct: push history after the change
|
|
819
|
+
scene.remove_node(widget)
|
|
820
|
+
scene.push_history("Delete node")
|
|
821
|
+
|
|
822
|
+
# Wrong: push history before the change
|
|
823
|
+
scene.push_history("Delete node") # the history snapshot won't have the change
|
|
824
|
+
scene.remove_node(widget)
|
|
825
|
+
</code></pre>
|
|
826
|
+
<hr />
|
|
827
|
+
<h2 id="8-how-to-add-a-new-engine-feature">8. How to Add a New Engine Feature</h2>
|
|
828
|
+
<p><code>src/core/engine.py</code> contains <code>NetworkExecutor</code>. Keep changes here minimal and targeted.</p>
|
|
829
|
+
<h3 id="signal-naming">Signal naming</h3>
|
|
830
|
+
<p>Add new signals at the class level:</p>
|
|
831
|
+
<pre><code class="language-python">class NetworkExecutor(QObject):
|
|
832
|
+
node_started = pyqtSignal(str) # node instance_id
|
|
833
|
+
node_finished = pyqtSignal(str, dict) # instance_id, results
|
|
834
|
+
node_error = pyqtSignal(str, str) # instance_id, error message
|
|
835
|
+
my_new_signal = pyqtSignal(str, object) # follow existing pattern
|
|
836
|
+
</code></pre>
|
|
837
|
+
<h3 id="execution-order">Execution order</h3>
|
|
838
|
+
<p>The executor uses a dependency graph (topological sort) to determine execution order. Do not hardcode execution order in new features — always derive from graph connectivity.</p>
|
|
839
|
+
<h3 id="thread-safety">Thread safety</h3>
|
|
840
|
+
<p><code>NetworkExecutor.run()</code> runs in an <code>asyncio</code> event loop on the Qt main thread (via <code>QEventLoop</code> integration). Do not spawn threads inside <code>run()</code>. Use <code>asyncio.to_thread()</code> for blocking I/O.</p>
|
|
841
|
+
<hr />
|
|
842
|
+
<h2 id="9-testing">9. Testing</h2>
|
|
843
|
+
<h3 id="test-infrastructure">Test infrastructure</h3>
|
|
844
|
+
<pre><code>tests/
|
|
845
|
+
├── unit/
|
|
846
|
+
│ ├── test_nodes.py # Per-node execute() tests
|
|
847
|
+
│ ├── test_registry.py # Registry load tests
|
|
848
|
+
│ ├── test_models.py # Pydantic model validation
|
|
849
|
+
│ └── test_engine.py # Execution engine tests
|
|
850
|
+
└── integration/
|
|
851
|
+
└── test_workflows.py # End-to-end workflow execution
|
|
852
|
+
</code></pre>
|
|
853
|
+
<h3 id="writing-a-node-test">Writing a node test</h3>
|
|
854
|
+
<pre><code class="language-python">import pytest
|
|
855
|
+
import asyncio
|
|
856
|
+
from src.nodes.builtins.my_new_node import MyNewNode
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
def test_my_node_init():
|
|
860
|
+
node = MyNewNode()
|
|
861
|
+
port_names = [p.name for p in node.inputs]
|
|
862
|
+
assert "exec_in" in port_names
|
|
863
|
+
assert "input_value" in port_names
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
def test_my_node_execute():
|
|
867
|
+
node = MyNewNode()
|
|
868
|
+
result = asyncio.run(node.execute({"input_value": " hello world "}))
|
|
869
|
+
assert result["output_value"] == "hello world"
|
|
870
|
+
assert result["exec_out"] is True
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
def test_my_node_empty_input():
|
|
874
|
+
node = MyNewNode()
|
|
875
|
+
result = asyncio.run(node.execute({}))
|
|
876
|
+
assert result["output_value"] == ""
|
|
877
|
+
assert result["exec_out"] is True
|
|
878
|
+
</code></pre>
|
|
879
|
+
<h3 id="writing-an-integration-test">Writing an integration test</h3>
|
|
880
|
+
<pre><code class="language-python">import asyncio
|
|
881
|
+
import pytest
|
|
882
|
+
from src.core.models import WorkflowModel
|
|
883
|
+
from src.core.graph import GraphManager
|
|
884
|
+
from src.core.engine import NetworkExecutor
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
def test_two_node_pipeline():
|
|
888
|
+
workflow_dict = {
|
|
889
|
+
"nodes": [...], # minimal workflow JSON
|
|
890
|
+
"edges": [...]
|
|
891
|
+
}
|
|
892
|
+
workflow = WorkflowModel.model_validate(workflow_dict)
|
|
893
|
+
gm = GraphManager()
|
|
894
|
+
gm.from_model(workflow)
|
|
895
|
+
executor = NetworkExecutor(gm)
|
|
896
|
+
|
|
897
|
+
results = {}
|
|
898
|
+
executor.node_finished.connect(lambda nid, r: results.update({nid: r}))
|
|
899
|
+
|
|
900
|
+
asyncio.run(executor.run())
|
|
901
|
+
assert len(results) == 2
|
|
902
|
+
</code></pre>
|
|
903
|
+
<h3 id="writing-a-ui-test">Writing a UI test</h3>
|
|
904
|
+
<pre><code class="language-python">import pytest
|
|
905
|
+
from PyQt5.QtCore import Qt
|
|
906
|
+
from src.ui.window import MainWindow
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
@pytest.fixture
|
|
910
|
+
def main_window(qtbot):
|
|
911
|
+
window = MainWindow()
|
|
912
|
+
qtbot.addWidget(window)
|
|
913
|
+
window.show()
|
|
914
|
+
return window
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
def test_canvas_search_opens(main_window, qtbot):
|
|
918
|
+
qtbot.keyClick(main_window, Qt.Key_F, Qt.ControlModifier)
|
|
919
|
+
assert main_window._current_view()._canvas_search_bar.isVisible()
|
|
920
|
+
</code></pre>
|
|
921
|
+
<h3 id="running-tests">Running tests</h3>
|
|
922
|
+
<pre><code class="language-bash"># Run a single module (recommended)
|
|
923
|
+
pytest tests/unit/test_registry.py -v
|
|
924
|
+
|
|
925
|
+
# Run a whole directory
|
|
926
|
+
pytest tests/unit
|
|
927
|
+
pytest tests/integration
|
|
928
|
+
|
|
929
|
+
# Run with coverage
|
|
930
|
+
pytest tests/unit --cov=src --cov-report=term-missing
|
|
931
|
+
</code></pre>
|
|
932
|
+
<p>All tests in <code>tests/unit/</code> and <code>tests/integration/</code> must pass before a PR is merged.</p>
|
|
933
|
+
<blockquote>
|
|
934
|
+
<p><strong>Do not run the entire test tree in a single <code>pytest</code> process</strong> (documented host constraint F-05). Run per-directory or per-file as shown above; CI shards the suite across separate processes, one pytest process per shard.</p>
|
|
935
|
+
<p><strong>Registered markers only.</strong> <code>pytest</code> runs with <code>--strict-markers</code> (set in <code>pytest.ini</code>), so any custom marker must be declared in the <code>markers</code> section of <code>pytest.ini</code>. An unregistered marker fails the run with <code>'<marker>' not found in 'markers' configuration option</code>.</p>
|
|
936
|
+
</blockquote>
|
|
937
|
+
<hr />
|
|
938
|
+
<h2 id="10-pull-request-process">10. Pull Request Process</h2>
|
|
939
|
+
<h3 id="branch-naming">Branch naming</h3>
|
|
940
|
+
<pre><code>feature/short-description # new feature
|
|
941
|
+
fix/short-description # bug fix
|
|
942
|
+
refactor/short-description # internal refactor (no behavior change)
|
|
943
|
+
docs/short-description # documentation only
|
|
944
|
+
</code></pre>
|
|
945
|
+
<p>Always branch from <code>main</code>. Never commit directly to <code>main</code>.</p>
|
|
946
|
+
<h3 id="commit-messages">Commit messages</h3>
|
|
947
|
+
<p>Use the imperative mood. Keep the subject line under 72 characters:</p>
|
|
948
|
+
<pre><code>Add async HTTP request node with JSON parsing
|
|
949
|
+
|
|
950
|
+
feat: add canvas search bar (Ctrl+F)
|
|
951
|
+
fix: prevent duplicate exec_in port when use_exec=True
|
|
952
|
+
refactor: extract edge tooltip logic into Edge.set_live_value()
|
|
953
|
+
docs: add GroupNode subgraph tutorial
|
|
954
|
+
</code></pre>
|
|
955
|
+
<p>Reference issue numbers where applicable: <code>Fixes #42</code>.</p>
|
|
956
|
+
<h3 id="what-reviewers-check">What reviewers check</h3>
|
|
957
|
+
<ol>
|
|
958
|
+
<li><strong>Does it break existing tests?</strong> Run <code>pytest tests/unit</code> (or the affected modules) and confirm all pass.</li>
|
|
959
|
+
<li><strong>Does it break existing workflows?</strong> Load the sample workflows in <code>examples/</code> and verify they still run.</li>
|
|
960
|
+
<li><strong>Is the API additive?</strong> No removed or renamed public methods or signals.</li>
|
|
961
|
+
<li><strong>Is the JSON format backward-compatible?</strong> New fields must be optional with defaults.</li>
|
|
962
|
+
<li><strong>No blocking calls in <code>execute()</code>?</strong> Check for <code>time.sleep</code>, <code>requests.get</code>, <code>open()</code> without <code>asyncio.to_thread</code>.</li>
|
|
963
|
+
<li><strong>Are new nodes tested?</strong> At least <code>test_init</code> and <code>test_execute</code> with normal and edge-case inputs.</li>
|
|
964
|
+
<li><strong>Is <code>CLAUDE.md</code> updated?</strong> Any new bridge methods, node patterns, or bug fixes that future AI contributors need to know about.</li>
|
|
965
|
+
</ol>
|
|
966
|
+
<hr />
|
|
967
|
+
<h2 id="11-versioning">11. Versioning</h2>
|
|
968
|
+
<p>Vibrante-Node uses semantic versioning: <code>MAJOR.MINOR.PATCH</code>.</p>
|
|
969
|
+
<table>
|
|
970
|
+
<thead>
|
|
971
|
+
<tr>
|
|
972
|
+
<th>Change type</th>
|
|
973
|
+
<th>Version bump</th>
|
|
974
|
+
</tr>
|
|
975
|
+
</thead>
|
|
976
|
+
<tbody>
|
|
977
|
+
<tr>
|
|
978
|
+
<td>Breaking API change</td>
|
|
979
|
+
<td>MAJOR (e.g., 2.x.x → 3.0.0)</td>
|
|
980
|
+
</tr>
|
|
981
|
+
<tr>
|
|
982
|
+
<td>New feature, backward compatible</td>
|
|
983
|
+
<td>MINOR (e.g., 2.0.x → 2.1.0)</td>
|
|
984
|
+
</tr>
|
|
985
|
+
<tr>
|
|
986
|
+
<td>Bug fix</td>
|
|
987
|
+
<td>PATCH (e.g., 2.0.0 → 2.0.1)</td>
|
|
988
|
+
</tr>
|
|
989
|
+
</tbody>
|
|
990
|
+
</table>
|
|
991
|
+
<p>The version string lives in <code>src/__init__.py</code>:</p>
|
|
992
|
+
<pre><code class="language-python">__version__ = "2.1.0"
|
|
993
|
+
</code></pre>
|
|
994
|
+
<p>Update this, <code>RELEASE_vX.Y.Z.md</code>, and <code>README.md</code> version badge in the same commit.</p>
|
|
995
|
+
<hr />
|
|
996
|
+
<h2 id="12-backward-compatibility-rules">12. Backward Compatibility Rules</h2>
|
|
997
|
+
<h3 id="json-format-workflowmodel">JSON format (WorkflowModel)</h3>
|
|
998
|
+
<ul>
|
|
999
|
+
<li>Never remove a field from <code>WorkflowModel</code>, <code>NodeInstanceModel</code>, or <code>EdgeModel</code>.</li>
|
|
1000
|
+
<li>New fields must have a default value (<code>Optional[X] = None</code> or <code>list[X] = []</code>).</li>
|
|
1001
|
+
<li>If a field's semantics change, add a new field and deprecate (but keep) the old one for at least one major version.</li>
|
|
1002
|
+
<li>The <code>node_id</code> of any built-in node must never change. It is embedded in every saved workflow.</li>
|
|
1003
|
+
</ul>
|
|
1004
|
+
<h3 id="basenode-api">BaseNode API</h3>
|
|
1005
|
+
<ul>
|
|
1006
|
+
<li><code>execute(self, inputs: dict) -> dict</code> signature is frozen.</li>
|
|
1007
|
+
<li><code>self.memory</code>, <code>self.parameters</code>, <code>self.log_info()</code>, <code>self.log_error()</code> must remain accessible.</li>
|
|
1008
|
+
<li><code>add_input()</code> and <code>add_output()</code> parameter order must not change (new optional kwargs are fine).</li>
|
|
1009
|
+
<li><code>register_node()</code> convention must remain supported.</li>
|
|
1010
|
+
</ul>
|
|
1011
|
+
<h3 id="engine-signals">Engine signals</h3>
|
|
1012
|
+
<p>Signal signatures (<code>node_started</code>, <code>node_finished</code>, <code>node_error</code>) must remain stable. Downstream code (<code>window.py</code>, tests, user scripts) connects to these signals by name.</p>
|
|
1013
|
+
<hr />
|
|
1014
|
+
<h2 id="13-documentation">13. Documentation</h2>
|
|
1015
|
+
<h3 id="where-documentation-lives">Where documentation lives</h3>
|
|
1016
|
+
<ul>
|
|
1017
|
+
<li><code>docs_src/</code> — Markdown source files (this is what you edit).</li>
|
|
1018
|
+
<li><code>docs/</code> — Built HTML output (generated; do not edit manually).</li>
|
|
1019
|
+
</ul>
|
|
1020
|
+
<h3 id="building-the-docs">Building the docs</h3>
|
|
1021
|
+
<pre><code class="language-bash">python scripts/build_docs_portal.py
|
|
1022
|
+
</code></pre>
|
|
1023
|
+
<p>This runs MkDocs (or a custom builder) and writes output to <code>docs/</code>.</p>
|
|
1024
|
+
<h3 id="what-to-document">What to document</h3>
|
|
1025
|
+
<ul>
|
|
1026
|
+
<li>Every new node: add to the relevant section in <code>docs_src/05_node_reference.md</code>.</li>
|
|
1027
|
+
<li>Every new keyboard shortcut: add to <code>docs_src/03_ui_guide.md</code>.</li>
|
|
1028
|
+
<li>Every new engine feature or signal: add to <code>docs_src/06_engine_api.md</code>.</li>
|
|
1029
|
+
<li>Bug fixes that change user-visible behavior: add a note to <code>docs_src/11_troubleshooting.md</code>.</li>
|
|
1030
|
+
</ul>
|
|
1031
|
+
<h3 id="documentation-style">Documentation style</h3>
|
|
1032
|
+
<ul>
|
|
1033
|
+
<li>Use present tense: "The ForEach node fires…" not "The ForEach node will fire…".</li>
|
|
1034
|
+
<li>Prefer concrete examples over abstract descriptions.</li>
|
|
1035
|
+
<li>Every code block must be runnable as written. Test it.</li>
|
|
1036
|
+
<li>Tables over lists when comparing multiple options.</li>
|
|
1037
|
+
</ul>
|
|
1038
|
+
<hr />
|
|
1039
|
+
<h2 id="14-adding-to-claudemd">14. Adding to CLAUDE.md</h2>
|
|
1040
|
+
<p><code>CLAUDE.md</code> is the AI developer guide — it tells Claude (and other AI contributors) how this codebase works. Update it when you:</p>
|
|
1041
|
+
<ul>
|
|
1042
|
+
<li>Add a new bridge method to <code>hou_bridge.py</code>.</li>
|
|
1043
|
+
<li>Add a new node pattern that future nodes should follow.</li>
|
|
1044
|
+
<li>Fix a significant bug that an AI might otherwise reintroduce.</li>
|
|
1045
|
+
<li>Add a new file or module that changes the architecture.</li>
|
|
1046
|
+
</ul>
|
|
1047
|
+
<p>Keep entries concise. CLAUDE.md is a reference document, not a tutorial.</p>
|
|
1048
|
+
<hr />
|
|
1049
|
+
<h2 id="15-common-pitfalls-for-new-contributors">15. Common Pitfalls for New Contributors</h2>
|
|
1050
|
+
<p><strong>Adding exec_in/exec_out manually in <code>__init__</code></strong><br />
|
|
1051
|
+
<code>super().__init__()</code> already adds them. Adding them again creates duplicates. Only add ports that are specific to your node.</p>
|
|
1052
|
+
<p><strong>Calling <code>asyncio.run()</code> inside <code>execute()</code></strong><br />
|
|
1053
|
+
<code>execute()</code> is already running inside an event loop. Use <code>await</code> directly:</p>
|
|
1054
|
+
<pre><code class="language-python"># Wrong
|
|
1055
|
+
result = asyncio.run(some_coroutine())
|
|
1056
|
+
|
|
1057
|
+
# Correct
|
|
1058
|
+
result = await some_coroutine()
|
|
1059
|
+
</code></pre>
|
|
1060
|
+
<p><strong>Storing mutable state in class attributes</strong><br />
|
|
1061
|
+
Class attributes are shared across all instances. Use <code>self.parameters</code> for persisted state and <code>self.memory</code> for per-run state:</p>
|
|
1062
|
+
<pre><code class="language-python"># Wrong: shared across all instances
|
|
1063
|
+
class MyNode(BaseNode):
|
|
1064
|
+
results = [] # BUG: shared state
|
|
1065
|
+
|
|
1066
|
+
# Correct
|
|
1067
|
+
async def execute(self, inputs):
|
|
1068
|
+
results = list(self.memory.get("results", []))
|
|
1069
|
+
</code></pre>
|
|
1070
|
+
<p><strong>Hardcoding the port list in <code>inputs</code> dict</strong><br />
|
|
1071
|
+
The <code>inputs</code> dict only contains ports that have a connected wire or a widget value. Always use <code>.get()</code> with a default:</p>
|
|
1072
|
+
<pre><code class="language-python"># Fragile
|
|
1073
|
+
value = inputs["my_port"]
|
|
1074
|
+
|
|
1075
|
+
# Correct
|
|
1076
|
+
value = inputs.get("my_port", "default")
|
|
1077
|
+
</code></pre>
|
|
1078
|
+
<p><strong>Forgetting <code>exec_out</code> in the return dict</strong><br />
|
|
1079
|
+
Nodes that omit <code>exec_out</code> silently stop the execution chain. All exec-flow nodes must include <code>"exec_out": True</code> in their return dict.</p>
|
|
1080
|
+
<p><strong>Importing Qt modules directly</strong><br />
|
|
1081
|
+
Use <code>from src.utils.qt_compat import QtWidgets, QtGui, QtCore</code> to ensure PyQt5/PyQt6 compatibility. Never <code>from PyQt5 import ...</code> in shared code.</p>
|
|
1082
|
+
<p><strong>Modifying the scene outside the main thread</strong><br />
|
|
1083
|
+
All Qt widget operations must happen on the main thread. If your <code>execute()</code> uses <code>asyncio.to_thread()</code>, do not touch any Qt object from inside the thread callback.</p>
|
|
1084
|
+
<p><strong>Using <code>load_all()</code> instead of <code>load_all_with_extras()</code></strong><br />
|
|
1085
|
+
<code>load_all_with_extras()</code> is the correct entry point — it loads bundled nodes plus the <code>v_nodes_dir</code> extras. Plain <code>load_all()</code> silently skips Houdini nodes. Always use <code>load_all_with_extras()</code> in <code>window.py</code>.</p>
|
|
1086
|
+
<nav class="page-nav">
|
|
1087
|
+
<a class="page-nav-link prev" href="09_advanced_topics.html"><span class="page-nav-label">Previous</span><span class="page-nav-title">Advanced Topics</span></a>
|
|
1088
|
+
<a class="page-nav-link next" href="11_troubleshooting.html"><span class="page-nav-label">Next</span><span class="page-nav-title">Troubleshooting</span></a>
|
|
1089
|
+
</nav>
|
|
1090
|
+
<section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
|
|
1091
|
+
<p>Documentation &copy; 2024&ndash;2026 Mahmoud Kamal (KamalTD), licensed under
|
|
1092
|
+
<a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
|
|
1093
|
+
<a href="../LICENSE.txt">Full licence notice</a>.</p>
|
|
1094
|
+
<p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
|
|
1095
|
+
and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
|
|
1096
|
+
cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
|
|
1097
|
+
</section>
|
|
1098
|
+
</div>
|
|
1099
|
+
</main>
|
|
1100
|
+
|
|
1101
|
+
<!-- ── TOC ────────────────────────────────────────────────────────────── -->
|
|
1102
|
+
<aside class="toc">
|
|
1103
|
+
<div class="toc-title">On this page</div>
|
|
1104
|
+
<a class="toc-link toc-h2" href="#1-project-philosophy">1. Project Philosophy</a>
|
|
1105
|
+
<a class="toc-link toc-h2" href="#2-repository-structure">2. Repository Structure</a>
|
|
1106
|
+
<a class="toc-link toc-h2" href="#3-setting-up-a-development-environment">3. Setting Up a Development Environment</a>
|
|
1107
|
+
<a class="toc-link toc-h3" href="#prerequisites">Prerequisites</a>
|
|
1108
|
+
<a class="toc-link toc-h3" href="#steps">Steps</a>
|
|
1109
|
+
<a class="toc-link toc-h3" href="#requirementstxt-key-dependencies">requirements.txt Key Dependencies</a>
|
|
1110
|
+
<a class="toc-link toc-h3" href="#ide-configuration">IDE Configuration</a>
|
|
1111
|
+
<a class="toc-link toc-h2" href="#4-coding-standards">4. Coding Standards</a>
|
|
1112
|
+
<a class="toc-link toc-h3" href="#python-style">Python Style</a>
|
|
1113
|
+
<a class="toc-link toc-h3" href="#type-hints">Type Hints</a>
|
|
1114
|
+
<a class="toc-link toc-h3" href="#async-patterns">Async Patterns</a>
|
|
1115
|
+
<a class="toc-link toc-h3" href="#error-handling-in-nodes">Error Handling in Nodes</a>
|
|
1116
|
+
<a class="toc-link toc-h3" href="#signal-naming-conventions-ui">Signal Naming Conventions (UI)</a>
|
|
1117
|
+
<a class="toc-link toc-h2" href="#5-how-to-add-a-new-built-in-node">5. How to Add a New Built-in Node</a>
|
|
1118
|
+
<a class="toc-link toc-h3" href="#step-1-create-the-class-file">Step 1: Create the class file</a>
|
|
1119
|
+
<a class="toc-link toc-h3" href="#step-2-register-in-registrypy">Step 2: Register in registry.py</a>
|
|
1120
|
+
<a class="toc-link toc-h3" href="#step-3-write-a-test">Step 3: Write a test</a>
|
|
1121
|
+
<a class="toc-link toc-h2" href="#6-how-to-add-a-new-json-node-to-nodes">6. How to Add a New JSON Node to nodes/</a>
|
|
1122
|
+
<a class="toc-link toc-h3" href="#file-format">File format</a>
|
|
1123
|
+
<a class="toc-link toc-h3" href="#formatting-python_code">Formatting python_code</a>
|
|
1124
|
+
<a class="toc-link toc-h3" href="#categories">Categories</a>
|
|
1125
|
+
<a class="toc-link toc-h3" href="#testing-json-nodes">Testing JSON nodes</a>
|
|
1126
|
+
<a class="toc-link toc-h2" href="#7-how-to-add-a-new-ui-feature">7. How to Add a New UI Feature</a>
|
|
1127
|
+
<a class="toc-link toc-h3" href="#small-changes-new-action-new-dialog-trigger">Small changes (new action, new dialog trigger)</a>
|
|
1128
|
+
<a class="toc-link toc-h3" href="#canvas-features-new-overlay-widget">Canvas features (new overlay widget)</a>
|
|
1129
|
+
<a class="toc-link toc-h3" href="#new-scene-interactions">New scene interactions</a>
|
|
1130
|
+
<a class="toc-link toc-h3" href="#history-push-rules">History push rules</a>
|
|
1131
|
+
<a class="toc-link toc-h2" href="#8-how-to-add-a-new-engine-feature">8. How to Add a New Engine Feature</a>
|
|
1132
|
+
<a class="toc-link toc-h3" href="#signal-naming">Signal naming</a>
|
|
1133
|
+
<a class="toc-link toc-h3" href="#execution-order">Execution order</a>
|
|
1134
|
+
<a class="toc-link toc-h3" href="#thread-safety">Thread safety</a>
|
|
1135
|
+
<a class="toc-link toc-h2" href="#9-testing">9. Testing</a>
|
|
1136
|
+
<a class="toc-link toc-h3" href="#test-infrastructure">Test infrastructure</a>
|
|
1137
|
+
<a class="toc-link toc-h3" href="#writing-a-node-test">Writing a node test</a>
|
|
1138
|
+
<a class="toc-link toc-h3" href="#writing-an-integration-test">Writing an integration test</a>
|
|
1139
|
+
<a class="toc-link toc-h3" href="#writing-a-ui-test">Writing a UI test</a>
|
|
1140
|
+
<a class="toc-link toc-h3" href="#running-tests">Running tests</a>
|
|
1141
|
+
<a class="toc-link toc-h2" href="#10-pull-request-process">10. Pull Request Process</a>
|
|
1142
|
+
<a class="toc-link toc-h3" href="#branch-naming">Branch naming</a>
|
|
1143
|
+
<a class="toc-link toc-h3" href="#commit-messages">Commit messages</a>
|
|
1144
|
+
<a class="toc-link toc-h3" href="#what-reviewers-check">What reviewers check</a>
|
|
1145
|
+
<a class="toc-link toc-h2" href="#11-versioning">11. Versioning</a>
|
|
1146
|
+
<a class="toc-link toc-h2" href="#12-backward-compatibility-rules">12. Backward Compatibility Rules</a>
|
|
1147
|
+
<a class="toc-link toc-h3" href="#json-format-workflowmodel">JSON format (WorkflowModel)</a>
|
|
1148
|
+
<a class="toc-link toc-h3" href="#basenode-api">BaseNode API</a>
|
|
1149
|
+
<a class="toc-link toc-h3" href="#engine-signals">Engine signals</a>
|
|
1150
|
+
<a class="toc-link toc-h2" href="#13-documentation">13. Documentation</a>
|
|
1151
|
+
<a class="toc-link toc-h3" href="#where-documentation-lives">Where documentation lives</a>
|
|
1152
|
+
<a class="toc-link toc-h3" href="#building-the-docs">Building the docs</a>
|
|
1153
|
+
<a class="toc-link toc-h3" href="#what-to-document">What to document</a>
|
|
1154
|
+
<a class="toc-link toc-h3" href="#documentation-style">Documentation style</a>
|
|
1155
|
+
<a class="toc-link toc-h2" href="#14-adding-to-claudemd">14. Adding to CLAUDE.md</a>
|
|
1156
|
+
<a class="toc-link toc-h2" href="#15-common-pitfalls-for-new-contributors">15. Common Pitfalls for New Contributors</a>
|
|
1157
|
+
</aside>
|
|
1158
|
+
|
|
1159
|
+
<script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
|
|
1160
|
+
<script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
|
|
1161
|
+
<script>
|
|
1162
|
+
// ── Search ──────────────────────────────────────────────────────────────
|
|
1163
|
+
let _idx = null, _docs = [];
|
|
1164
|
+
|
|
1165
|
+
async function initSearch() {
|
|
1166
|
+
try {
|
|
1167
|
+
const base = document.getElementById('portal-base').dataset.base;
|
|
1168
|
+
const resp = await fetch(base + 'search.json');
|
|
1169
|
+
_docs = await resp.json();
|
|
1170
|
+
_idx = lunr(function() {
|
|
1171
|
+
this.ref('id');
|
|
1172
|
+
this.field('title', { boost: 10 });
|
|
1173
|
+
this.field('body');
|
|
1174
|
+
_docs.forEach((d, i) => {
|
|
1175
|
+
this.add({ id: i, title: d.title, body: d.body });
|
|
1176
|
+
});
|
|
1177
|
+
});
|
|
1178
|
+
} catch(e) { console.warn('Search index not available', e); }
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
function doSearch(q) {
|
|
1182
|
+
const box = document.getElementById('search-results');
|
|
1183
|
+
if (!q || q.length < 2) { box.classList.remove('visible'); return; }
|
|
1184
|
+
if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
|
|
1185
|
+
const results = _idx.search(q + '~1');
|
|
1186
|
+
if (!results.length) {
|
|
1187
|
+
box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>';
|
|
1188
|
+
box.classList.add('visible'); return;
|
|
1189
|
+
}
|
|
1190
|
+
box.innerHTML = results.slice(0, 8).map(r => {
|
|
1191
|
+
const d = _docs[r.ref];
|
|
1192
|
+
const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
|
|
1193
|
+
return `<a class="search-result-item" href="${d.url}">
|
|
1194
|
+
<div class="search-result-title">${d.title}</div>
|
|
1195
|
+
<div class="search-result-excerpt">${excerpt}</div>
|
|
1196
|
+
</a>`;
|
|
1197
|
+
}).join('');
|
|
1198
|
+
box.classList.add('visible');
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
1202
|
+
initSearch();
|
|
1203
|
+
const inp = document.getElementById('search-input');
|
|
1204
|
+
if (inp) {
|
|
1205
|
+
inp.addEventListener('input', e => doSearch(e.target.value));
|
|
1206
|
+
inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
|
|
1207
|
+
}
|
|
1208
|
+
document.addEventListener('click', e => {
|
|
1209
|
+
if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible');
|
|
1210
|
+
});
|
|
1211
|
+
// Keyboard shortcut: / to focus search
|
|
1212
|
+
document.addEventListener('keydown', e => {
|
|
1213
|
+
if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) {
|
|
1214
|
+
e.preventDefault(); document.getElementById('search-input')?.focus();
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
|
|
1218
|
+
// ── TOC active section ──────────────────────────────────────────────
|
|
1219
|
+
const tocLinks = document.querySelectorAll('.toc-link');
|
|
1220
|
+
const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
|
|
1221
|
+
if (tocLinks.length && headings.length) {
|
|
1222
|
+
const obs = new IntersectionObserver(entries => {
|
|
1223
|
+
entries.forEach(entry => {
|
|
1224
|
+
if (entry.isIntersecting) {
|
|
1225
|
+
tocLinks.forEach(l => l.classList.remove('active'));
|
|
1226
|
+
const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`);
|
|
1227
|
+
if (link) link.classList.add('active');
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
}, { rootMargin: '-20% 0px -70% 0px' });
|
|
1231
|
+
headings.forEach(h => obs.observe(h));
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// ── Copy buttons ────────────────────────────────────────────────────
|
|
1235
|
+
document.querySelectorAll('pre').forEach(pre => {
|
|
1236
|
+
const btn = document.createElement('button');
|
|
1237
|
+
btn.className = 'copy-btn'; btn.textContent = 'Copy';
|
|
1238
|
+
btn.addEventListener('click', () => {
|
|
1239
|
+
const code = pre.querySelector('code');
|
|
1240
|
+
navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => {
|
|
1241
|
+
btn.textContent = 'Copied!'; btn.classList.add('copied');
|
|
1242
|
+
setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000);
|
|
1243
|
+
});
|
|
1244
|
+
});
|
|
1245
|
+
pre.style.position = 'relative';
|
|
1246
|
+
pre.appendChild(btn);
|
|
1247
|
+
});
|
|
1248
|
+
|
|
1249
|
+
// ── Sidebar active ──────────────────────────────────────────────────
|
|
1250
|
+
const cur = window.location.pathname.split('/').pop();
|
|
1251
|
+
document.querySelectorAll('.sidebar-link').forEach(l => {
|
|
1252
|
+
if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active');
|
|
1253
|
+
});
|
|
1254
|
+
|
|
1255
|
+
// ── highlight.js ────────────────────────────────────────────────────
|
|
1256
|
+
if (window.hljs) {
|
|
1257
|
+
hljs.configure({ ignoreUnescapedHTML: true });
|
|
1258
|
+
hljs.highlightAll();
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
</script>
|
|
1262
|
+
</body>
|
|
1263
|
+
</html>
|