mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Updated method of getting parameter values. Check active state with not isBypassed
This commit is contained in:
parent
2856dbee87
commit
9ae437e2df
1 changed files with 4 additions and 2 deletions
|
|
@ -38,13 +38,15 @@ class CollectInstances(pyblish.api.ContextPlugin):
|
|||
if not node.parm("id"):
|
||||
continue
|
||||
|
||||
if node.parm("id").eval() != "pyblish.avalon.instance":
|
||||
if node.evalParm("id") != "pyblish.avalon.instance":
|
||||
continue
|
||||
|
||||
has_family = node.parm("family").eval()
|
||||
has_family = node.evalParm("family")
|
||||
assert has_family, "'%s' is missing 'family'" % node.name()
|
||||
|
||||
data = lib.read(node)
|
||||
# Check bypass state and reverse
|
||||
data.update({"active": not node.isBypassed})
|
||||
|
||||
# temporarily translation of `active` to `publish` till issue has
|
||||
# been resolved, https://github.com/pyblish/pyblish-base/issues/307
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue