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,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "mcp_server_init",
|
|
3
|
+
"name": "MCP: Server Init",
|
|
4
|
+
"description": "Register and open a long-lived connection to an MCP server. Transport is either stdio (subprocess command + args + env) or sse (HTTP/SSE url). The connection is cached by server_name; running this node a second time with the same name is a no-op. Other MCP nodes resolve their server by name from this registry.",
|
|
5
|
+
"category": "MCP",
|
|
6
|
+
"icon_path": null,
|
|
7
|
+
"use_exec": true,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{"name": "server_name", "type": "string", "widget_type": "text", "default": "default"},
|
|
10
|
+
{"name": "transport_type", "type": "string", "widget_type": "dropdown", "options": ["stdio", "sse"], "default": "stdio"},
|
|
11
|
+
{"name": "command", "type": "string", "widget_type": "text", "default": ""},
|
|
12
|
+
{"name": "args", "type": "string", "widget_type": "text", "default": ""},
|
|
13
|
+
{"name": "env_json", "type": "string", "widget_type": "text", "default": ""},
|
|
14
|
+
{"name": "url", "type": "string", "widget_type": "text", "default": ""}
|
|
15
|
+
],
|
|
16
|
+
"outputs": [
|
|
17
|
+
{"name": "connected", "type": "bool"},
|
|
18
|
+
{"name": "server_info", "type": "any"},
|
|
19
|
+
{"name": "capabilities", "type": "any"},
|
|
20
|
+
{"name": "server_name", "type": "string"}
|
|
21
|
+
],
|
|
22
|
+
"python_code": "import json\nfrom src.nodes.base import BaseNode\nfrom src.runtime import mcp_runtime\n\nclass MCPServerInitNode(BaseNode):\n name = \"MCP: Server Init\"\n category = \"MCP\"\n\n def __init__(self):\n super().__init__()\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"server_name\", \"string\", widget_type=\"text\", default=\"default\")\n self.add_input(\"transport_type\", \"string\", widget_type=\"dropdown\", options=[\"stdio\", \"sse\"], default=\"stdio\")\n self.add_input(\"command\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"args\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"env_json\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"url\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"connected\", \"bool\")\n self.add_output(\"server_info\", \"any\")\n self.add_output(\"capabilities\", \"any\")\n self.add_output(\"server_name\", \"string\")\n # [AUTO-GENERATED-PORTS-END]\n\n @staticmethod\n def _parse_args(raw):\n if not raw:\n return []\n raw = raw.strip()\n if not raw:\n return []\n if raw.startswith(\"[\"):\n try:\n value = json.loads(raw)\n if isinstance(value, list):\n return [str(item) for item in value]\n except json.JSONDecodeError:\n pass\n return [piece.strip() for piece in raw.split(\",\") if piece.strip()]\n\n @staticmethod\n def _parse_env(raw):\n if not raw:\n return None\n raw = raw.strip()\n if not raw:\n return None\n try:\n value = json.loads(raw)\n return value if isinstance(value, dict) else None\n except json.JSONDecodeError:\n return None\n\n async def execute(self, inputs):\n server_name = (inputs.get(\"server_name\") or \"default\").strip() or \"default\"\n transport = (inputs.get(\"transport_type\") or \"stdio\").strip().lower()\n if transport not in (\"stdio\", \"sse\"):\n self.log_error(f\"Unsupported transport: {transport!r}\")\n return {\"connected\": False, \"server_info\": {}, \"capabilities\": {}, \"server_name\": server_name, \"exec_out\": True}\n\n if transport == \"stdio\":\n command = (inputs.get(\"command\") or \"\").strip()\n if not command:\n self.log_error(\"stdio transport requires a 'command' value (e.g. npx, python).\")\n return {\"connected\": False, \"server_info\": {}, \"capabilities\": {}, \"server_name\": server_name, \"exec_out\": True}\n config = {\n \"command\": command,\n \"args\": self._parse_args(inputs.get(\"args\") or \"\"),\n \"env\": self._parse_env(inputs.get(\"env_json\") or \"\"),\n }\n else:\n url = (inputs.get(\"url\") or \"\").strip()\n if not url:\n self.log_error(\"sse transport requires a 'url' value.\")\n return {\"connected\": False, \"server_info\": {}, \"capabilities\": {}, \"server_name\": server_name, \"exec_out\": True}\n config = {\"url\": url, \"headers\": None}\n\n try:\n result = await mcp_runtime.register_server(server_name, transport, config)\n reused = result.get(\"reused\", False)\n if reused:\n self.log_info(f\"Reusing existing MCP session '{server_name}'.\")\n else:\n self.log_success(f\"MCP session '{server_name}' connected ({transport}).\")\n return {\n \"connected\": bool(result.get(\"connected\")),\n \"server_info\": result.get(\"server_info\") or {},\n \"capabilities\": result.get(\"capabilities\") or {},\n \"server_name\": server_name,\n \"exec_out\": True,\n }\n except Exception as exc:\n self.log_error(f\"MCP register_server failed: {exc}\")\n return {\"connected\": False, \"server_info\": {}, \"capabilities\": {}, \"server_name\": server_name, \"exec_out\": True}\n\ndef register_node():\n return MCPServerInitNode\n"
|
|
23
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "message_node",
|
|
3
|
+
"name": "Message Node",
|
|
4
|
+
"description": "Displays a message and passes it through.",
|
|
5
|
+
"category": "String",
|
|
6
|
+
"icon_path": "icons/message.svg",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "msg",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "text",
|
|
16
|
+
"options": null
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "exec_out",
|
|
22
|
+
"type": "exec"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "out",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"widget_type": null,
|
|
28
|
+
"options": null
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"python_code": "async def execute(self, inputs):\n msg_val = inputs.get('msg')\n msg = str(msg_val) if msg_val is not None else ''\n self.log_info(f'MESSAGE: {msg}')\n await self.set_output('out', msg)\n await self.set_output('exec_out', True)\n return {'out': msg}\n\nasync def on_parameter_changed(self, name, value):\n if name == 'msg':\n self.parameters['out'] = value"
|
|
32
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_add_integration",
|
|
3
|
+
"name": "Prism: Add DCC Integration",
|
|
4
|
+
"description": "Installs the Prism integration files into a DCC's preferences folder. Wraps core.integration.addIntegration(dcc, path). Use 'Add All' mode to add every available DCC integration via core.integration.addAllIntegrations().",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "mode",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "dropdown",
|
|
20
|
+
"options": [
|
|
21
|
+
"specific",
|
|
22
|
+
"all"
|
|
23
|
+
],
|
|
24
|
+
"default": "specific"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "dcc_name",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"widget_type": "text",
|
|
30
|
+
"default": "Maya"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "dcc_prefs_path",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"widget_type": "file"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"outputs": [
|
|
39
|
+
{
|
|
40
|
+
"name": "exec_out",
|
|
41
|
+
"type": "exec"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "success",
|
|
45
|
+
"type": "bool"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismAddIntegrationNode(BaseNode):\n name = \"Prism: Add DCC Integration\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"mode\", \"string\", widget_type=\"dropdown\", options=[\"specific\",\"all\"], default=\"specific\")\n self.add_input(\"dcc_name\", \"string\", widget_type=\"text\", default=\"Maya\")\n self.add_input(\"dcc_prefs_path\", \"string\", widget_type=\"file\")\n self.add_output(\"success\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n mode = inputs.get('mode') or 'specific'\n dcc = inputs.get('dcc_name') or ''\n path = inputs.get('dcc_prefs_path') or ''\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and run it before this node (connect its exec_out to this node's exec_in).\")\n return {'success': False, 'exec_out': True}\n try:\n if mode == 'all':\n core.integration.addAllIntegrations()\n self.log_success(\"Added all DCC integrations.\")\n else:\n if not dcc or not path:\n self.log_error(\"Need dcc_name and dcc_prefs_path for 'specific' mode.\")\n return {'success': False}\n core.integration.addIntegration(dcc, path)\n self.log_success(f\"Added integration: {dcc} -> {path}\")\n await self.set_output('exec_out', True)\n return {'success': True}\n except Exception as e:\n self.log_error(f\"addIntegration failed: {e}\")\n return {'success': False}\n\ndef register_node():\n return PrismAddIntegrationNode\n"
|
|
49
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_build_entity",
|
|
3
|
+
"name": "Prism: Build Entity Dict",
|
|
4
|
+
"description": "Pure helper node. Builds a Prism entity dict (asset or shot) that can be fed into any other Prism node. Does not call Prism - it's a data-only node.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "entity_type",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"widget_type": "dropdown",
|
|
12
|
+
"options": [
|
|
13
|
+
"asset",
|
|
14
|
+
"shot"
|
|
15
|
+
],
|
|
16
|
+
"default": "asset"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "asset_path",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"widget_type": "text",
|
|
22
|
+
"default": "chars/dog"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "sequence",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"widget_type": "text",
|
|
28
|
+
"default": "a"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "shot",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"widget_type": "text",
|
|
34
|
+
"default": "0010"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "entity",
|
|
40
|
+
"type": "dict"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"use_exec": false,
|
|
44
|
+
"python_code": "from src.nodes.base import BaseNode\n\nclass PrismBuildEntityNode(BaseNode):\n name = \"Prism: Build Entity Dict\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__(use_exec=False)\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"entity_type\", \"string\", widget_type=\"dropdown\", options=[\"asset\",\"shot\"], default=\"asset\")\n self.add_input(\"asset_path\", \"string\", widget_type=\"text\", default=\"chars/dog\")\n self.add_input(\"sequence\", \"string\", widget_type=\"text\", default=\"a\")\n self.add_input(\"shot\", \"string\", widget_type=\"text\", default=\"0010\")\n self.add_output(\"entity\", \"dict\")\n\n async def execute(self, inputs):\n etype = inputs.get('entity_type') or 'asset'\n if etype == 'asset':\n ent = {\n 'type': 'asset',\n 'asset_path': inputs.get('asset_path') or '',\n 'path': '',\n }\n else:\n ent = {\n 'type': 'shot',\n 'sequence': inputs.get('sequence') or '',\n 'shot': inputs.get('shot') or '',\n 'path': '',\n 'location': '',\n 'paths': {},\n }\n return {'entity': ent}\n\ndef register_node():\n return PrismBuildEntityNode\n"
|
|
45
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_change_project",
|
|
3
|
+
"name": "Prism: Change Project",
|
|
4
|
+
"description": "Switches the active Prism project. Wraps core.changeProject(path).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "project_path",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "file"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "exec_out",
|
|
25
|
+
"type": "exec"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "success",
|
|
29
|
+
"type": "bool"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "active_project",
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismChangeProjectNode(BaseNode):\n name = \"Prism: Change Project\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"project_path\", \"string\", widget_type=\"file\")\n self.add_output(\"success\", \"bool\")\n self.add_output(\"active_project\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n path = inputs.get('project_path') or ''\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'success': False, 'active_project': ''}\n try:\n core.changeProject(path)\n active = str(getattr(core, 'projectPath', '') or '')\n name = str(getattr(core, 'projectName', '') or '')\n self.log_success(f\"Switched to project '{name}' ({active})\")\n await self.set_output('exec_out', True)\n return {'success': True, 'active_project': active}\n except Exception as e:\n self.log_error(f\"changeProject failed: {e}\")\n return {'success': False, 'active_project': ''}\n\ndef register_node():\n return PrismChangeProjectNode\n"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_core_info",
|
|
3
|
+
"name": "Prism: Core Info",
|
|
4
|
+
"description": "Reads general information from a PrismCore instance: version, current project, username, and useful paths.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"name": "version",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "project_name",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "project_path",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "username",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "user_prefs_path",
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"use_exec": false,
|
|
36
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCoreInfoNode(BaseNode):\n name = \"Prism: Core Info\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__(use_exec=False)\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_output(\"version\", \"string\")\n self.add_output(\"project_name\", \"string\")\n self.add_output(\"project_path\", \"string\")\n self.add_output(\"username\", \"string\")\n self.add_output(\"user_prefs_path\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'version':'','project_name':'','project_path':'','username':'','user_prefs_path':''}\n\n def _safe(attr):\n try: return str(getattr(core, attr, '') or '')\n except Exception: return ''\n\n out = {\n 'version': _safe('version'),\n 'project_name': _safe('projectName'),\n 'project_path': _safe('projectPath'),\n 'username': _safe('username'),\n 'user_prefs_path': _safe('userPrefs') or _safe('prismRoot'),\n }\n self.log_info(f\"Prism {out['version']} | project: {out['project_name']} | user: {out['username']}\")\n return out\n\ndef register_node():\n return PrismCoreInfoNode\n"
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_core_init",
|
|
3
|
+
"name": "Prism: Init Core",
|
|
4
|
+
"description": "Initializes or retrieves the PrismCore instance. Outputs the `core` object used by all other Prism nodes. Inside a DCC (Houdini, Maya, Blender...) the existing PrismCore is reused; otherwise a fresh headless instance is created.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "prism_scripts_path",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "text",
|
|
16
|
+
"default": "C:/Program Files/Prism2/Scripts"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "load_project",
|
|
20
|
+
"type": "bool",
|
|
21
|
+
"widget_type": "bool",
|
|
22
|
+
"default": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "show_ui",
|
|
26
|
+
"type": "bool",
|
|
27
|
+
"widget_type": "bool",
|
|
28
|
+
"default": false
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"outputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "exec_out",
|
|
34
|
+
"type": "exec"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "core",
|
|
38
|
+
"type": "any"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "version",
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import bootstrap_prism_core, resolve_prism_core\n\nclass PrismCoreInitNode(BaseNode):\n name = \"Prism: Init Core\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"prism_scripts_path\", \"string\", widget_type=\"text\", default=\"C:/Program Files/Prism2/Scripts\")\n self.add_input(\"load_project\", \"bool\", widget_type=\"bool\", default=True)\n self.add_input(\"show_ui\", \"bool\", widget_type=\"bool\", default=False)\n self.add_output(\"core\", \"any\")\n self.add_output(\"version\", \"string\")\n\n async def execute(self, inputs):\n cached_core = resolve_prism_core()\n if cached_core is not None:\n self.log_success(f\"Reusing cached PrismCore (version={cached_core.version})\")\n await self.set_output('exec_out', True)\n return {'core': cached_core, 'version': str(cached_core.version)}\n\n scripts_path = inputs.get('prism_scripts_path', 'C:/Program Files/Prism2/Scripts')\n load_project = bool(inputs.get('load_project', True))\n show_ui = bool(inputs.get('show_ui', False))\n\n try:\n core = bootstrap_prism_core(prism_scripts_path=scripts_path, load_project=load_project, show_ui=show_ui)\n self.log_success(f\"PrismCore initialized (version={core.version})\")\n await self.set_output('exec_out', True)\n return {'core': core, 'version': str(core.version)}\n except Exception as e:\n self.log_error(f\"PrismCore init failed: {e}\")\n await self.set_output('exec_out', True)\n return {'core': None, 'version': ''}\n\ndef register_node():\n return PrismCoreInitNode\n"
|
|
46
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_create_category",
|
|
3
|
+
"name": "Prism: Create Category",
|
|
4
|
+
"description": "Creates a department + task category for an entity. Wraps core.entities.createCategory(entity, department, task).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "entity",
|
|
18
|
+
"type": "dict"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "department",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"widget_type": "text",
|
|
24
|
+
"default": "fx"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "task",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"widget_type": "text",
|
|
30
|
+
"default": "fire"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"outputs": [
|
|
34
|
+
{
|
|
35
|
+
"name": "exec_out",
|
|
36
|
+
"type": "exec"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "success",
|
|
40
|
+
"type": "bool"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCreateCategoryNode(BaseNode):\n name = \"Prism: Create Category\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"entity\", \"dict\")\n self.add_input(\"department\", \"string\", widget_type=\"text\", default=\"fx\")\n self.add_input(\"task\", \"string\", widget_type=\"text\", default=\"fire\")\n self.add_output(\"success\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n dept = inputs.get('department') or ''\n task = inputs.get('task') or ''\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'success': False}\n try:\n core.entities.createCategory(entity, dept, task)\n self.log_success(f\"Created category {dept}/{task} on {entity}.\")\n await self.set_output('exec_out', True)\n return {'success': True}\n except Exception as e:\n self.log_error(f\"createCategory failed: {e}\")\n return {'success': False}\n\ndef register_node():\n return PrismCreateCategoryNode\n"
|
|
44
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_create_entity",
|
|
3
|
+
"name": "Prism: Create Entity",
|
|
4
|
+
"description": "Creates an asset or a shot entity. Builds the entity dict from the chosen type and delegates to core.entities.createEntity(entity).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "entity_type",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "dropdown",
|
|
20
|
+
"options": [
|
|
21
|
+
"asset",
|
|
22
|
+
"shot"
|
|
23
|
+
],
|
|
24
|
+
"default": "asset"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "asset_path",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"widget_type": "text",
|
|
30
|
+
"default": "chars/dog"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "sequence",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"widget_type": "text",
|
|
36
|
+
"default": "a"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "shot",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"widget_type": "text",
|
|
42
|
+
"default": "0010"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "exec_out",
|
|
48
|
+
"type": "exec"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "success",
|
|
52
|
+
"type": "bool"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "entity",
|
|
56
|
+
"type": "dict"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCreateEntityNode(BaseNode):\n name = \"Prism: Create Entity\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"entity_type\", \"string\", widget_type=\"dropdown\", options=[\"asset\",\"shot\"], default=\"asset\")\n self.add_input(\"asset_path\", \"string\", widget_type=\"text\", default=\"chars/dog\")\n self.add_input(\"sequence\", \"string\", widget_type=\"text\", default=\"a\")\n self.add_input(\"shot\", \"string\", widget_type=\"text\", default=\"0010\")\n self.add_output(\"success\", \"bool\")\n self.add_output(\"entity\", \"dict\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'success': False, 'entity': {}}\n etype = inputs.get('entity_type') or 'asset'\n if etype == 'asset':\n entity = {\n 'type': 'asset',\n 'asset_path': inputs.get('asset_path') or '',\n 'path': '',\n }\n else:\n entity = {\n 'type': 'shot',\n 'sequence': inputs.get('sequence') or '',\n 'shot': inputs.get('shot') or '',\n 'path': '',\n 'location': '',\n 'paths': {},\n }\n try:\n result = core.entities.createEntity(entity)\n # Merge returned entity data (path etc.) if Prism returns a dict\n if isinstance(result, dict):\n entity.update({k: v for k, v in result.items() if v is not None})\n self.log_success(f\"Created entity: {entity}\")\n await self.set_output('exec_out', True)\n return {'success': True, 'entity': entity}\n except Exception as e:\n self.log_error(f\"createEntity failed: {e}\")\n return {'success': False, 'entity': entity}\n\ndef register_node():\n return PrismCreateEntityNode\n"
|
|
60
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_create_playblast",
|
|
3
|
+
"name": "Prism: Create Playblast",
|
|
4
|
+
"description": "Creates a playblast (viewport capture) for the current scene. Wraps core.mediaProducts.createPlayblast or core.appPlugin.createPlayblast.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "task",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"default": "preview"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "comment",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"default": ""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "start_frame",
|
|
30
|
+
"type": "int",
|
|
31
|
+
"widget_type": "int",
|
|
32
|
+
"default": 1
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "end_frame",
|
|
36
|
+
"type": "int",
|
|
37
|
+
"widget_type": "int",
|
|
38
|
+
"default": 100
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"outputs": [
|
|
42
|
+
{
|
|
43
|
+
"name": "exec_out",
|
|
44
|
+
"type": "exec"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "success",
|
|
48
|
+
"type": "bool"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "output_path",
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCreatePlayblastNode(BaseNode):\n name = \"Prism: Create Playblast\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"task\", \"string\", widget_type=\"text\", default=\"preview\")\n self.add_input(\"comment\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"start_frame\", \"int\", widget_type=\"int\", default=1)\n self.add_input(\"end_frame\", \"int\", widget_type=\"int\", default=100)\n self.add_output(\"success\", \"bool\")\n self.add_output(\"output_path\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n task = inputs.get('task') or 'preview'\n comment = inputs.get('comment') or ''\n s = int(inputs.get('start_frame') or 1)\n e = int(inputs.get('end_frame') or 100)\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'success': False, 'output_path': ''}\n try:\n res = None\n kwargs = {'task': task, 'comment': comment, 'startFrame': s, 'endFrame': e}\n for owner in (getattr(core, 'mediaProducts', None), getattr(core, 'media', None), getattr(core, 'appPlugin', None)):\n if owner is None: continue\n fn = getattr(owner, 'createPlayblast', None)\n if fn is None: continue\n try:\n res = fn(**kwargs)\n except TypeError:\n res = fn(task, comment)\n break\n if res is None:\n self.log_error(\"No createPlayblast method found.\")\n return {'success': False, 'output_path': ''}\n path = ''\n if isinstance(res, dict): path = res.get('path') or res.get('outputPath') or ''\n else: path = str(res or '')\n self.log_success(f\"Playblast created: {path or '(ok)'}\")\n await self.set_output('exec_out', True)\n return {'success': True, 'output_path': path}\n except Exception as e:\n self.log_error(f\"createPlayblast failed: {e}\")\n return {'success': False, 'output_path': ''}\n\ndef register_node():\n return PrismCreatePlayblastNode\n"
|
|
56
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_create_product_version",
|
|
3
|
+
"name": "Prism: Create Product Version",
|
|
4
|
+
"description": "Creates the next version slot for a product on an entity and returns the versioned file path. Uses core.products.createProduct() + generateProductPath().",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "entity",
|
|
18
|
+
"type": "dict"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "task",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"widget_type": "text"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "department",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"widget_type": "text",
|
|
29
|
+
"default": ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "product_name",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"widget_type": "text"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "comment",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"widget_type": "text",
|
|
40
|
+
"default": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "extension",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"widget_type": "text",
|
|
46
|
+
"default": ".abc"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"outputs": [
|
|
50
|
+
{
|
|
51
|
+
"name": "exec_out",
|
|
52
|
+
"type": "exec"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "success",
|
|
56
|
+
"type": "bool"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "version_path",
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCreateProductVersionNode(BaseNode):\n name = \"Prism: Create Product Version\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"entity\", \"dict\")\n self.add_input(\"task\", \"string\", widget_type=\"text\")\n self.add_input(\"department\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"product_name\", \"string\", widget_type=\"text\")\n self.add_input(\"comment\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"extension\", \"string\", widget_type=\"text\", default=\".abc\")\n self.add_output(\"success\", \"bool\")\n self.add_output(\"version_path\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n task = inputs.get('task') or ''\n prod = inputs.get('product_name') or task\n comment = inputs.get('comment') or ''\n ext = inputs.get('extension') or '.abc'\n\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph.\")\n return {'success': False, 'version_path': ''}\n if not prod:\n self.log_error(\"product_name (or task) is required.\")\n return {'success': False, 'version_path': ''}\n if not entity.get('type'):\n self.log_error(f\"entity is missing 'type' field. Received: {entity}\")\n return {'success': False, 'version_path': ''}\n\n try:\n # Step 1: ensure the product folder exists\n # createProduct(entity, product, location) -> folder path\n prod_folder = core.products.createProduct(entity, prod)\n self.log_info(f\"Product folder: {prod_folder}\")\n except Exception as e:\n self.log_error(f\"createProduct failed: {e}\")\n return {'success': False, 'version_path': ''}\n\n try:\n # Step 2: resolve the versioned output file path\n # generateProductPath(entity, task, extension, comment) -> file path string\n path = core.products.generateProductPath(\n entity=entity,\n task=prod,\n extension=ext,\n comment=comment,\n )\n path = str(path or '')\n except Exception as e:\n self.log_error(f\"generateProductPath failed: {e}\")\n return {'success': False, 'version_path': ''}\n\n if not path:\n self.log_error(\n f\"generateProductPath returned empty. \"\n f\"entity type='{entity.get('type')}' asset_path='{entity.get('asset_path')}' product='{prod}'\"\n )\n return {'success': False, 'version_path': ''}\n\n # Step 3: create the version subdirectory so DCC tools can write to it\n version_dir = os.path.dirname(path)\n if version_dir:\n try:\n os.makedirs(version_dir, exist_ok=True)\n self.log_info(f\"Version directory ready: {version_dir}\")\n except Exception as e:\n self.log_error(f\"Could not create version directory '{version_dir}': {e}\")\n return {'success': False, 'version_path': ''}\n\n self.log_success(f\"Product version path: {path}\")\n # Push data outputs BEFORE exec_out so downstream exec nodes\n # receive the values when the engine syncs their inputs.\n await self.set_output('version_path', path)\n await self.set_output('success', True)\n await self.set_output('exec_out', True)\n return {'success': True, 'version_path': path}\n\ndef register_node():\n return PrismCreateProductVersionNode\n"
|
|
64
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_create_project",
|
|
3
|
+
"name": "Prism: Create Project",
|
|
4
|
+
"description": "Creates a new Prism project at the given folder using the specified preset. Wraps core.projects.createProject(name, path, preset).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "exec_in",
|
|
10
|
+
"type": "exec"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "core",
|
|
14
|
+
"type": "any"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "name",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"default": "My Project"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "path",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "file",
|
|
26
|
+
"default": "D:/Projects/myProject"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "preset",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"widget_type": "text",
|
|
32
|
+
"default": "Default"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"name": "exec_out",
|
|
38
|
+
"type": "exec"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "success",
|
|
42
|
+
"type": "bool"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "project_path",
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismCreateProjectNode(BaseNode):\n name = \"Prism: Create Project\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n self.add_input(\"core\", \"any\")\n self.add_input(\"name\", \"string\", widget_type=\"text\", default=\"My Project\")\n self.add_input(\"path\", \"string\", widget_type=\"file\", default=\"D:/Projects/myProject\")\n self.add_input(\"preset\", \"string\", widget_type=\"text\", default=\"Default\")\n self.add_output(\"success\", \"bool\")\n self.add_output(\"project_path\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph and connect its exec_out before this node.\")\n return {'success': False, 'project_path': ''}\n name = inputs.get('name') or 'Untitled'\n path = inputs.get('path') or ''\n preset = inputs.get('preset') or 'Default'\n try:\n core.projects.createProject(name, path, preset=preset)\n self.log_success(f\"Created project '{name}' at {path}\")\n await self.set_output('exec_out', True)\n return {'success': True, 'project_path': path}\n except Exception as e:\n self.log_error(f\"createProject failed: {e}\")\n return {'success': False, 'project_path': ''}\n\ndef register_node():\n return PrismCreateProjectNode\n"
|
|
50
|
+
}
|