mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
validate ftrack attributes from settings
This commit is contained in:
parent
c8889b712b
commit
f9a0a72b3a
1 changed files with 2 additions and 6 deletions
|
|
@ -61,12 +61,8 @@ class ValidateFtrackAttributes(pyblish.api.InstancePlugin):
|
||||||
"Missing FTrack Task entity in context")
|
"Missing FTrack Task entity in context")
|
||||||
|
|
||||||
host = pyblish.api.current_host()
|
host = pyblish.api.current_host()
|
||||||
to_check = (
|
to_check = self.ftrack_custom_attributes.get(host, {}))
|
||||||
context.data["project_settings"]
|
|
||||||
["ftrack"]
|
|
||||||
.get(host, {})
|
|
||||||
.get("ftrack_custom_attributes")
|
|
||||||
)
|
|
||||||
if not to_check:
|
if not to_check:
|
||||||
self.log.warning("ftrack_attributes preset not found")
|
self.log.warning("ftrack_attributes preset not found")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue