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": "prism_get_scene_path",
|
|
3
|
+
"name": "Prism: Get Scene Path",
|
|
4
|
+
"description": "Build or find the filesystem path for a scene file 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": "department", "type": "string", "widget_type": "text", "options": null, "default": ""},
|
|
11
|
+
{"name": "task", "type": "string", "widget_type": "text", "options": null, "default": ""},
|
|
12
|
+
{"name": "application", "type": "string", "widget_type": "text", "options": null, "default": ""},
|
|
13
|
+
{"name": "version", "type": "string", "widget_type": "text", "options": null, "default": "latest"}
|
|
14
|
+
],
|
|
15
|
+
"outputs": [
|
|
16
|
+
{"name": "scene_path", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
17
|
+
{"name": "task_path", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
18
|
+
{"name": "version", "type": "string", "widget_type": null, "options": null, "default": null},
|
|
19
|
+
{"name": "exists", "type": "bool", "widget_type": null, "options": null, "default": null}
|
|
20
|
+
],
|
|
21
|
+
"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, read_pipeline_json\n)\n\nAPP_EXTS = {\n 'blender': ['.blend'],\n 'houdini': ['.hip', '.hiplc', '.hipnc'],\n 'maya': ['.ma', '.mb'],\n 'nuke': ['.nk', '.nuke'],\n 'aftereffects': ['.aep'],\n 'after effects':['.aep'],\n 'cinema4d': ['.c4d'],\n '3dsmax': ['.max'],\n 'max': ['.max'],\n 'katana': ['.katana'],\n 'modo': ['.lxo', '.modo'],\n 'usd': ['.usd', '.usda', '.usdc'],\n}\nMETA_SUFFIXES = ('versioninfo.json', 'preview.jpg', 'preview.png', 'preview.jpeg')\nSCENE_EXTS = set(e for exts in APP_EXTS.values() for e in exts)\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 _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\nclass PrismGetScenePathNode(BaseNode):\n name = 'Prism: Get Scene 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_input('application', 'string', widget_type='text', default='')\n self.add_input('version', 'string', widget_type='text', default='latest')\n self.add_output('scene_path', 'string')\n self.add_output('task_path', 'string')\n self.add_output('version', 'string')\n self.add_output('exists', '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 app_input = (inputs.get('application') or '').strip().lower()\n ver_input = (inputs.get('version') or 'latest').strip()\n defaults = {'scene_path': '', 'task_path': '', 'version': '', '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 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 dept_defs = get_departments(core, cfg_path, entity.get('type', 'shot'))\n dept_abbrev = resolve_dept_folder(dept_input, dept_defs) or dept_input.lower()\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_path}')\n return defaults\n task_dir = os.path.join(scenes_root, dept_abbrev, task_input) if task_input else ''\n if task_dir and not os.path.isdir(task_dir):\n self.log_error(f'Task folder not found: {task_dir}')\n return {'scene_path': '', 'task_path': task_dir, 'version': '', 'exists': False}\n target_ver = _fmt_version(ver_input, padding)\n app_exts = APP_EXTS.get(app_input, []) if app_input else list(SCENE_EXTS)\n if task_dir and os.path.isdir(task_dir):\n candidates = [\n f for f in os.scandir(task_dir)\n if f.is_file() and _is_scene_file(f.name)\n and os.path.splitext(f.name.lower())[1] in [e.lower() for e in app_exts]\n ]\n if target_ver:\n candidates = [f for f in candidates if f'_{target_ver}' in f.name.lower() or f'_{target_ver.lower()}' in f.name.lower()]\n if candidates:\n best = max(candidates, key=lambda f: _ver_num(f.name))\n resolved_ver = f'v{_ver_num(best.name):0{padding}d}'\n self.log_info(f'Found: {best.path}')\n return {'scene_path': best.path, 'task_path': task_dir, 'version': resolved_ver, 'exists': True}\n etype = entity.get('type', 'shot')\n if target_ver is None:\n target_ver = f'v{1:0{padding}d}'\n ext = app_exts[0] if app_exts and app_input else ('.blend' if app_input == 'blender' else '')\n if etype == 'shot':\n seq = entity.get('sequence', '')\n shot = entity.get('shot', '')\n filename = f'{seq}-{shot}_{task_input}_{target_ver}{ext}'\n else:\n asset = (entity.get('asset_path') or '').split('/')[-1]\n filename = f'{asset}_{task_input}_{target_ver}{ext}'\n scene_path = os.path.join(task_dir, filename) if task_dir else ''\n self.log_info(f'Constructed (not on disk): {scene_path}')\n return {'scene_path': scene_path, 'task_path': task_dir, 'version': target_ver, 'exists': False}\n\ndef register_node():\n return PrismGetScenePathNode\n",
|
|
22
|
+
"use_exec": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_sequence_by_project",
|
|
3
|
+
"name": "Prism: Get Sequence by Project",
|
|
4
|
+
"description": "Switch to a project and find a sequence by name.",
|
|
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": "project",
|
|
17
|
+
"type": "dict",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "name",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "sequence",
|
|
33
|
+
"type": "dict",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "found",
|
|
40
|
+
"type": "bool",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetSequenceByProjectNode(BaseNode):\n name = \"Prism: Get Sequence by Project\"\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\", \"dict\")\n self.add_input(\"name\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"sequence\", \"dict\")\n self.add_output(\"found\", \"bool\")\n\n def _project_path(self, project):\n path = project.get('project_path', '')\n if not path:\n cfg = project.get('configPath', '')\n if cfg:\n path = os.path.dirname(os.path.dirname(cfg))\n return path\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n project = inputs.get('project') or {}\n name = (inputs.get('name') or '').strip()\n empty = {'sequence': {}, 'found': False}\n if core is None:\n self.log_error('No PrismCore found.')\n return empty\n if not project:\n self.log_error('No project provided.')\n return empty\n if not name:\n self.log_error('No sequence name provided.')\n return empty\n prj_path = self._project_path(project)\n if not prj_path:\n self.log_error('Cannot determine project path from project dict.')\n return empty\n try:\n core.changeProject(prj_path)\n except Exception as e:\n self.log_error(f'changeProject failed: {e}')\n return empty\n try:\n shots = list(core.entities.getShots() or [])\n sequences = list(dict.fromkeys(\n str(s.get('sequence', '')) for s in shots\n if isinstance(s, dict) and s.get('sequence')\n ))\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return empty\n name_lower = name.lower()\n for seq in sequences:\n if str(seq).lower() == name_lower:\n seq_dict = {\n 'name': str(seq),\n 'project_path': prj_path,\n 'project_name': project.get('name', ''),\n }\n self.log_info(f\"Found sequence '{seq}' in '{project.get('name', '')}'\")\n return {'sequence': seq_dict, 'found': True}\n self.log_error(f\"Sequence '{name}' not found in {len(sequences)} sequence(s).\")\n return empty\n\ndef register_node():\n return PrismGetSequenceByProjectNode\n",
|
|
47
|
+
"use_exec": false
|
|
48
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_sequences_by_project",
|
|
3
|
+
"name": "Prism: Get Sequences by Project",
|
|
4
|
+
"description": "Switch to a project then return all its sequences.",
|
|
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": "project",
|
|
17
|
+
"type": "dict",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"outputs": [
|
|
24
|
+
{
|
|
25
|
+
"name": "sequences",
|
|
26
|
+
"type": "list",
|
|
27
|
+
"widget_type": null,
|
|
28
|
+
"options": null,
|
|
29
|
+
"default": null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "count",
|
|
33
|
+
"type": "int",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetSequencesByProjectNode(BaseNode):\n name = \"Prism: Get Sequences by Project\"\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\", \"dict\")\n self.add_output(\"sequences\", \"list\")\n self.add_output(\"count\", \"int\")\n\n def _project_path(self, project):\n path = project.get('project_path', '')\n if not path:\n cfg = project.get('configPath', '')\n if cfg:\n path = os.path.dirname(os.path.dirname(cfg))\n return path\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n project = inputs.get('project') or {}\n if core is None:\n self.log_error('No PrismCore found.')\n return {'sequences': [], 'count': 0}\n if not project:\n self.log_error('No project provided.')\n return {'sequences': [], 'count': 0}\n prj_path = self._project_path(project)\n if not prj_path:\n self.log_error('Cannot determine project path from project dict.')\n return {'sequences': [], 'count': 0}\n try:\n core.changeProject(prj_path)\n except Exception as e:\n self.log_error(f'changeProject failed: {e}')\n return {'sequences': [], 'count': 0}\n try:\n shots = list(core.entities.getShots() or [])\n seq_names = list(dict.fromkeys(\n str(s.get('sequence', '')) for s in shots\n if isinstance(s, dict) and s.get('sequence')\n ))\n seq_dicts = [{'name': s, 'project_path': prj_path, 'project_name': project.get('name', '')}\n for s in seq_names]\n self.log_info(f\"Found {len(seq_dicts)} sequence(s) in '{project.get('name', '')}'\")\n return {'sequences': seq_dicts, 'count': len(seq_dicts)}\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return {'sequences': [], 'count': 0}\n\ndef register_node():\n return PrismGetSequencesByProjectNode\n",
|
|
40
|
+
"use_exec": false
|
|
41
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shot_by_name",
|
|
3
|
+
"name": "Prism: Get Shot by Name",
|
|
4
|
+
"description": "Find a specific shot by sequence and shot name.",
|
|
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": "shots",
|
|
17
|
+
"type": "list",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "sequence",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "shot",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"widget_type": "text",
|
|
33
|
+
"options": null,
|
|
34
|
+
"default": ""
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "shot",
|
|
40
|
+
"type": "dict",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "entity",
|
|
47
|
+
"type": "dict",
|
|
48
|
+
"widget_type": null,
|
|
49
|
+
"options": null,
|
|
50
|
+
"default": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "found",
|
|
54
|
+
"type": "bool",
|
|
55
|
+
"widget_type": null,
|
|
56
|
+
"options": null,
|
|
57
|
+
"default": null
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetShotByNameNode(BaseNode):\n name = \"Prism: Get Shot 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(\"shots\", \"list\")\n self.add_input(\"sequence\", \"string\", widget_type=\"text\", default=\"\")\n self.add_input(\"shot\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"shot\", \"dict\")\n self.add_output(\"entity\", \"dict\")\n self.add_output(\"found\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n sequence = (inputs.get(\"sequence\") or \"\").strip()\n shot_name = (inputs.get(\"shot\") or \"\").strip()\n shots = list(inputs.get(\"shots\") or [])\n if core is None:\n self.log_error(\"No PrismCore found.\")\n return {\"shot\": {}, \"entity\": {}, \"found\": False}\n if not shots:\n try:\n _, shots = core.entities.getShots()\n shots = list(shots or [])\n except Exception as e:\n self.log_error(f\"getShots failed: {e}\")\n return {\"shot\": {}, \"entity\": {}, \"found\": False}\n seq_lower = sequence.lower()\n shot_lower = shot_name.lower()\n for s in shots:\n s_seq = str(s.get(\"sequence\", \"\")).lower()\n s_shot = str(s.get(\"shot\", s.get(\"name\", \"\"))).lower()\n seq_ok = (not sequence) or (s_seq == seq_lower)\n shot_ok = (not shot_name) or (s_shot == shot_lower)\n if seq_ok and shot_ok:\n seq_val = s.get(\"sequence\", \"\")\n shot_val = s.get(\"shot\", s.get(\"name\", \"\"))\n entity = {\"type\": \"shot\", \"sequence\": seq_val, \"shot\": shot_val, \"path\": s.get(\"path\", \"\"), \"location\": s.get(\"location\", \"global\"), \"paths\": s.get(\"paths\", [])}\n self.log_info(f\"Found shot {seq_val}/{shot_val}\")\n return {\"shot\": s, \"entity\": entity, \"found\": True}\n self.log_error(f\"Shot '{sequence}/{shot_name}' not found.\")\n return {\"shot\": {}, \"entity\": {}, \"found\": False}\n\ndef register_node():\n return PrismGetShotByNameNode\n",
|
|
61
|
+
"use_exec": false
|
|
62
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shot_by_sequence",
|
|
3
|
+
"name": "Prism: Get Shot by Sequence",
|
|
4
|
+
"description": "Find a shot by name within a sequence dict from prism_get_sequence_by_project.",
|
|
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": "sequence",
|
|
17
|
+
"type": "dict",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "name",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "shot",
|
|
33
|
+
"type": "dict",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "entity",
|
|
40
|
+
"type": "dict",
|
|
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 PrismGetShotBySequenceNode(BaseNode):\n name = \"Prism: Get Shot by Sequence\"\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(\"sequence\", \"dict\")\n self.add_input(\"name\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"shot\", \"dict\")\n self.add_output(\"entity\", \"dict\")\n self.add_output(\"found\", \"bool\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n sequence = inputs.get('sequence') or {}\n name = (inputs.get('name') or '').strip()\n empty = {'shot': {}, 'entity': {}, 'found': False}\n if core is None:\n self.log_error('No PrismCore found.')\n return empty\n if not sequence:\n self.log_error('No sequence provided.')\n return empty\n if not name:\n self.log_error('No shot name provided.')\n return empty\n prj_path = sequence.get('project_path', '')\n seq_name = sequence.get('name', '')\n if not prj_path:\n self.log_error('Sequence dict is missing project_path. Connect from prism_get_sequence_by_project.')\n return empty\n try:\n core.changeProject(prj_path)\n except Exception as e:\n self.log_error(f'changeProject failed: {e}')\n return empty\n try:\n shots = list(core.entities.getShots() or [])\n shots = [s for s in shots if isinstance(s, dict)]\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return empty\n if seq_name:\n seq_lower = seq_name.lower()\n shots = [s for s in shots if str(s.get('sequence', '')).lower() == seq_lower]\n name_lower = name.lower()\n for s in shots:\n shot_val = str(s.get('shot', s.get('name', '')))\n if shot_val.lower() == name_lower:\n entity = {\n 'type': 'shot',\n 'sequence': seq_name,\n 'shot': shot_val,\n 'path': s.get('path', ''),\n 'location': s.get('location', 'global'),\n 'paths': s.get('paths', []),\n }\n self.log_info(f\"Found shot '{seq_name}/{shot_val}'\")\n return {'shot': s, 'entity': entity, 'found': True}\n self.log_error(f\"Shot '{name}' not found in {len(shots)} shot(s) of sequence '{seq_name}'.\")\n return empty\n\ndef register_node():\n return PrismGetShotBySequenceNode\n",
|
|
54
|
+
"use_exec": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shot_info",
|
|
3
|
+
"name": "Prism: Get Shot Info",
|
|
4
|
+
"description": "Get frame range, fps and filesystem path for a shot entity.",
|
|
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
|
+
"outputs": [
|
|
24
|
+
{
|
|
25
|
+
"name": "sequence",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"widget_type": null,
|
|
28
|
+
"options": null,
|
|
29
|
+
"default": null
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "shot_name",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "frame_start",
|
|
40
|
+
"type": "int",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "frame_end",
|
|
47
|
+
"type": "int",
|
|
48
|
+
"widget_type": null,
|
|
49
|
+
"options": null,
|
|
50
|
+
"default": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "fps",
|
|
54
|
+
"type": "float",
|
|
55
|
+
"widget_type": null,
|
|
56
|
+
"options": null,
|
|
57
|
+
"default": null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "entity_path",
|
|
61
|
+
"type": "string",
|
|
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\n\nclass PrismGetShotInfoNode(BaseNode):\n name = \"Prism: Get Shot 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_input(\"entity\", \"dict\")\n self.add_output(\"sequence\", \"string\")\n self.add_output(\"shot_name\", \"string\")\n self.add_output(\"frame_start\", \"int\")\n self.add_output(\"frame_end\", \"int\")\n self.add_output(\"fps\", \"float\")\n self.add_output(\"entity_path\", \"string\")\n\n def _get_frame_range(self, core, entity, entity_path):\n for method in ('getEntityFrameRange', 'getShotRange', 'getFrameRange'):\n fn = getattr(core.entities, method, None)\n if not callable(fn):\n continue\n try:\n r = fn(entity)\n if isinstance(r, (list, tuple)) and len(r) >= 2:\n return int(r[0]), int(r[1])\n if isinstance(r, dict):\n return (int(r.get('start', r.get('frameStart', 1))),\n int(r.get('end', r.get('frameEnd', 100))))\n except Exception:\n pass\n if entity_path:\n for cfg_name in ('pipeline.json', 'shot.json'):\n cfg = os.path.join(entity_path, '00_Pipeline', cfg_name)\n if os.path.exists(cfg):\n try:\n fr = core.getConfig('globals', 'frameRange', configPath=cfg)\n if isinstance(fr, (list, tuple)) and len(fr) >= 2:\n return int(fr[0]), int(fr[1])\n except Exception:\n pass\n return 1, 100\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n entity = inputs.get('entity') or {}\n defaults = {'sequence': '', 'shot_name': '', 'frame_start': 1,\n 'frame_end': 100, 'fps': 24.0, 'entity_path': ''}\n if core is None:\n self.log_error('No PrismCore found.')\n return defaults\n seq = str(entity.get('sequence', ''))\n shot = str(entity.get('shot', entity.get('name', '')))\n entity_path = str(entity.get('path', ''))\n frame_start, frame_end = self._get_frame_range(core, entity, entity_path)\n fps = 24.0\n try:\n fps = float(core.projects.getFps() or 24.0)\n except Exception:\n pass\n self.log_info(f'Shot {seq}/{shot} | frames {frame_start}-{frame_end} | {fps}fps | path={entity_path}')\n return {'sequence': seq, 'shot_name': shot, 'frame_start': frame_start,\n 'frame_end': frame_end, 'fps': fps, 'entity_path': entity_path}\n\ndef register_node():\n return PrismGetShotInfoNode\n",
|
|
68
|
+
"use_exec": false
|
|
69
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shots",
|
|
3
|
+
"name": "Prism: Get Shots",
|
|
4
|
+
"description": "Returns all sequences and shots in the current project. Wraps core.entities.getShots() -> list of shot dicts.",
|
|
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": "sequences",
|
|
16
|
+
"type": "list"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "shots",
|
|
20
|
+
"type": "list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "shot_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 PrismGetShotsNode(BaseNode):\n name = \"Prism: Get Shots\"\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(\"sequences\", \"list\")\n self.add_output(\"shots\", \"list\")\n self.add_output(\"shot_count\", \"int\")\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.')\n return {'sequences': [], 'shots': [], 'shot_count': 0}\n try:\n # Prism v2.1.0: getShots() returns a flat list of shot dicts,\n # each with keys: shot, sequence, type, location, ...\n shots = list(core.entities.getShots() or [])\n sequences = list(dict.fromkeys(\n str(s.get('sequence', '')) for s in shots\n if isinstance(s, dict) and s.get('sequence')\n ))\n self.log_info(f'Found {len(sequences)} sequence(s), {len(shots)} shot(s).')\n return {'sequences': sequences, 'shots': shots, 'shot_count': len(shots)}\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return {'sequences': [], 'shots': [], 'shot_count': 0}\n\ndef register_node():\n return PrismGetShotsNode\n",
|
|
28
|
+
"use_exec": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shots_by_project_sequence",
|
|
3
|
+
"name": "Prism: Get Shots by Project+Sequence",
|
|
4
|
+
"description": "Switch to a project then return shots, optionally filtered by sequence.",
|
|
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": "project",
|
|
17
|
+
"type": "dict",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "sequence",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "shots",
|
|
33
|
+
"type": "list",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "count",
|
|
40
|
+
"type": "int",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetShotsByProjectSequenceNode(BaseNode):\n name = \"Prism: Get Shots by Project+Sequence\"\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\", \"dict\")\n self.add_input(\"sequence\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"shots\", \"list\")\n self.add_output(\"count\", \"int\")\n\n def _project_path(self, project):\n path = project.get('project_path', '')\n if not path:\n cfg = project.get('configPath', '')\n if cfg:\n path = os.path.dirname(os.path.dirname(cfg))\n return path\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n project = inputs.get('project') or {}\n sequence = (inputs.get('sequence') or '').strip()\n if core is None:\n self.log_error('No PrismCore found.')\n return {'shots': [], 'count': 0}\n if not project:\n self.log_error('No project provided.')\n return {'shots': [], 'count': 0}\n prj_path = self._project_path(project)\n if not prj_path:\n self.log_error('Cannot determine project path from project dict.')\n return {'shots': [], 'count': 0}\n try:\n core.changeProject(prj_path)\n except Exception as e:\n self.log_error(f'changeProject failed: {e}')\n return {'shots': [], 'count': 0}\n try:\n shots = list(core.entities.getShots() or [])\n shots = [s for s in shots if isinstance(s, dict)]\n if sequence:\n seq_lower = sequence.lower()\n shots = [s for s in shots if str(s.get('sequence', '')).lower() == seq_lower]\n label = sequence or '*'\n self.log_info(f\"Found {len(shots)} shot(s) in '{project.get('name', '')}' / '{label}'\")\n return {'shots': shots, 'count': len(shots)}\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return {'shots': [], 'count': 0}\n\ndef register_node():\n return PrismGetShotsByProjectSequenceNode\n",
|
|
47
|
+
"use_exec": false
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_shots_by_sequence",
|
|
3
|
+
"name": "Prism: Get Shots by Sequence",
|
|
4
|
+
"description": "Filter shots by sequence name. Auto-fetches shots if input list is empty.",
|
|
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": "shots",
|
|
17
|
+
"type": "list",
|
|
18
|
+
"widget_type": null,
|
|
19
|
+
"options": null,
|
|
20
|
+
"default": null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "sequence",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"widget_type": "text",
|
|
26
|
+
"options": null,
|
|
27
|
+
"default": ""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"name": "shots",
|
|
33
|
+
"type": "list",
|
|
34
|
+
"widget_type": null,
|
|
35
|
+
"options": null,
|
|
36
|
+
"default": null
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "count",
|
|
40
|
+
"type": "int",
|
|
41
|
+
"widget_type": null,
|
|
42
|
+
"options": null,
|
|
43
|
+
"default": null
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismGetShotsBySequenceNode(BaseNode):\n name = \"Prism: Get Shots by Sequence\"\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(\"shots\", \"list\")\n self.add_input(\"sequence\", \"string\", widget_type=\"text\", default=\"\")\n self.add_output(\"shots\", \"list\")\n self.add_output(\"count\", \"int\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n sequence = (inputs.get('sequence') or '').strip()\n shots = list(inputs.get('shots') or [])\n if core is None:\n self.log_error('No PrismCore found.')\n return {'shots': [], 'count': 0}\n if not shots:\n try:\n # Prism v2.1.0: getShots() returns a flat list of shot dicts\n shots = list(core.entities.getShots() or [])\n except Exception as e:\n self.log_error(f'getShots failed: {e}')\n return {'shots': [], 'count': 0}\n # Guard against non-dict items from upstream nodes\n shots = [s for s in shots if isinstance(s, dict)]\n if sequence:\n seq_lower = sequence.lower()\n shots = [s for s in shots if str(s.get('sequence', '')).lower() == seq_lower]\n self.log_info(f\"Found {len(shots)} shot(s) in sequence '{sequence or '*'}'\")\n return {'shots': shots, 'count': len(shots)}\n\ndef register_node():\n return PrismGetShotsBySequenceNode\n",
|
|
47
|
+
"use_exec": false
|
|
48
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_get_tasks",
|
|
3
|
+
"name": "Prism: Get Tasks",
|
|
4
|
+
"description": "Returns the list of tasks for the given entity and department. Wraps core.entities.getTasks(entity, department).",
|
|
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": "fx"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"outputs": [
|
|
24
|
+
{
|
|
25
|
+
"name": "tasks",
|
|
26
|
+
"type": "list"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "count",
|
|
30
|
+
"type": "int"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "departments",
|
|
34
|
+
"type": "list"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"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,\n get_entity_scenefiles_root, build_abbrev_map\n)\n\nclass PrismGetTasksNode(BaseNode):\n name = \"Prism: Get Tasks\"\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_output(\"tasks\", \"list\")\n self.add_output(\"count\", \"int\")\n self.add_output(\"departments\", \"list\")\n\n def _tasks_from_scenefiles(self, core, entity, dept_abbrev, dept_defs):\n files = core.entities.getScenefiles(entity) or []\n if not files:\n return []\n abbrev_map = build_abbrev_map(dept_defs)\n seen = set()\n tasks = []\n for sf in files:\n if not isinstance(sf, dict):\n continue\n sf_dept = (sf.get('department', sf.get('step', '')) or '').lower()\n if dept_abbrev and sf_dept not in (dept_abbrev, abbrev_map.get(sf_dept, {}).get('abbreviation', '')):\n entry = abbrev_map.get(sf_dept)\n if not entry or entry.get('abbreviation') != dept_abbrev:\n continue\n task = sf.get('task', '')\n if task and task not in seen:\n seen.add(task)\n tasks.append(task)\n return tasks\n\n def _tasks_from_disk(self, scenes_root, dept_abbrev):\n all_dirs = {e.name: e.path for e in os.scandir(scenes_root) if e.is_dir()}\n if not dept_abbrev:\n return sorted(all_dirs.keys())\n dept_dir = all_dirs.get(dept_abbrev)\n if not dept_dir:\n self.log_error(f\"dept folder '{dept_abbrev}' not in {scenes_root} — found: {sorted(all_dirs)}\")\n return []\n return sorted(e.name for e in os.scandir(dept_dir) if e.is_dir())\n\n def _default_tasks_from_cfg(self, dept_abbrev, dept_defs):\n for d in dept_defs:\n if d.get('abbreviation') == dept_abbrev:\n return list(d.get('defaultTasks', []))\n return []\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 if core is None:\n self.log_error('No PrismCore found.')\n return {'tasks': [], 'count': 0, 'departments': []}\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 self.log_info(f\"dept input='{dept_input}' -> abbrev='{dept_abbrev}' (cfg={cfg_path})\")\n tasks = []\n try:\n tasks = self._tasks_from_scenefiles(core, entity, dept_abbrev, dept_defs)\n self.log_info(f'getScenefiles: {len(tasks)} task(s)')\n except Exception as e:\n self.log_info(f'getScenefiles error: {e}')\n if not tasks:\n scenes_root = get_entity_scenefiles_root(entity, core, cfg_path)\n if scenes_root:\n tasks = self._tasks_from_disk(scenes_root, dept_abbrev)\n self.log_info(f'disk tasks: {tasks}')\n elif dept_abbrev and dept_defs:\n tasks = self._default_tasks_from_cfg(dept_abbrev, dept_defs)\n self.log_info(f'default tasks from pipeline.json: {tasks}')\n dept_names = [d['name'] for d in dept_defs] if dept_defs else []\n self.log_info(f'result tasks: {tasks}')\n return {'tasks': tasks, 'count': len(tasks), 'departments': dept_names}\n\ndef register_node():\n return PrismGetTasksNode\n",
|
|
38
|
+
"use_exec": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_import_product",
|
|
3
|
+
"name": "Prism: Import Product",
|
|
4
|
+
"description": "Imports a product version into the currently open DCC scene. Wraps core.products.importProduct(version) / core.appPlugin.importImages.",
|
|
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": "version_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": "imported_node",
|
|
33
|
+
"type": "any"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismImportProductNode(BaseNode):\n name = \"Prism: Import Product\"\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(\"version_path\", \"string\", widget_type=\"file\")\n self.add_output(\"success\", \"bool\")\n self.add_output(\"imported_node\", \"any\")\n\n async def execute(self, inputs):\n core = resolve_prism_core(inputs)\n path = inputs.get('version_path') or ''\n if core is None or not path:\n self.log_error(\"Need PrismCore and version_path.\")\n return {'success': False, 'imported_node': {}}\n try:\n result = None\n products = getattr(core, 'products', None)\n if products is not None:\n for attr in ('importProduct', 'importFile'):\n if hasattr(products, attr):\n result = getattr(products, attr)(path)\n break\n app_plugin = getattr(core, 'appPlugin', None)\n if result is None and app_plugin is not None:\n for attr in ('importImages', 'importFile'):\n if not hasattr(app_plugin, attr):\n continue\n fn = getattr(app_plugin, attr)\n try:\n result = fn(core, path)\n except TypeError:\n result = fn(path)\n break\n if result is None:\n self.log_error(\"No importProduct/importImages method available.\")\n return {'success': False, 'imported_node': {}}\n self.log_success(f\"Imported product: {path}\")\n await self.set_output('exec_out', True)\n return {'success': True, 'imported_node': result if result is not None else {}}\n except Exception as e:\n self.log_error(f\"importProduct failed: {e}\")\n return {'success': False, 'imported_node': {}}\n\ndef register_node():\n return PrismImportProductNode\n"
|
|
37
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_list_plugins",
|
|
3
|
+
"name": "Prism: List Plugins",
|
|
4
|
+
"description": "Returns the names of all currently loaded Prism plugins. Wraps core.plugins.getLoadedPlugins().",
|
|
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": "plugin_names",
|
|
16
|
+
"type": "list"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "count",
|
|
20
|
+
"type": "int"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"python_code": "from src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismListPluginsNode(BaseNode):\n name = \"Prism: List Plugins\"\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(\"plugin_names\", \"list\")\n self.add_output(\"count\", \"int\")\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 {'plugin_names': [], 'count': 0}\n try:\n names = []\n plugins_module = getattr(core, 'plugins', None)\n if plugins_module is None:\n return {'plugin_names': [], 'count': 0}\n for attr in ('getLoadedPlugins', 'getPlugins', 'loadedPlugins'):\n if hasattr(plugins_module, attr):\n val = getattr(plugins_module, attr)\n res = val() if callable(val) else val\n if isinstance(res, dict): names = list(res.keys())\n else: names = [str(getattr(p, 'pluginName', p)) for p in (res or [])]\n break\n self.log_info(f\"{len(names)} plugin(s) loaded.\")\n return {'plugin_names': names, 'count': len(names)}\n except Exception as e:\n self.log_error(f\"listPlugins failed: {e}\")\n return {'plugin_names': [], 'count': 0}\n\ndef register_node():\n return PrismListPluginsNode\n",
|
|
24
|
+
"use_exec": false
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node_id": "prism_list_projects",
|
|
3
|
+
"name": "Prism: List Projects",
|
|
4
|
+
"description": "Returns the list of known/recent Prism projects.",
|
|
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": "projects",
|
|
16
|
+
"type": "list"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "count",
|
|
20
|
+
"type": "int"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"python_code": "import os\nfrom src.nodes.base import BaseNode\nfrom src.utils.prism_core import resolve_prism_core\n\nclass PrismListProjectsNode(BaseNode):\n name = \"Prism: List Projects\"\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(\"projects\", \"list\")\n self.add_output(\"count\", \"int\")\n\n def _scan_root_for_projects(self, core, pm, 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 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.\")\n return {'projects': [], 'count': 0}\n try:\n pm = getattr(core, 'projects', None)\n\n # Prism-reported projects (recent + configured paths)\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\n # Pipeline subfolder name (usually '00_Pipeline')\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\n # Build a deduplicated result starting from known projects\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\n # Collect root dirs to scan from known projects + getDefaultLocalPath\n root_dirs = set()\n for p in known:\n cfg = p.get('configPath', '')\n if cfg:\n # cfg = <root>/<ProjectName>/<pipeline_folder>/pipeline.json\n root_dirs.add(os.path.dirname(os.path.dirname(os.path.dirname(cfg))))\n if pm is not None:\n for method in ('getDefaultLocalPath',):\n fn = getattr(pm, method, 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\n # Scan each root dir for unlisted projects\n for root in root_dirs:\n self._scan_root_for_projects(core, pm, root, pipeline_folder, seen, projects)\n\n self.log_info(f\"Found {len(projects)} project(s)\")\n return {'projects': projects, 'count': len(projects)}\n except Exception as e:\n self.log_error(f\"list_projects failed: {e}\")\n return {'projects': [], 'count': 0}\n\ndef register_node():\n return PrismListProjectsNode\n",
|
|
24
|
+
"use_exec": false
|
|
25
|
+
}
|