mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Validate against multiple collections per instance.
This commit is contained in:
parent
2c9613b55e
commit
0fc1e357a3
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ class ValidateXgen(pyblish.api.InstancePlugin):
|
|||
msg = "Invalid nodes in the objectset:\n{}".format(remainder_nodes)
|
||||
assert not remainder_nodes, msg
|
||||
|
||||
# Only one collection per instance.
|
||||
palette_amount = len(instance.data["xgenPalettes"])
|
||||
msg = "Only one collection per instance allow. Found {}:\n{}".format(
|
||||
palette_amount, instance.data["xgenPalettes"]
|
||||
)
|
||||
assert palette_amount == 1, msg
|
||||
|
||||
# Cant have deactive modifiers in collection cause Xgen will try and
|
||||
# look for them when loading.
|
||||
palette = instance.data["xgenPalette"].replace("|", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue