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,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_entity_info",
|
|
3
|
+
"name": "Prism: Get Entity Info",
|
|
4
|
+
"description": "Unpack an entity dict into named output fields.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "entity",
|
|
10
|
+
"type": "dict",
|
|
11
|
+
"widget_type": null,
|
|
12
|
+
"options": null,
|
|
13
|
+
"default": null
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"outputs": [
|
|
17
|
+
{
|
|
18
|
+
"name": "type",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"widget_type": null,
|
|
21
|
+
"options": null,
|
|
22
|
+
"default": null
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "name",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"widget_type": null,
|
|
28
|
+
"options": null,
|
|
29
|
+
"default": null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "sequence",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "shot_name",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "asset_path",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"widget_type": null,
|
|
49
|
+
"options": null,
|
|
50
|
+
"default": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "path",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"widget_type": null,
|
|
56
|
+
"options": null,
|
|
57
|
+
"default": null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "display_name",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"widget_type": null,
|
|
63
|
+
"options": null,
|
|
64
|
+
"default": null
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"python_code": "from src.nodes.base import BaseNode\n\nclass PrismGetEntityInfoNode(BaseNode):\n name = \"Prism: Get Entity 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(\"entity\", \"dict\")\n self.add_output(\"type\", \"string\")\n self.add_output(\"name\", \"string\")\n self.add_output(\"sequence\", \"string\")\n self.add_output(\"shot_name\", \"string\")\n self.add_output(\"asset_path\", \"string\")\n self.add_output(\"path\", \"string\")\n self.add_output(\"display_name\", \"string\")\n\n async def execute(self, inputs):\n entity = inputs.get('entity') or {}\n etype = str(entity.get('type', '')).lower()\n fs_path = str(entity.get('path', ''))\n if etype == 'shot':\n seq = str(entity.get('sequence', ''))\n shot = str(entity.get('shot', entity.get('name', '')))\n display = f'{seq}/{shot}' if seq else shot\n return {'type': 'shot', 'name': shot, 'sequence': seq,\n 'shot_name': shot, 'asset_path': '', 'path': fs_path, 'display_name': display}\n elif etype == 'asset':\n apath = str(entity.get('asset_path', entity.get('name', '')))\n leaf = apath.split('/')[-1] if apath else ''\n return {'type': 'asset', 'name': leaf, 'sequence': '',\n 'shot_name': '', 'asset_path': apath, 'path': fs_path, 'display_name': apath}\n else:\n return {'type': etype, 'name': str(entity.get('name', '')),\n 'sequence': '', 'shot_name': '', 'asset_path': '', 'path': fs_path,\n 'display_name': str(entity.get('name', etype))}\n\ndef register_node():\n return PrismGetEntityInfoNode\n",
|
|
68
|
+
"use_exec": false
|
|
69
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_entity_path",
|
|
3
|
+
"name": "Prism: Get Entity Path",
|
|
4
|
+
"description": "Resolve filesystem paths for an entity down to department and task level.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any",
|
|
11
|
+
"widget_type": null,
|
|
12
|
+
"options": null,
|
|
13
|
+
"default": null
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "entity",
|
|
17
|
+
"type": "dict",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "department",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "task",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"widget_type": "text",
|
|
33
|
+
"options": null,
|
|
34
|
+
"default": ""
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "entity_root",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "dept_path",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"widget_type": null,
|
|
49
|
+
"options": null,
|
|
50
|
+
"default": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "task_path",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"widget_type": null,
|
|
56
|
+
"options": null,
|
|
57
|
+
"default": null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "found",
|
|
61
|
+
"type": "bool",
|
|
62
|
+
"widget_type": null,
|
|
63
|
+
"options": null,
|
|
64
|
+
"default": null
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\nfrom src.utils.prism_config import (\n resolve_cfg, get_departments, resolve_dept_folder, get_entity_scenefiles_root\n)\n\nclass PrismGetEntityPathNode(BaseNode):\n name = \"Prism: Get Entity Path\"\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_input(\"entity\", \"dict\")\n self.add_input(\"department\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"task\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"entity_root\", \"string\")\n self.add_output(\"dept_path\", \"string\")\n self.add_output(\"task_path\", \"string\")\n self.add_output(\"found\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n dept_input = (inputs.get('department') or '').strip()\n task_input = (inputs.get('task') or '').strip()\n defaults = {'entity_root': '', 'dept_path': '', 'task_path': '', 'found': False}\n entity_root = entity.get('path', '').strip()\n if not entity_root:\n self.log_error('Entity has no path — connect output from prism_get_shot_by_sequence.')\n return defaults\n if not os.path.isdir(entity_root):\n self.log_error(f'Entity path does not exist: {entity_root}')\n return defaults\n cfg_path = resolve_cfg(core=core, entity=entity)\n entity_type = entity.get('type', 'shot')\n dept_defs = get_departments(core, cfg_path, entity_type)\n self.log_info(f'cfg={cfg_path}, dept_defs={[(d[\"abbreviation\"], d[\"name\"]) for d in dept_defs]}')\n dept_path = ''\n task_path = ''\n if dept_input:\n scenes_root = get_entity_scenefiles_root(entity, core, cfg_path)\n if not scenes_root:\n self.log_error(f'No Scenefiles folder in {entity_root}')\n return {'entity_root': entity_root, 'dept_path': '', 'task_path': '', 'found': True}\n dept_abbrev = resolve_dept_folder(dept_input, dept_defs) or dept_input.lower()\n for entry in os.scandir(scenes_root):\n if entry.is_dir() and entry.name.lower() == dept_abbrev:\n dept_path = entry.path\n break\n if dept_path:\n self.log_info(f\"dept '{dept_input}' (abbrev='{dept_abbrev}') -> {dept_path}\")\n else:\n available = sorted(e.name for e in os.scandir(scenes_root) if e.is_dir())\n self.log_error(f\"Dept '{dept_input}' (abbrev='{dept_abbrev}') not found — available: {available}\")\n if task_input and dept_path and os.path.isdir(dept_path):\n available_tasks = sorted(e.name for e in os.scandir(dept_path) if e.is_dir())\n self.log_info(f'available tasks: {available_tasks}')\n for entry in os.scandir(dept_path):\n if entry.is_dir() and entry.name.lower() == task_input.lower():\n task_path = entry.path\n break\n if task_path:\n self.log_info(f\"task '{task_input}' -> {task_path}\")\n else:\n self.log_error(f\"Task '{task_input}' not found — available: {available_tasks}\")\n self.log_info(f'entity_root={entity_root}')\n return {'entity_root': entity_root, 'dept_path': dept_path,\n 'task_path': task_path, 'found': True}\n\ndef register_node():\n return PrismGetEntityPathNode\n",
|
|
68
|
+
"use_exec": false
|
|
69
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_export_path",
|
|
3
|
+
"name": "Prism: Get Export Path",
|
|
4
|
+
"description": "Resolve output paths (Export, Renders, Playblasts) using Prism folder structure templates.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{"name": "core", "type": "any", "widget_type": null, "options": null, "default": null},
|
|
9
|
+
{"name": "entity", "type": "dict", "widget_type": null, "options": null, "default": null},
|
|
10
|
+
{"name": "output_type", "type": "string", "widget_type": "text", "options": null, "default": "export",
|
|
11
|
+
"description": "export | 3d | 3drender | 2d | 2drender | render | playblast"},
|
|
12
|
+
{"name": "identifier", "type": "string", "widget_type": "text", "options": null, "default": "",
|
|
13
|
+
"description": "Product name (export) or render identifier (renders/playblasts)"},
|
|
14
|
+
{"name": "version", "type": "string", "widget_type": "text", "options": null, "default": "latest"}
|
|
15
|
+
],
|
|
16
|
+
"outputs": [
|
|
17
|
+
{"name": "identifier_path", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
18
|
+
{"name": "version_dir", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
19
|
+
{"name": "version_path", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
20
|
+
{"name": "version", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
21
|
+
{"name": "file_pattern", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
22
|
+
{"name": "exists", "type": "bool", "widget_type": null, "options": null, "default": null}
|
|
23
|
+
],
|
|
24
|
+
"python_code": "import os\nimport re\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\nfrom src.utils.prism_config import resolve_cfg, read_pipeline_json\n\ndef _ver_num(name):\n m = re.search(r'v(\\d+)', name, re.IGNORECASE)\n return int(m.group(1)) if m else -1\n\ndef _fmt_version(v, padding):\n if not v or str(v).lower() == 'latest':\n return None\n s = str(v).lstrip('vV')\n try:\n return f'v{int(s):0{padding}d}'\n except ValueError:\n return v\n\nOUTPUT_ROOTS = {\n 'export': 'Export',\n 'exports': 'Export',\n 'product': 'Export',\n '3d': os.path.join('Renders', '3dRender'),\n '3drender': os.path.join('Renders', '3dRender'),\n '3drenders': os.path.join('Renders', '3dRender'),\n '2d': os.path.join('Renders', '2dRender'),\n '2drender': os.path.join('Renders', '2dRender'),\n '2drenders': os.path.join('Renders', '2dRender'),\n 'render': os.path.join('Renders', '3dRender'),\n 'renders': os.path.join('Renders', '3dRender'),\n 'playblast': 'Playblasts',\n 'playblasts':'Playblasts',\n}\n\nclass PrismGetExportPathNode(BaseNode):\n name = 'Prism: Get Export Path'\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_input('entity', 'dict')\n self.add_input('output_type', 'string', widget_type='text', default='export')\n self.add_input('identifier', 'string', widget_type='text', default='')\n self.add_input('version', 'string', widget_type='text', default='latest')\n self.add_output('identifier_path', 'string')\n self.add_output('version_dir', 'string')\n self.add_output('version_path', 'string')\n self.add_output('version', 'string')\n self.add_output('file_pattern', 'string')\n self.add_output('exists', 'bool')\n\n def _resolve_version(self, ident_path, target_ver, padding):\n if not os.path.isdir(ident_path):\n return target_ver or f'v{1:0{padding}d}', False\n ver_dirs = [e.name for e in os.scandir(ident_path) if e.is_dir() and re.match(r'v\\d+', e.name, re.I)]\n if not ver_dirs:\n return target_ver or f'v{1:0{padding}d}', False\n if target_ver:\n match = next((v for v in ver_dirs if v.lower() == target_ver.lower()), None)\n return (match or target_ver), (match is not None)\n latest = max(ver_dirs, key=_ver_num)\n return latest, True\n\n def _resolve_file(self, version_dir, identifier, version):\n \"\"\"Return the first file inside version_dir, preferring identifier+version match.\"\"\"\n if not os.path.isdir(version_dir):\n return ''\n files = [e.path for e in os.scandir(version_dir) if e.is_file()]\n if not files:\n return ''\n scored = []\n for f in files:\n name = os.path.basename(f).lower()\n score = (identifier.lower() in name) * 2 + (version.lower() in name)\n scored.append((score, f))\n scored.sort(key=lambda x: (-x[0], x[1]))\n return scored[0][1]\n\n def _build_file_pattern(self, entity, identifier, version, output_type):\n etype = entity.get('type', 'shot')\n seq = entity.get('sequence', '')\n shot = entity.get('shot', '')\n asset = (entity.get('asset_path') or '').split('/')[-1]\n if 'render' in output_type or 'playblast' in output_type:\n if etype == 'shot':\n return f'{seq}-{shot}_{identifier}_{version}.####.exr'\n return f'{asset}_{identifier}_{version}.####.exr'\n if etype == 'shot':\n return f'{seq}-{shot}_{identifier}_{version}.####.*'\n return f'{asset}_{identifier}_{version}.####.*'\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n out_type = (inputs.get('output_type') or 'export').strip().lower()\n identifier = (inputs.get('identifier') or '').strip()\n ver_input = (inputs.get('version') or 'latest').strip()\n defaults = {'identifier_path': '', 'version_dir': '', 'version_path': '', 'version': '', 'file_pattern': '', 'exists': False}\n entity_path = entity.get('path', '').strip()\n if not entity_path:\n self.log_error('Entity has no path.')\n return defaults\n root_sub = OUTPUT_ROOTS.get(out_type)\n if not root_sub:\n self.log_error(f\"Unknown output_type '{out_type}'. Use: export, 3drender, 2drender, playblast\")\n return defaults\n cfg_path = resolve_cfg(core=core, entity=entity)\n data = read_pipeline_json(cfg_path) if cfg_path else {}\n padding = int((data.get('globals') or {}).get('versionPadding', 4))\n output_root = os.path.join(entity_path, root_sub)\n ident_path = os.path.join(output_root, identifier) if identifier else output_root\n target_ver = _fmt_version(ver_input, padding)\n resolved_ver, ver_exists = self._resolve_version(ident_path, target_ver, padding)\n version_dir = os.path.join(ident_path, resolved_ver)\n actual_file = self._resolve_file(version_dir, identifier, resolved_ver)\n version_path = actual_file if actual_file else version_dir\n file_pattern = self._build_file_pattern(entity, identifier, resolved_ver, out_type)\n full_pattern = os.path.join(version_dir, file_pattern)\n self.log_info(f'output_type={out_type}, ident_path={ident_path}')\n self.log_info(f'version={resolved_ver}, version_dir={version_dir}')\n self.log_info(f'version_path (file)={version_path}')\n self.log_info(f'file_pattern={full_pattern}')\n return {\n 'identifier_path': ident_path,\n 'version_dir': version_dir,\n 'version_path': version_path,\n 'version': resolved_ver,\n 'file_pattern': full_pattern,\n 'exists': ver_exists,\n }\n\ndef register_node():\n return PrismGetExportPathNode\n",
|
|
25
|
+
"use_exec": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_latest_product_path",
|
|
3
|
+
"name": "Prism: Get Latest Product Path",
|
|
4
|
+
"description": "Returns the file path of the latest version of a product (named by string) for the given entity. Wraps core.products.getLatestVersionFromProduct(product_name, entity).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "entity",
|
|
14
|
+
"type": "dict"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "product_name",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "version_path",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "found",
|
|
29
|
+
"type": "bool"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetLatestProductPathNode(BaseNode):\n name = \"Prism: Get Latest Product Path\"\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_input(\"entity\", \"dict\")\n self.add_input(\"product_name\", \"string\", widget_type=\"text\")\n self.add_output(\"version_path\", \"string\")\n self.add_output(\"found\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n prod = inputs.get('product_name') 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 {'version_path': '', 'found': False}\n try:\n path = ''\n fn_names = ('getLatestVersionFromProduct', 'getLatestVersion', 'getLatestVersionPath')\n for fn_name in fn_names:\n if hasattr(core.products, fn_name):\n res = getattr(core.products, fn_name)(prod, entity)\n # Some versions return a dict with 'path', others a string\n if isinstance(res, dict):\n path = res.get('path') or res.get('filepath') or ''\n else:\n path = str(res or '')\n break\n found = bool(path)\n self.log_info(f\"Latest version path: {path or '(none)'}\")\n return {'version_path': path, 'found': found}\n except Exception as e:\n self.log_error(f\"getLatestVersionFromProduct failed: {e}\")\n return {'version_path': '', 'found': False}\n\ndef register_node():\n return PrismGetLatestProductPathNode\n",
|
|
33
|
+
"use_exec": false
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_media",
|
|
3
|
+
"name": "Prism: Get Media",
|
|
4
|
+
"description": "Lists all media identifiers (renders / playblasts) for the given entity. Wraps core.mediaProducts.getMediaProductsFromEntity(entity).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "entity",
|
|
14
|
+
"type": "dict"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "media",
|
|
20
|
+
"type": "list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "count",
|
|
24
|
+
"type": "int"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetMediaNode(BaseNode):\n name = \"Prism: Get Media\"\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_input(\"entity\", \"dict\")\n self.add_output(\"media\", \"list\")\n self.add_output(\"count\", \"int\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') 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 {'media': [], 'count': 0}\n try:\n media_module = getattr(core, 'mediaProducts', None) or getattr(core, 'media', None)\n if media_module is None:\n self.log_error(\"No media module on this PrismCore.\")\n return {'media': [], 'count': 0}\n media = []\n for attr in ('getMediaProductsFromEntity', 'getMedia', 'getMediaProducts'):\n if hasattr(media_module, attr):\n media = getattr(media_module, attr)(entity) or []\n break\n self.log_info(f\"Found {len(media)} media item(s).\")\n return {'media': list(media), 'count': len(media)}\n except Exception as e:\n self.log_error(f\"getMedia failed: {e}\")\n return {'media': [], 'count': 0}\n\ndef register_node():\n return PrismGetMediaNode\n",
|
|
28
|
+
"use_exec": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_media_versions",
|
|
3
|
+
"name": "Prism: Get Media Versions",
|
|
4
|
+
"description": "Returns all versions of a media identifier. Wraps core.mediaProducts.getVersionsFromIdentifier(media_identifier).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "media_identifier",
|
|
14
|
+
"type": "any"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "versions",
|
|
20
|
+
"type": "list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "latest",
|
|
24
|
+
"type": "any"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "count",
|
|
28
|
+
"type": "int"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"use_exec": false,
|
|
32
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetMediaVersionsNode(BaseNode):\n name = \"Prism: Get Media Versions\"\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_input(\"media_identifier\", \"any\")\n self.add_output(\"versions\", \"list\")\n self.add_output(\"latest\", \"any\")\n self.add_output(\"count\", \"int\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n ident = inputs.get('media_identifier')\n if core is None or ident is None:\n self.log_error(\"No PrismCore or media_identifier provided.\")\n return {'versions': [], 'latest': {}, 'count': 0}\n try:\n media_module = getattr(core, 'mediaProducts', None) or getattr(core, 'media', None)\n versions = []\n for attr in ('getVersionsFromIdentifier', 'getMediaVersions', 'getVersions'):\n if hasattr(media_module, attr):\n versions = getattr(media_module, attr)(ident) or []\n break\n versions = list(versions)\n latest = versions[-1] if versions else {}\n self.log_info(f\"Found {len(versions)} media version(s).\")\n return {'versions': versions, 'latest': latest, 'count': len(versions)}\n except Exception as e:\n self.log_error(f\"getMediaVersions failed: {e}\")\n return {'versions': [], 'latest': {}, 'count': 0}\n\ndef register_node():\n return PrismGetMediaVersionsNode\n"
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_plugin",
|
|
3
|
+
"name": "Prism: Get Plugin",
|
|
4
|
+
"description": "Retrieves a loaded Prism plugin by name. Wraps core.plugins.getPlugin(name) (alias core.getPlugin).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "plugin_name",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "text",
|
|
16
|
+
"default": "USD"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "plugin",
|
|
22
|
+
"type": "any"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "is_loaded",
|
|
26
|
+
"type": "bool"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "plugin_path",
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"use_exec": false,
|
|
34
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetPluginNode(BaseNode):\n name = \"Prism: Get Plugin\"\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_input(\"plugin_name\", \"string\", widget_type=\"text\", default=\"USD\")\n self.add_output(\"plugin\", \"any\")\n self.add_output(\"is_loaded\", \"bool\")\n self.add_output(\"plugin_path\", \"string\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n name = inputs.get('plugin_name') 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 {'plugin': {}, 'is_loaded': False, 'plugin_path': ''}\n try:\n plugin = None\n if hasattr(core, 'plugins') and hasattr(core.plugins, 'getPlugin'):\n plugin = core.plugins.getPlugin(name)\n elif hasattr(core, 'getPlugin'):\n plugin = core.getPlugin(name)\n loaded = plugin is not None\n ppath = ''\n if loaded:\n for attr in ('pluginPath', 'pluginDirectory', 'path'):\n if hasattr(plugin, attr):\n ppath = str(getattr(plugin, attr) or '')\n if ppath: break\n self.log_info(f\"Plugin '{name}' loaded={loaded} path={ppath}\")\n return {'plugin': plugin if loaded else {}, 'is_loaded': loaded, 'plugin_path': ppath}\n except Exception as e:\n self.log_error(f\"getPlugin failed: {e}\")\n return {'plugin': {}, 'is_loaded': False, 'plugin_path': ''}\n\ndef register_node():\n return PrismGetPluginNode\n"
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_preset_scenes",
|
|
3
|
+
"name": "Prism: Get Preset Scenes",
|
|
4
|
+
"description": "Returns the list of available preset scene files for the current project. Wraps core.entities.getPresetScenes().",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "extension_filter",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "text",
|
|
16
|
+
"default": ""
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "presets",
|
|
22
|
+
"type": "list"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "first_preset",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "count",
|
|
30
|
+
"type": "int"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetPresetScenesNode(BaseNode):\n name = \"Prism: Get Preset Scenes\"\n category = \"DCCs\"\n\n def __init__(self):\n super().__init__()\n self.icon_path = \"icons/prism_icon.png\"\n # [AUTO-GENERATED-PORTS-START]\n self.add_input(\"core\", \"any\")\n self.add_input(\"extension_filter\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"presets\", \"list\")\n self.add_output(\"first_preset\", \"string\")\n self.add_output(\"count\", \"int\")\n # [AUTO-GENERATED-PORTS-END]\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n ext = (inputs.get('extension_filter') or '').strip().lower()\n if core is None:\n self.log_error(\"No PrismCore found. Add a prism_core_init node to your graph.\")\n return {'presets': [], 'first_preset': '', 'count': 0, 'exec_out': True}\n try:\n presets = core.entities.getPresetScenes() or []\n if ext:\n if not ext.startswith('.'):\n ext = '.' + ext\n presets = [p for p in presets if str(p).lower().endswith(ext)]\n first = presets[0] if presets else ''\n self.log_info(f\"Found {len(presets)} preset(s).\")\n return {'presets': list(presets), 'first_preset': first, 'count': len(presets), 'exec_out': True}\n except Exception as e:\n self.log_error(f\"getPresetScenes failed: {e}\")\n return {'presets': [], 'first_preset': '', 'count': 0, 'exec_out': True}\n\ndef register_node():\n return PrismGetPresetScenesNode\n",
|
|
34
|
+
"use_exec": true
|
|
35
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_product_versions",
|
|
3
|
+
"name": "Prism: Get Product Versions",
|
|
4
|
+
"description": "Returns all versions of the given product. Wraps core.products.getVersionsFromProduct(product).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "product",
|
|
14
|
+
"type": "any"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "versions",
|
|
20
|
+
"type": "list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "latest_version",
|
|
24
|
+
"type": "any"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "count",
|
|
28
|
+
"type": "int"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"use_exec": false,
|
|
32
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetProductVersionsNode(BaseNode):\n name = \"Prism: Get Product Versions\"\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_input(\"product\", \"any\")\n self.add_output(\"versions\", \"list\")\n self.add_output(\"latest_version\", \"any\")\n self.add_output(\"count\", \"int\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n product = inputs.get('product')\n if core is None or product is None:\n self.log_error(\"No PrismCore or product provided.\")\n return {'versions': [], 'latest_version': {}, 'count': 0}\n try:\n versions = []\n for attr in ('getVersionsFromProduct', 'getProductVersions', 'getVersions'):\n if hasattr(core.products, attr):\n versions = getattr(core.products, attr)(product) or []\n break\n versions = list(versions)\n latest = versions[-1] if versions else {}\n self.log_info(f\"Found {len(versions)} version(s).\")\n return {'versions': versions, 'latest_version': latest, 'count': len(versions)}\n except Exception as e:\n self.log_error(f\"getVersionsFromProduct failed: {e}\")\n return {'versions': [], 'latest_version': {}, 'count': 0}\n\ndef register_node():\n return PrismGetProductVersionsNode\n"
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_products",
|
|
3
|
+
"name": "Prism: Get Products",
|
|
4
|
+
"description": "Lists all products (cached/exported assets) for the given entity. Wraps core.products.getProductsFromEntity(entity).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "entity",
|
|
14
|
+
"type": "dict"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "products",
|
|
20
|
+
"type": "list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "count",
|
|
24
|
+
"type": "int"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetProductsNode(BaseNode):\n name = \"Prism: Get Products\"\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_input(\"entity\", \"dict\")\n self.add_output(\"products\", \"list\")\n self.add_output(\"count\", \"int\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') 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 {'products': [], 'count': 0}\n try:\n products = []\n for attr in ('getProductsFromEntity', 'getProducts'):\n if hasattr(core.products, attr):\n products = getattr(core.products, attr)(entity) or []\n break\n self.log_info(f\"Found {len(products)} product(s).\")\n return {'products': list(products), 'count': len(products)}\n except Exception as e:\n self.log_error(f\"getProducts failed: {e}\")\n return {'products': [], 'count': 0}\n\ndef register_node():\n return PrismGetProductsNode\n",
|
|
28
|
+
"use_exec": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_project_by_name",
|
|
3
|
+
"name": "Prism: Get Project by Name",
|
|
4
|
+
"description": "Find a project by name from the projects list.",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any",
|
|
11
|
+
"widget_type": null,
|
|
12
|
+
"options": null,
|
|
13
|
+
"default": null
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"widget_type": "text",
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": ""
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"outputs": [
|
|
24
|
+
{
|
|
25
|
+
"name": "project",
|
|
26
|
+
"type": "dict",
|
|
27
|
+
"widget_type": null,
|
|
28
|
+
"options": null,
|
|
29
|
+
"default": null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "project_path",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "config_path",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "found",
|
|
47
|
+
"type": "bool",
|
|
48
|
+
"widget_type": null,
|
|
49
|
+
"options": null,
|
|
50
|
+
"default": null
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetProjectByNameNode(BaseNode):\n name = \"Prism: Get Project by Name\"\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_input(\"name\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"project\", \"dict\")\n self.add_output(\"project_path\", \"string\")\n self.add_output(\"config_path\", \"string\")\n self.add_output(\"found\", \"bool\")\n\n def _scan_root(self, core, root_dir, pipeline_folder, seen, out):\n if not root_dir or not os.path.isdir(root_dir):\n return\n try:\n for entry in os.scandir(root_dir):\n if not entry.is_dir():\n continue\n cfg = os.path.join(entry.path, pipeline_folder, \"pipeline.json\")\n if not os.path.exists(cfg) or cfg in seen:\n continue\n seen.add(cfg)\n name = entry.name\n try:\n n = core.getConfig(\"globals\", \"project_name\", configPath=cfg)\n if n:\n name = n\n except Exception:\n pass\n out.append({\"configPath\": cfg, \"name\": name, \"source\": \"disk\"})\n except PermissionError:\n pass\n\n def _all_projects(self, core):\n pm = getattr(core, \"projects\", None)\n known = []\n if pm is not None:\n for method in (\"getAvailableProjects\", \"getRecentProjects\"):\n fn = getattr(pm, method, None)\n if callable(fn):\n try:\n result = fn()\n if result:\n known = list(result)\n break\n except Exception:\n pass\n pipeline_folder = \"00_Pipeline\"\n if pm is not None:\n try:\n pf = getattr(pm, \"getDefaultPipelineFolder\", None)\n if callable(pf):\n pipeline_folder = pf() or pipeline_folder\n except Exception:\n pass\n seen = set()\n projects = []\n for p in known:\n cfg = p.get(\"configPath\", \"\")\n if cfg:\n seen.add(cfg)\n projects.append(p)\n root_dirs = set()\n for p in known:\n cfg = p.get(\"configPath\", \"\")\n if cfg:\n root_dirs.add(os.path.dirname(os.path.dirname(os.path.dirname(cfg))))\n if pm is not None:\n fn = getattr(pm, \"getDefaultLocalPath\", None)\n if callable(fn):\n try:\n path = fn()\n if path and os.path.isdir(path):\n root_dirs.add(path)\n except Exception:\n pass\n for root in root_dirs:\n self._scan_root(core, root, pipeline_folder, seen, projects)\n return projects\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n name = (inputs.get(\"name\") or \"\").strip()\n empty = {\"project\": {}, \"project_path\": \"\", \"config_path\": \"\", \"found\": False}\n if core is None:\n self.log_error(\"No PrismCore found.\")\n return empty\n if not name:\n self.log_error(\"No project name provided.\")\n return empty\n projects = self._all_projects(core)\n name_lower = name.lower()\n for p in projects:\n if str(p.get(\"name\", \"\")).lower() == name_lower:\n cfg = p.get(\"configPath\", \"\")\n prj_path = os.path.dirname(os.path.dirname(cfg)) if cfg else \"\"\n self.log_info(f\"Found project '{p.get('name')}' at {prj_path}\")\n return {\"project\": p, \"project_path\": prj_path, \"config_path\": cfg, \"found\": True}\n self.log_error(f\"Project '{name}' not found in {len(projects)} project(s).\")\n return empty\n\ndef register_node():\n return PrismGetProjectByNameNode\n",
|
|
54
|
+
"use_exec": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_project_config_path",
|
|
3
|
+
"name": "Prism: Get Project Config Path",
|
|
4
|
+
"description": "Returns the absolute path to the config file for a given project. Wraps core.configs.getProjectConfigPath(projectPath).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "project_path",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"widget_type": "file"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"outputs": [
|
|
19
|
+
{
|
|
20
|
+
"name": "config_path",
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetProjectConfigPathNode(BaseNode):\n name = \"Prism: Get Project Config Path\"\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_input(\"project_path\", \"string\", widget_type=\"file\")\n self.add_output(\"config_path\", \"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 {'config_path': ''}\n try:\n cfg = ''\n if hasattr(core, 'configs') and hasattr(core.configs, 'getProjectConfigPath'):\n cfg = str(core.configs.getProjectConfigPath(path) or '')\n self.log_info(f\"Config path: {cfg}\")\n return {'config_path': cfg}\n except Exception as e:\n self.log_error(f\"getProjectConfigPath failed: {e}\")\n return {'config_path': ''}\n\ndef register_node():\n return PrismGetProjectConfigPathNode\n",
|
|
25
|
+
"use_exec": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_scene_files",
|
|
3
|
+
"name": "Prism: Get Scene Files",
|
|
4
|
+
"description": "Lists scene files for an entity/department/task. Wraps core.entities.getScenefiles(entity, department=..., task=...).",
|
|
5
|
+
"category": "DCCs",
|
|
6
|
+
"icon_path": "icons/prism_icon.png",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core",
|
|
10
|
+
"type": "any"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "entity",
|
|
14
|
+
"type": "dict"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "department",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"widget_type": "text",
|
|
20
|
+
"default": ""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "task",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"default": ""
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"outputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "scenefiles",
|
|
32
|
+
"type": "list"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "latest",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "count",
|
|
40
|
+
"type": "int"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"python_code": "import os\nimport re\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\nfrom src.utils.prism_config import (\n resolve_cfg, get_departments, resolve_dept_folder,\n get_entity_scenefiles_root, build_abbrev_map\n)\n\nSCENE_EXTS = {\n '.blend', '.hip', '.hipnc', '.hiplc', '.ma', '.mb',\n '.nk', '.comp', '.aep', '.nuke', '.katana', '.klf',\n '.modo', '.lxo', '.c4d', '.max', '.ztl', '.zpr',\n '.usd', '.usda', '.usdc', '.usdz',\n}\nMETA_SUFFIXES = ('versioninfo.json', 'preview.jpg', 'preview.png', 'preview.jpeg')\n\ndef _is_scene_file(name):\n nl = name.lower()\n if any(nl.endswith(s) for s in META_SUFFIXES):\n return False\n return os.path.splitext(nl)[1] in SCENE_EXTS\n\ndef _version_num(name):\n m = re.search(r'_v(\\d+)', name, re.IGNORECASE)\n return int(m.group(1)) if m else 0\n\ndef _parse_version(name):\n m = re.search(r'(_v\\d+)', name, re.IGNORECASE)\n return m.group(1)[1:] if m else ''\n\nclass PrismGetSceneFilesNode(BaseNode):\n name = \"Prism: Get Scene Files\"\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_input(\"entity\", \"dict\")\n self.add_input(\"department\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"task\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"scenefiles\", \"list\")\n self.add_output(\"latest\", \"string\")\n self.add_output(\"count\", \"int\")\n\n def _scan_disk(self, scenes_root, dept_abbrev, task_input):\n dept_dir = None\n for entry in os.scandir(scenes_root):\n if entry.is_dir() and entry.name.lower() == dept_abbrev:\n dept_dir = entry.path\n break\n if not dept_dir:\n self.log_error(f\"dept folder '{dept_abbrev}' not found in {scenes_root}\")\n return []\n task_dirs = []\n for entry in os.scandir(dept_dir):\n if not entry.is_dir():\n continue\n if task_input and entry.name.lower() != task_input.lower():\n continue\n task_dirs.append(entry)\n if not task_dirs:\n available = [e.name for e in os.scandir(dept_dir) if e.is_dir()]\n self.log_info(f\"no task folder matching '{task_input}' — available: {available}\")\n return []\n files = []\n for task_entry in task_dirs:\n for fentry in os.scandir(task_entry.path):\n if fentry.is_file() and _is_scene_file(fentry.name):\n files.append({\n 'path': fentry.path,\n 'filename': fentry.name,\n 'version': _parse_version(fentry.name),\n 'task': task_entry.name,\n 'department': dept_abbrev,\n })\n files.sort(key=lambda f: _version_num(f['filename']))\n self.log_info(f'disk scan found {len(files)} scene file(s)')\n return files\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n dept_input = (inputs.get('department') or '').strip()\n task_input = (inputs.get('task') or '').strip()\n if core is None:\n self.log_error('No PrismCore found.')\n return {'scenefiles': [], 'latest': '', 'count': 0}\n cfg_path = resolve_cfg(core=core, entity=entity)\n entity_type = entity.get('type', 'shot')\n dept_defs = get_departments(core, cfg_path, entity_type)\n dept_abbrev = resolve_dept_folder(dept_input, dept_defs) if dept_input else ''\n if dept_input and not dept_abbrev:\n dept_abbrev = dept_input.lower()\n abbrev_map = build_abbrev_map(dept_defs)\n files = []\n try:\n raw = list(core.entities.getScenefiles(entity) or [])\n if raw:\n if dept_abbrev:\n def dept_match(f):\n sf_dept = (f.get('department', f.get('step', '')) or '').lower()\n if sf_dept == dept_abbrev:\n return True\n entry = abbrev_map.get(sf_dept)\n return entry is not None and entry.get('abbreviation') == dept_abbrev\n raw = [f for f in raw if isinstance(f, dict) and dept_match(f)]\n if task_input:\n raw = [f for f in raw if isinstance(f, dict)\n and (f.get('task', '') or '').lower() == task_input.lower()]\n files = raw\n self.log_info(f'getScenefiles: {len(files)} file(s)')\n except Exception as e:\n self.log_info(f'getScenefiles error: {e}')\n if not files and dept_abbrev:\n scenes_root = get_entity_scenefiles_root(entity, core, cfg_path)\n if scenes_root:\n files = self._scan_disk(scenes_root, dept_abbrev, task_input)\n latest = files[-1].get('path', '') if files and isinstance(files[-1], dict) else ''\n self.log_info(f'latest: {latest}')\n return {'scenefiles': files, 'latest': latest, 'count': len(files)}\n\ndef register_node():\n return PrismGetSceneFilesNode\n",
|
|
44
|
+
"use_exec": false
|
|
45
|
+
}
|