Skip to content

feat: Backlog/generic publisher maya #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: backlog/generic-publisher
Choose a base branch
from
4 changes: 2 additions & 2 deletions projects/framework-maya/extensions/maya.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ tools:
- name: publish
menu: true
label: "Publish"
dialog_name: framework_standard_publisher_dialog
dialog_name: framework_generic_publisher_dialog
icon: publish
options:
tool_configs:
- maya-scene-publisher
- maya-generic-publisher
docked: true
- name: open
menu: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
type: tool_config
name: maya-generic-publisher
config_type: publisher
engine:
- type: plugin
tags:
- context
plugin: store_asset_context
options:
asset_type_name: scene
ui: publisher_asset_version_selector

# Export the snapshot component.
- type: group
tags:
- component
options:
component: snapshot
#optional: False by default so is no need
#enabled: True by default so is no need
plugins:
- type: plugin
plugin: store_component
- type: plugin
tags:
- collector
plugin: maya_scene_collector
ui: maya_scene_options_selector
options:
export_type: scene # selection is also available
extension_format: mb # ma is also available
- type: plugin
tags:
- validator
plugin: maya_scene_saved_validator
ui: validator_label
- type: plugin
tags:
- exporter
plugin: maya_scene_exporter
ui: maya_export_options_selector

# Add a generic component.
- type: group
tags:
- component
- generic
options:
component: generic
button_label: Add component
editable_component_name: True
removable: True
optional: True # by default so is no need
#enabled: True by default so is no need
plugins:
- type: plugin
plugin: store_component
- type: plugin
tags:
- collector
plugin: file_collector
ui: file_browser_collector
options:
folder_path: null
file_name: null
- type: plugin
tags:
- validator
plugin: file_exists_validator
ui: validator_label
- type: plugin
tags:
- exporter
plugin: rename_file_exporter
ui: file_exporter_options

# Export Thumbnail
- type: group
tags:
- component
options:
component: thumbnail
#optional: False by default so is no need
#enabled: True by default so is no need
plugins:
- type: plugin
plugin: store_component
- type: plugin
tags:
- collector
plugin: maya_camera_collector
ui: maya_camera_selector
options:
camera_name: persp
- type: plugin
tags:
- validator
plugin: maya_camera_exists_validator
ui: validator_label
- type: plugin
tags:
- exporter
plugin: maya_thumbnail_exporter

# Export the reviewable component.
- type: group
tags:
- component
options:
component: reviewable
optional: true
#enabled: True by default so is no need
plugins:
- type: plugin
plugin: store_component
- type: plugin
tags:
- collector
plugin: maya_camera_collector
ui: maya_camera_selector
options:
camera_name: persp
- type: plugin
tags:
- validator
plugin: maya_camera_exists_validator
ui: validator_label
- type: plugin
tags:
- exporter
plugin: maya_playblast_exporter

# Common validator check all exported paths exists.
- type: plugin
tags:
- validator
plugin: exported_paths_validator
ui: validator_label

# Publish to ftrack.
- publish_to_ftrack
2 changes: 1 addition & 1 deletion projects/framework-maya/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ftrack-framework-maya"
version = "24.6.0"
version = "24.9.0rc1"
description='ftrack Maya integration'
authors = ["ftrack Integrations Team <[email protected]>"]
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions projects/framework-maya/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

## upcoming

* [new] Generic publisher tool.
* [fix] Init; Fix on_run_tool_callback options argument.


Expand Down
Loading