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,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "houdini_scene_snapshot",
|
|
3
|
+
"name": "houdini_scene_snapshot",
|
|
4
|
+
"description": "",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/houdini_icon.png",
|
|
7
|
+
"use_exec": true,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"name": "output_path",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"widget_type": "text",
|
|
13
|
+
"options": null,
|
|
14
|
+
"default": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "label",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"options": null,
|
|
21
|
+
"default": null
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "verbose",
|
|
25
|
+
"type": "bool",
|
|
26
|
+
"widget_type": "bool",
|
|
27
|
+
"options": null,
|
|
28
|
+
"default": null
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"outputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "snapshot_path",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"widget_type": null,
|
|
36
|
+
"options": null,
|
|
37
|
+
"default": null
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"python_code": "from src.nodes.base import BaseNode\r\nfrom src.utils.hou_bridge import get_bridge\r\n\nclass Houdini_Scene_SnapshotNode(BaseNode):\n name = \"houdini_scene_snapshot\"\n init_first = False\n\n def __init__(self):\n \"\"\"Initialize node ports and resources.\"\"\"\n super().__init__()\n self.icon_path = \"icons/houdini_icon.png\"\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"output_path\", \"string\", widget_type=\"text\")\n self.add_input(\"label\", \"string\", widget_type=\"text\")\n self.add_input(\"verbose\", \"bool\", widget_type=\"bool\")\n self.add_output(\"snapshot_path\", \"string\")\n # [AUTO-GENERATED-PORTS-END]\n try:\n pass\n except Exception as e:\n pass\n\n def on_plug_sync(self, port_name, is_input, other_node, other_port_name):\n # Access the other node's port data using the specific other_port_name\n data = other_node.get_parameter(other_port_name)\n self.log_info(f\"Connected to {other_node.name} port '{other_port_name}'. Data: {data}\")\n\n def on_unplug_sync(self, port_name, is_input):\n self.log_info(f\"Disconnected {port_name}\")\n\n async def on_plug(self, port_name, is_input, other_node, other_port_name):\n pass\n\n async def on_unplug(self, port_name, is_input):\n pass\n\n async def on_parameter_changed(self, name, value):\n \"\"\"Called whenever a widget parameter changes (before execute).\n\n Example:\n if name == \"my_input\":\n await self.set_output(\"my_output\", value)\n \"\"\"\n pass\n\n async def execute(self, inputs):\n \"\"\"\n Main execution logic for the node.\n\n :param inputs: A dictionary containing data from connected input ports and widgets.\n Key: Port Name (string), Value: Port Data (any).\n :return: A dictionary containing data to be sent to output ports.\n Key: Port Name (string), Value: Port Data (any).\n \"\"\"\n output_path = inputs.get(\"output_path\", \"\")\r\n label = inputs.get(\"label\", \"snapshot\")\r\n verbose = inputs.get(\"verbose\", False)\r\n\r\n if not output_path:\r\n self.log_error(\"No output path provided.\")\r\n return {\"snapshot_path\": \"\", \"exec_out\": True}\r\n\r\n try:\r\n bridge = get_bridge()\r\n\r\n # Pull scene state from Houdini\r\n scene = bridge.scene_info()\r\n\r\n import json, os, datetime\r\n\r\n snapshot = {\r\n \"label\": label,\r\n \"timestamp\": datetime.datetime.now().isoformat(),\r\n \"hip_file\": scene.get(\"hip_file\", \"\"),\r\n \"houdini_version\": scene.get(\"houdini_version\", \"\"),\r\n \"fps\": scene.get(\"fps\", 24),\r\n \"frame\": scene.get(\"frame\", 1),\r\n \"frame_range\": scene.get(\"frame_range\", [1, 240])\r\n }\r\n\r\n os.makedirs(os.path.dirname(output_path), exist_ok=True)\r\n\r\n with open(output_path, \"w\") as f:\r\n json.dump(snapshot, f, indent=4)\r\n\r\n if verbose:\r\n self.log_info(f\"Snapshot saved: {output_path}\")\r\n\r\n return {\"snapshot_path\": output_path, \"exec_out\": True}\r\n\r\n except Exception as e:\r\n self.log_error(f\"Snapshot failed: {str(e)}\")\r\n return {\"snapshot_path\": \"\", \"exec_out\": True}\r\n\n\ndef register_node():\n return Houdini_Scene_SnapshotNode\n"
|
|
41
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "http_request",
|
|
3
|
+
"name": "Http Request",
|
|
4
|
+
"description": "Async HTTP GET or POST request with optional JSON body and headers.",
|
|
5
|
+
"category": "Network",
|
|
6
|
+
"icon_path": "icons/http.png",
|
|
7
|
+
"use_exec": true,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"name": "url",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"widget_type": "text",
|
|
13
|
+
"options": null,
|
|
14
|
+
"default": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "method",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"options": null,
|
|
21
|
+
"default": "GET"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "headers",
|
|
25
|
+
"type": "any",
|
|
26
|
+
"widget_type": null,
|
|
27
|
+
"options": null,
|
|
28
|
+
"default": null
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "body",
|
|
32
|
+
"type": "any",
|
|
33
|
+
"widget_type": null,
|
|
34
|
+
"options": null,
|
|
35
|
+
"default": null
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "timeout",
|
|
39
|
+
"type": "int",
|
|
40
|
+
"widget_type": "int",
|
|
41
|
+
"options": null,
|
|
42
|
+
"default": "30"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "response_data",
|
|
48
|
+
"type": "any",
|
|
49
|
+
"widget_type": null,
|
|
50
|
+
"options": null,
|
|
51
|
+
"default": null
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "status_code",
|
|
55
|
+
"type": "int",
|
|
56
|
+
"widget_type": null,
|
|
57
|
+
"options": null,
|
|
58
|
+
"default": null
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "response_text",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"widget_type": null,
|
|
64
|
+
"options": null,
|
|
65
|
+
"default": null
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "success",
|
|
69
|
+
"type": "bool",
|
|
70
|
+
"widget_type": null,
|
|
71
|
+
"options": null,
|
|
72
|
+
"default": null
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"python_code": "import json\nimport asyncio\nfrom src.nodes.base import BaseNode\n\n\nclass Http_Request(BaseNode):\n name = \"http_request\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"url\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"method\", \"string\", widget_type=\"text\", default=\"GET\")\n self.add_input(\"headers\", \"any\", default=None)\n self.add_input(\"body\", \"any\", default=None)\n self.add_input(\"timeout\", \"int\", widget_type=\"int\", default=30)\n self.add_output(\"response_data\", \"any\")\n self.add_output(\"status_code\", \"int\")\n self.add_output(\"response_text\", \"string\")\n self.add_output(\"success\", \"bool\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs: dict) -> dict:\n import urllib.request\n import urllib.error\n\n url = inputs.get(\"url\", \"\")\n method = (inputs.get(\"method\") or \"GET\").upper()\n headers = dict(inputs.get(\"headers\") or {})\n body = inputs.get(\"body\")\n timeout = int(inputs.get(\"timeout\") or 30)\n\n if not url:\n self.log_error(\"No URL provided.\")\n return {\"response_data\": None, \"status_code\": 0,\n \"response_text\": \"\", \"success\": False, \"exec_out\": True}\n\n body_bytes = None\n if body is not None:\n body_str = json.dumps(body) if isinstance(body, (dict, list)) else str(body)\n body_bytes = body_str.encode(\"utf-8\")\n headers.setdefault(\"Content-Type\", \"application/json\")\n\n req = urllib.request.Request(url, data=body_bytes, headers=headers, method=method)\n\n def _sync_do():\n try:\n with urllib.request.urlopen(req, timeout=timeout) as resp:\n return resp.status, resp.read().decode(\"utf-8\")\n except urllib.error.HTTPError as e:\n return e.code, e.read().decode(\"utf-8\", errors=\"replace\")\n\n loop = asyncio.get_running_loop()\n try:\n status, text = await loop.run_in_executor(None, _sync_do)\n try:\n data = json.loads(text)\n except (json.JSONDecodeError, ValueError):\n data = text\n return {\n \"response_data\": data,\n \"status_code\": status,\n \"response_text\": text,\n \"success\": 200 <= status < 300,\n \"exec_out\": True,\n }\n except Exception as e:\n self.log_error(f\"HTTP request failed: {e}\")\n return {\"response_data\": None, \"status_code\": 0,\n \"response_text\": str(e), \"success\": False, \"exec_out\": True}\n\n\ndef register_node():\n return Http_Request\n"
|
|
76
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "if_condition",
|
|
3
|
+
"name": "If Condition",
|
|
4
|
+
"description": "Routes execution and data based on a condition. Triggers exec_out if True, exec_false if False.",
|
|
5
|
+
"category": "Logic",
|
|
6
|
+
"icon_path": "icons/logic.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "condition",
|
|
14
|
+
"type": "bool",
|
|
15
|
+
"widget_type": "bool"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "data",
|
|
19
|
+
"type": "any"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "exec_out",
|
|
25
|
+
"type": "exec"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "exec_false",
|
|
29
|
+
"type": "exec"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "on_true",
|
|
33
|
+
"type": "any"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "on_false",
|
|
37
|
+
"type": "any"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "result",
|
|
41
|
+
"type": "bool"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"python_code": "async def execute(self, inputs):\n raw_cond = inputs.get('condition', False)\n cond = bool(raw_cond)\n data = inputs.get('data')\n \n self.log_info(f\"Evaluating condition: {cond} (Raw: {raw_cond}, Type: {type(raw_cond).__name__})\")\n \n # Set data outputs\n await self.set_output('on_true', data if cond else None)\n await self.set_output('on_false', None if cond else data)\n await self.set_output('result', cond)\n\n # Trigger appropriate execution branch\n if cond:\n self.log_info(\"Triggering TRUE branch (exec_out)\")\n await self.set_output('exec_out', True)\n else:\n self.log_info(\"Triggering FALSE branch (exec_false)\")\n await self.set_output('exec_false', True)\n \n return {\n 'on_true': data if cond else None,\n 'on_false': None if cond else data,\n 'result': cond,\n 'exec_out': cond,\n 'exec_false': not cond\n }"
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "list_directory",
|
|
3
|
+
"name": "List Directory",
|
|
4
|
+
"description": "List files and folders in a directory.",
|
|
5
|
+
"category": "File",
|
|
6
|
+
"icon_path": "icons/folder.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "path", "type": "string", "widget_type": "text", "default": "." },
|
|
10
|
+
{ "name": "recursive", "type": "bool", "widget_type": "bool", "default": false }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "result", "type": "list" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "import os\nfrom pathlib import Path\n\nasync def execute(self, inputs):\n p = inputs.get('path') or self.get_parameter('path', '.')\n recursive = inputs.get('recursive') if inputs.get('recursive') is not None else self.get_parameter('recursive', False)\n try:\n path = Path(p)\n items = []\n if recursive:\n for root, dirs, files in os.walk(path):\n for d in dirs:\n items.append(str(Path(root) / d))\n for f in files:\n items.append(str(Path(root) / f))\n else:\n if path.exists():\n for entry in path.iterdir():\n items.append(str(entry))\n res = items\n except Exception as e:\n try: self.log_info(f'List Directory error: {e}')\n except Exception: pass\n res = []\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "list_images_recursive",
|
|
3
|
+
"name": "List Images Recursive",
|
|
4
|
+
"description": "Lists image files in a folder. Optionally recurses into sub-folders.",
|
|
5
|
+
"category": "Files",
|
|
6
|
+
"icon_path": null,
|
|
7
|
+
"use_exec": true,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"name": "folder_path",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"widget_type": "text",
|
|
13
|
+
"options": null,
|
|
14
|
+
"default": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "recursive",
|
|
18
|
+
"type": "bool",
|
|
19
|
+
"widget_type": "bool",
|
|
20
|
+
"options": null,
|
|
21
|
+
"default": false
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "image_paths",
|
|
27
|
+
"type": "list",
|
|
28
|
+
"widget_type": null,
|
|
29
|
+
"options": null,
|
|
30
|
+
"default": null
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "count",
|
|
34
|
+
"type": "int",
|
|
35
|
+
"widget_type": null,
|
|
36
|
+
"options": null,
|
|
37
|
+
"default": null
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"python_code": "from src.nodes.base import BaseNode\nimport os\n\n_IMAGE_EXTS = {\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".tiff\", \".tif\", \".webp\", \".exr\", \".hdr\"}\n\nclass List_Images_RecursiveNode(BaseNode):\n name = \"list_images_recursive\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"folder_path\", \"string\", widget_type=\"text\")\n self.add_input(\"recursive\", \"bool\", widget_type=\"bool\", default=False)\n self.add_output(\"image_paths\", \"list\")\n self.add_output(\"count\", \"int\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs):\n folder_path = inputs.get(\"folder_path\", \"\")\n recursive = inputs.get(\"recursive\", False)\n\n if not folder_path or not os.path.isdir(folder_path):\n self.log_error(f\"Invalid folder path: {folder_path!r}\")\n return {\"image_paths\": [], \"count\": 0, \"exec_out\": True}\n\n paths = []\n if recursive:\n for root, _, files in os.walk(folder_path):\n for fname in sorted(files):\n if os.path.splitext(fname)[1].lower() in _IMAGE_EXTS:\n paths.append(os.path.join(root, fname))\n else:\n for fname in sorted(os.listdir(folder_path)):\n if os.path.splitext(fname)[1].lower() in _IMAGE_EXTS:\n full = os.path.join(folder_path, fname)\n if os.path.isfile(full):\n paths.append(full)\n\n return {\"image_paths\": paths, \"count\": len(paths), \"exec_out\": True}\n\ndef register_node():\n return List_Images_RecursiveNode\n"
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "list_item_picker",
|
|
3
|
+
"name": "list_item_picker",
|
|
4
|
+
"description": "",
|
|
5
|
+
"category": "General",
|
|
6
|
+
"icon_path": null,
|
|
7
|
+
"use_exec": true,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"name": "items",
|
|
11
|
+
"type": "list",
|
|
12
|
+
"widget_type": null,
|
|
13
|
+
"options": null,
|
|
14
|
+
"default": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "selection",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "dropdown",
|
|
20
|
+
"options": null,
|
|
21
|
+
"default": null
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "selected_item",
|
|
27
|
+
"type": "any",
|
|
28
|
+
"widget_type": null,
|
|
29
|
+
"options": null,
|
|
30
|
+
"default": null
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "port_1",
|
|
34
|
+
"type": "any",
|
|
35
|
+
"widget_type": null,
|
|
36
|
+
"options": null,
|
|
37
|
+
"default": null
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"python_code": "from src.nodes.base import BaseNode\n\nclass List_Item_PickerNode(BaseNode):\n \"\"\"\n Demonstrates set_parameter for a dropdown inside on_plug_sync.\n\n Connect any list-producing node to the 'items' port.\n on_plug_sync fires immediately on connection and populates the\n 'selection' dropdown with the list contents as string options.\n When disconnected, the dropdown resets to a placeholder.\n\n Usage pattern\n -------------\n 1. Add a dropdown input with add_input(..., widget_type=\"dropdown\").\n 2. In on_plug_sync, read data from the other node with get_parameter().\n 3. Call self.set_parameter(\"<dropdown_port>\", [list_of_strings])\n to replace the dropdown items AND select the first one automatically.\n \"\"\"\n\n name = \"list_item_picker\"\n init_first = False\n\n def __init__(self):\n super().__init__(use_exec=True) # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"items\", \"list\")\n self.add_input(\"selection\", \"string\", widget_type=\"dropdown\")\n self.add_output(\"selected_item\", \"any\")\n self.add_output(\"port_1\", \"any\")\n # [AUTO-GENERATED-PORTS-END]\n # Data input — connect a node that outputs a list here\n self.add_input(\"items\", \"list\")\n\n # Dropdown that will be populated dynamically on connection.\n # Start with a placeholder so the widget is visible before any connection.\n self.add_input(\"selection\", \"string\", widget_type=\"dropdown\",\n options=[\"— connect a list —\"])\n\n self.add_output(\"selected_item\", \"any\")\n\n # ------------------------------------------------------------------\n # Connection callbacks\n # ------------------------------------------------------------------\n\n def on_plug_sync(self, port_name, is_input, other_node, other_port_name):\n if not is_input or port_name != \"items\":\n return\n\n # Read whatever value the upstream node currently holds on its port.\n data = other_node.get_parameter(other_port_name)\n\n if isinstance(data, list) and data:\n # Convert every element to a string so the combo box can display it.\n str_options = [str(item) for item in data]\n else:\n # Upstream node hasn't executed yet or returned something unexpected.\n # Provide a helpful placeholder instead of leaving the dropdown empty.\n str_options = [\"— run upstream node first —\"]\n\n # set_parameter with a list on a dropdown port:\n # • replaces the combo box items with str_options\n # • selects the first item automatically\n # • stores that first item as the current parameter value\n self.set_parameter(\"selection\", str_options)\n self.log_info(f\"Dropdown populated with {len(str_options)} option(s) \"\n f\"from '{other_node.name}.{other_port_name}'.\")\n\n def on_unplug_sync(self, port_name, is_input):\n if is_input and port_name == \"items\":\n # Reset to placeholder when the upstream node is disconnected.\n self.set_parameter(\"selection\", [\"— connect a list —\"])\n self.log_info(\"Upstream disconnected — dropdown reset.\")\n\n # ------------------------------------------------------------------\n # Execution\n # ------------------------------------------------------------------\n\n async def execute(self, inputs):\n items = inputs.get(\"items\", [])\n selected = self.get_parameter(\"selection\", \"\")\n\n # Find the item whose string representation matches the selection.\n for item in items:\n if str(item) == selected:\n return {\"selected_item\": item}\n\n # Nothing matched (e.g. upstream list changed since last connection).\n return {\"selected_item\": None}\n\n\ndef register_node():\n return List_Item_PickerNode\n"
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "list_length",
|
|
3
|
+
"name": "List Length",
|
|
4
|
+
"description": "Returns the length of a list, either provided or stored under `list_name`.",
|
|
5
|
+
"category": "Data",
|
|
6
|
+
"icon_path": "icons/hash.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "list_name", "type": "string", "widget_type": "text", "default": "" },
|
|
10
|
+
{ "name": "list", "type": "list" }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "length", "type": "int" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "from src.nodes.base import BaseNode\n\nasync def execute(self, inputs):\n name = inputs.get('list_name') or self.get_parameter('list_name', '')\n provided = inputs.get('list')\n if provided is None or provided == []:\n lst = BaseNode.memory.get(name) if name else None\n else:\n lst = provided\n\n length = 0\n try:\n if lst is not None:\n length = len(lst)\n except Exception as e:\n self.log_info(f'Error computing length: {e}')\n length = 0\n\n await self.set_output('length', length)\n await self.set_output('exec_out', True)\n return {'length': length}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "logical_gate",
|
|
3
|
+
"name": "Logical Gate",
|
|
4
|
+
"description": "Performs AND, OR, or NOT logic operations.",
|
|
5
|
+
"category": "Logic",
|
|
6
|
+
"icon_path": "icons/logic.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "operation",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "dropdown",
|
|
16
|
+
"options": [
|
|
17
|
+
"AND",
|
|
18
|
+
"OR",
|
|
19
|
+
"NOT"
|
|
20
|
+
],
|
|
21
|
+
"default": "AND"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "a",
|
|
25
|
+
"type": "bool",
|
|
26
|
+
"widget_type": "bool"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "b",
|
|
30
|
+
"type": "bool",
|
|
31
|
+
"widget_type": "bool"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"outputs": [
|
|
35
|
+
{
|
|
36
|
+
"name": "exec_out",
|
|
37
|
+
"type": "exec"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "result",
|
|
41
|
+
"type": "bool"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"python_code": "def _run_logic(self):\n a = bool(self.get_parameter('a', False))\n b = bool(self.get_parameter('b', False))\n op = self.get_parameter('operation', 'AND')\n \n if op == 'AND': res = a and b\n elif op == 'OR': res = a or b\n elif op == 'NOT': res = not a\n else: res = False\n return res\n\nasync def execute(self, inputs):\n res = self._run_logic()\n await self.set_output('result', res)\n await self.set_output(\"exec_out\", True)\n return {'result': res}\n\nasync def on_parameter_changed(self, name, value):\n if name in ['a', 'b', 'operation']:\n res = self._run_logic()\n await self.set_output('result', res)"
|
|
45
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "loop_body",
|
|
3
|
+
"name": "Loop Body",
|
|
4
|
+
"description": "Executes logic for each index in a provided list. Triggers exec_out for each item, and exec_on_finished when done.",
|
|
5
|
+
"category": "Flow",
|
|
6
|
+
"icon_path": "icons/chevron-right.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "indices",
|
|
14
|
+
"type": "list"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "operation",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"default": "Processing"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "delay",
|
|
24
|
+
"type": "float",
|
|
25
|
+
"widget_type": "float",
|
|
26
|
+
"default": 0.0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "break_condition",
|
|
30
|
+
"type": "bool",
|
|
31
|
+
"widget_type": "bool",
|
|
32
|
+
"default": false
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"name": "exec_out",
|
|
38
|
+
"type": "exec"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "exec_on_finished",
|
|
42
|
+
"type": "exec"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "results",
|
|
46
|
+
"type": "list"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "current_index",
|
|
50
|
+
"type": "int"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "completed",
|
|
54
|
+
"type": "bool"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "broken",
|
|
58
|
+
"type": "bool"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"python_code": "import asyncio\nasync def execute(self, inputs):\n # RESET break_condition at start of execute\n self.parameters['break_condition'] = False\n\n indices = inputs.get('indices')\n if indices is None: indices = []\n \n raw_op = self.get_parameter('operation')\n op = str(raw_op) if raw_op is not None else 'Iteration'\n \n raw_delay = self.get_parameter('delay')\n try: delay = float(raw_delay)\n except: delay = 0.0\n \n self.log_info(f\"Starting: {op} for {len(indices)} items. Delay: {delay}s\")\n \n await self.set_output('completed', False)\n await self.set_output('broken', False)\n \n results = []\n is_broken = False\n curr_i = None\n \n for i in indices:\n if self.is_stopped():\n is_broken = True\n break\n\n # Yield to allow reactive updates\n await asyncio.sleep(0.01)\n \n if bool(self.get_parameter('break_condition', False)):\n self.log_info(f\"Break condition met at index {i}\")\n is_broken = True\n break\n \n curr_i = i\n self.log_info(f\"Loop {op} -> Index: {i}\")\n await self.set_output('current_index', i)\n \n # Trigger downstream chain for this iteration\n await self.set_output('exec_out', True)\n \n results.append(i)\n if delay > 0: await asyncio.sleep(delay)\n \n if is_broken:\n self.log_error(f\"Loop Aborted: {op}\")\n await self.set_output('broken', True)\n else:\n self.log_success(f\"Loop Finished: {op}\")\n await self.set_output('completed', True)\n \n # Trigger FINAL execution pin after loop is completely done\n await self.set_output('exec_on_finished', True)\n \n return {\n 'results': results, \n 'current_index': curr_i,\n 'completed': not is_broken,\n 'broken': is_broken\n }"
|
|
62
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "math_add",
|
|
3
|
+
"name": "Add",
|
|
4
|
+
"description": "Add two numbers (a + b).",
|
|
5
|
+
"category": "Math",
|
|
6
|
+
"icon_path": "icons/plus.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "a", "type": "number", "widget_type": "float", "default": 0 },
|
|
10
|
+
{ "name": "b", "type": "number", "widget_type": "float", "default": 0 }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "result", "type": "number" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "async def execute(self, inputs):\n a = inputs.get('a') if inputs.get('a') is not None else self.get_parameter('a', 0)\n b = inputs.get('b') if inputs.get('b') is not None else self.get_parameter('b', 0)\n try:\n res = (float(a) if a is not None else 0.0) + (float(b) if b is not None else 0.0)\n except Exception as e:\n try: self.log_info(f'Add error: {e}')\n except Exception: pass\n res = None\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "math_divide",
|
|
3
|
+
"name": "Divide",
|
|
4
|
+
"description": "Divide two numbers (a / b). Handles division by zero.",
|
|
5
|
+
"category": "Math",
|
|
6
|
+
"icon_path": "icons/divide.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "a", "type": "number", "widget_type": "float", "default": 0 },
|
|
10
|
+
{ "name": "b", "type": "number", "widget_type": "float", "default": 1 }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "result", "type": "number" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "async def execute(self, inputs):\n a = inputs.get('a') if inputs.get('a') is not None else self.get_parameter('a', 0)\n b = inputs.get('b') if inputs.get('b') is not None else self.get_parameter('b', 1)\n try:\n denom = float(b) if b is not None else 0.0\n if denom == 0.0:\n try: self.log_info('Divide by zero')\n except Exception: pass\n res = None\n else:\n res = (float(a) if a is not None else 0.0) / denom\n except Exception as e:\n try: self.log_info(f'Divide error: {e}')\n except Exception: pass\n res = None\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "math_modulo",
|
|
3
|
+
"name": "Modulo",
|
|
4
|
+
"description": "Compute a % b (modulo).",
|
|
5
|
+
"category": "Math",
|
|
6
|
+
"icon_path": "icons/percentage.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "a", "type": "number", "widget_type": "float", "default": 0 },
|
|
10
|
+
{ "name": "b", "type": "number", "widget_type": "float", "default": 1 }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "result", "type": "number" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "async def execute(self, inputs):\n a = inputs.get('a') if inputs.get('a') is not None else self.get_parameter('a', 0)\n b = inputs.get('b') if inputs.get('b') is not None else self.get_parameter('b', 1)\n try:\n denom = float(b) if b is not None else 0.0\n if denom == 0.0:\n try: self.log_info('Modulo by zero')\n except Exception: pass\n res = None\n else:\n res = (float(a) if a is not None else 0.0) % denom\n except Exception as e:\n try: self.log_info(f'Modulo error: {e}')\n except Exception: pass\n res = None\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "math_multiply",
|
|
3
|
+
"name": "Math Multiply",
|
|
4
|
+
"description": "Multiplies two numbers.",
|
|
5
|
+
"category": "Math",
|
|
6
|
+
"icon_path": "icons/multiply.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "a",
|
|
14
|
+
"type": "float",
|
|
15
|
+
"widget_type": "float",
|
|
16
|
+
"default": 1.0
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "b",
|
|
20
|
+
"type": "float",
|
|
21
|
+
"widget_type": "float",
|
|
22
|
+
"default": 1.0
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"outputs": [
|
|
26
|
+
{
|
|
27
|
+
"name": "exec_out",
|
|
28
|
+
"type": "exec"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "result",
|
|
32
|
+
"type": "float"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"python_code": "async def execute(self, inputs):\n a = float(inputs.get('a', 1.0))\n b = float(inputs.get('b', 1.0))\n res = a * b\n self.log_info(f\"Multiplying {a} * {b} = {res}\")\n \n await self.set_output('result', res)\n await self.set_output(\"exec_out\", True)\n return {'result': res}"
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "math_subtract",
|
|
3
|
+
"name": "Subtract",
|
|
4
|
+
"description": "Subtract two numbers (a - b).",
|
|
5
|
+
"category": "Math",
|
|
6
|
+
"icon_path": "icons/minus.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "a", "type": "number", "widget_type": "float", "default": 0 },
|
|
10
|
+
{ "name": "b", "type": "number", "widget_type": "float", "default": 0 }
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{ "name": "exec_out", "type": "exec" },
|
|
14
|
+
{ "name": "result", "type": "number" }
|
|
15
|
+
],
|
|
16
|
+
"python_code": "async def execute(self, inputs):\n a = inputs.get('a') if inputs.get('a') is not None else self.get_parameter('a', 0)\n b = inputs.get('b') if inputs.get('b') is not None else self.get_parameter('b', 0)\n try:\n res = (float(a) if a is not None else 0.0) - (float(b) if b is not None else 0.0)\n except Exception as e:\n try: self.log_info(f'Subtract error: {e}')\n except Exception: pass\n res = None\n\n await self.set_output('result', res)\n await self.set_output('exec_out', True)\n return {'result': res}"
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "maya_action_assign_material",
|
|
3
|
+
"name": "Maya Action: Assign Material",
|
|
4
|
+
"description": "Creates a Maya action that assigns an existing material (shading group or shader) to one or more target nodes. Provide target node names comma-separated. If a shader is provided instead of a shading group, the node will look up its shading group automatically. Chain via actions_in/actions_out into a Maya Headless node.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/maya_icon.jpg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "actions_in", "type": "list", "default": [] },
|
|
10
|
+
{ "name": "material", "type": "string", "widget_type": "text", "default": "" },
|
|
11
|
+
{ "name": "target_nodes", "type": "string", "widget_type": "text", "default": "" }
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
{ "name": "exec_out", "type": "exec" },
|
|
15
|
+
{ "name": "actions_out", "type": "list" }
|
|
16
|
+
],
|
|
17
|
+
"python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n\n material = inputs.get('material') or self.get_parameter('material', '')\n target_nodes = inputs.get('target_nodes') or self.get_parameter('target_nodes', '')\n\n action = {\n 'type': 'assign_material',\n 'material': material,\n 'target_nodes': target_nodes\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added assign_material action -> {material} to {target_nodes}')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "maya_action_bake_animation",
|
|
3
|
+
"name": "Maya Action: Bake Animation",
|
|
4
|
+
"description": "Creates a Maya action to bake animation onto specified nodes over a frame range. Provide target node names comma-separated. Chain multiple action nodes together via actions_in/actions_out, then feed the final actions_out into a Maya Headless node.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/maya_icon.jpg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "actions_in", "type": "list", "default": [] },
|
|
10
|
+
{ "name": "nodes", "type": "string", "widget_type": "text", "default": "" },
|
|
11
|
+
{ "name": "frame_start", "type": "int", "widget_type": "int", "default": 1 },
|
|
12
|
+
{ "name": "frame_end", "type": "int", "widget_type": "int", "default": 100 },
|
|
13
|
+
{ "name": "sample_by", "type": "float", "widget_type": "float", "default": 1.0 },
|
|
14
|
+
{ "name": "simulation", "type": "bool", "widget_type": "checkbox", "default": true }
|
|
15
|
+
],
|
|
16
|
+
"outputs": [
|
|
17
|
+
{ "name": "exec_out", "type": "exec" },
|
|
18
|
+
{ "name": "actions_out", "type": "list" }
|
|
19
|
+
],
|
|
20
|
+
"python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n\n nodes = inputs.get('nodes') or self.get_parameter('nodes', '')\n frame_start = inputs.get('frame_start')\n if frame_start is None:\n frame_start = self.get_parameter('frame_start', 1)\n frame_end = inputs.get('frame_end')\n if frame_end is None:\n frame_end = self.get_parameter('frame_end', 100)\n sample_by = inputs.get('sample_by')\n if sample_by is None:\n sample_by = self.get_parameter('sample_by', 1.0)\n simulation = inputs.get('simulation')\n if simulation is None:\n simulation = self.get_parameter('simulation', True)\n\n action = {\n 'type': 'bake_animation',\n 'nodes': nodes,\n 'frame_start': int(frame_start),\n 'frame_end': int(frame_end),\n 'sample_by': float(sample_by),\n 'simulation': bool(simulation)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added bake_animation action -> {nodes} (frames {frame_start}-{frame_end})')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "maya_action_create_render_layer",
|
|
3
|
+
"name": "Maya Action: Create Render Layer",
|
|
4
|
+
"description": "Creates a Maya action that creates a new render setup layer (renderSetup API) and optionally adds members via a collection. Provide member node names comma-separated. Chain via actions_in/actions_out into a Maya Headless node.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/maya_icon.jpg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "actions_in", "type": "list", "default": [] },
|
|
10
|
+
{ "name": "layer_name", "type": "string", "widget_type": "text", "default": "renderLayer1" },
|
|
11
|
+
{ "name": "members", "type": "string", "widget_type": "text", "default": "" },
|
|
12
|
+
{ "name": "make_current", "type": "bool", "widget_type": "checkbox", "default": true }
|
|
13
|
+
],
|
|
14
|
+
"outputs": [
|
|
15
|
+
{ "name": "exec_out", "type": "exec" },
|
|
16
|
+
{ "name": "actions_out", "type": "list" }
|
|
17
|
+
],
|
|
18
|
+
"python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n\n layer_name = inputs.get('layer_name') or self.get_parameter('layer_name', 'renderLayer1')\n members = inputs.get('members') or self.get_parameter('members', '')\n make_current = inputs.get('make_current')\n if make_current is None:\n make_current = self.get_parameter('make_current', True)\n\n action = {\n 'type': 'create_render_layer',\n 'layer_name': layer_name,\n 'members': members,\n 'make_current': bool(make_current)\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added create_render_layer action -> {layer_name}')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "maya_action_custom",
|
|
3
|
+
"name": "Maya Action: Custom",
|
|
4
|
+
"description": "A template Maya action node with editable Python code. Duplicate this node and modify the code to create your own custom Maya actions. The python_code runs inside mayapy with maya.cmds available.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/maya_icon.jpg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{ "name": "exec_in", "type": "exec" },
|
|
9
|
+
{ "name": "actions_in", "type": "list", "default": [] },
|
|
10
|
+
{ "name": "action_name", "type": "string", "widget_type": "text", "default": "my_custom_action" },
|
|
11
|
+
{ "name": "python_code", "type": "string", "widget_type": "text_area", "default": "# Write your Maya Python code here.\n# Available variables:\n# cmds - maya.cmds module\n# action - this action's dict (contains all fields below)\n#\n# Example: create a polySphere\n# cmds.polySphere(name='mySphere', radius=1)\n\nprint('Hello from custom Maya action!')\n" },
|
|
12
|
+
{ "name": "param1", "type": "string", "widget_type": "text", "default": "" },
|
|
13
|
+
{ "name": "param2", "type": "string", "widget_type": "text", "default": "" }
|
|
14
|
+
],
|
|
15
|
+
"outputs": [
|
|
16
|
+
{ "name": "exec_out", "type": "exec" },
|
|
17
|
+
{ "name": "actions_out", "type": "list" }
|
|
18
|
+
],
|
|
19
|
+
"python_code": "async def execute(self, inputs):\n actions_in = inputs.get('actions_in') or []\n if not isinstance(actions_in, list):\n actions_in = [actions_in]\n\n action_name = inputs.get('action_name') or self.get_parameter('action_name', 'my_custom_action')\n python_code = inputs.get('python_code') or self.get_parameter('python_code', '')\n param1 = inputs.get('param1') or self.get_parameter('param1', '')\n param2 = inputs.get('param2') or self.get_parameter('param2', '')\n\n action = {\n 'type': 'custom_python',\n 'action_name': action_name,\n 'python_code': python_code,\n 'param1': param1,\n 'param2': param2\n }\n\n actions_out = list(actions_in) + [action]\n self.log_info(f'Added custom action: {action_name}')\n\n await self.set_output('actions_out', actions_out)\n await self.set_output('exec_out', True)\n return {'actions_out': actions_out}"
|
|
20
|
+
}
|