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