Merge pull request #4386 from BigRoy/maya_fix_validate_plugin_path_attributes

Maya: Fix validate plugin path attributes
This commit is contained in:
Ondřej Samohel 2023-01-27 07:15:53 +01:00 committed by GitHub
commit c5ecc78d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ class ValidatePluginPathAttributes(pyblish.api.InstancePlugin):
validate_path = (
instance.context.data["project_settings"]["maya"]["publish"]
)
file_attr = validate_path["ValidatePathForPlugin"]["attribute"]
file_attr = validate_path["ValidatePluginPathAttributes"]["attribute"]
if not file_attr:
return invalid
@ -39,7 +39,7 @@ class ValidatePluginPathAttributes(pyblish.api.InstancePlugin):
filepath = cmds.getAttr(file_attr)
if filepath and not os.path.exists(filepath):
self.log.error("File {0} not exists".format(filepath)) # noqa
self.log.error("File {0} not exists".format(filepath)) # noqa
invalid.append(target)
return invalid