mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merged in tokejepsen/pype/feature/nuke_validate_script (pull request #227)
Improve logging with stating which attributes are compared. Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
db679b96ee
1 changed files with 18 additions and 5 deletions
|
|
@ -23,12 +23,24 @@ class ValidateScript(pyblish.api.InstancePlugin):
|
|||
|
||||
# These attributes will be checked
|
||||
attributes = [
|
||||
"fps", "fstart", "fend",
|
||||
"resolution_width", "resolution_height", "handle_start", "handle_end"
|
||||
"fps",
|
||||
"fstart",
|
||||
"fend",
|
||||
"resolution_width",
|
||||
"resolution_height",
|
||||
"handle_start",
|
||||
"handle_end"
|
||||
]
|
||||
|
||||
# Value of these attributes can be found on parents
|
||||
hierarchical_attributes = ["fps", "resolution_width", "resolution_height", "pixel_aspect", "handle_start", "handle_end"]
|
||||
hierarchical_attributes = [
|
||||
"fps",
|
||||
"resolution_width",
|
||||
"resolution_height",
|
||||
"pixel_aspect",
|
||||
"handle_start",
|
||||
"handle_end"
|
||||
]
|
||||
|
||||
missing_attributes = []
|
||||
asset_attributes = {}
|
||||
|
|
@ -84,8 +96,9 @@ class ValidateScript(pyblish.api.InstancePlugin):
|
|||
# Compare asset's values Nukescript X Database
|
||||
not_matching = []
|
||||
for attr in attributes:
|
||||
self.log.debug("asset vs script attribute: {0}, {1}".format(
|
||||
asset_attributes[attr], script_attributes[attr]))
|
||||
self.log.debug("asset vs script attribute \"{}\": {}, {}".format(
|
||||
attr, asset_attributes[attr], script_attributes[attr])
|
||||
)
|
||||
if asset_attributes[attr] != script_attributes[attr]:
|
||||
not_matching.append(attr)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue