mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #4386 from BigRoy/maya_fix_validate_plugin_path_attributes
Maya: Fix validate plugin path attributes
This commit is contained in:
commit
c5ecc78d55
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue