mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
maya 'ValidatePluginPathAttributes' can handle AYON settings
This commit is contained in:
parent
6ae8537983
commit
43167dbb09
2 changed files with 6 additions and 8 deletions
|
|
@ -30,14 +30,18 @@ class ValidatePluginPathAttributes(pyblish.api.InstancePlugin):
|
|||
def get_invalid(cls, instance):
|
||||
invalid = list()
|
||||
|
||||
file_attrs = cls.attribute
|
||||
file_attrs = {
|
||||
item["name"]: item["value"]
|
||||
for item in cls.attribute
|
||||
}
|
||||
if not file_attrs:
|
||||
return invalid
|
||||
|
||||
# Consider only valid node types to avoid "Unknown object type" warning
|
||||
all_node_types = set(cmds.allNodeTypes())
|
||||
node_types = [
|
||||
key for key in file_attrs.keys()
|
||||
key
|
||||
for key in file_attrs.keys()
|
||||
if key in all_node_types
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -336,12 +336,6 @@ def _convert_maya_project_settings(ayon_settings, output):
|
|||
# --- Publish (START) ---
|
||||
ayon_publish = ayon_maya["publish"]
|
||||
|
||||
plugin_path_attributes = ayon_publish["ValidatePluginPathAttributes"]
|
||||
plugin_path_attributes["attribute"] = {
|
||||
item["name"]: item["value"]
|
||||
for item in plugin_path_attributes["attribute"]
|
||||
}
|
||||
|
||||
ayon_capture_preset = ayon_publish["ExtractPlayblast"]["capture_preset"]
|
||||
display_options = ayon_capture_preset["DisplayOptions"]
|
||||
for key in ("background", "backgroundBottom", "backgroundTop"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue