mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Reapply previous commits
This commit is contained in:
parent
2494d2d124
commit
47c60ed1d3
2 changed files with 4 additions and 11 deletions
|
|
@ -14,12 +14,7 @@ def validate_name(subset):
|
||||||
|
|
||||||
|
|
||||||
class ValidateSubsetName(pyblish.api.InstancePlugin):
|
class ValidateSubsetName(pyblish.api.InstancePlugin):
|
||||||
"""Adheres to the content of 'model' family
|
"""Validates subset name has only valid characters"""
|
||||||
|
|
||||||
- Must have one top group named: geo_GRP
|
|
||||||
- Must only contain: transforms, meshes and groups
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
order = colorbleed.api.ValidateContentsOrder
|
order = colorbleed.api.ValidateContentsOrder
|
||||||
families = ["*"]
|
families = ["*"]
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,15 @@ class ValidateNamespaceEmpty(pyblish.api.ContextPlugin):
|
||||||
|
|
||||||
This is a scene wide validation that filters out "UI" and "shared"
|
This is a scene wide validation that filters out "UI" and "shared"
|
||||||
namespaces that exist by default in Maya and are mostly hidden.
|
namespaces that exist by default in Maya and are mostly hidden.
|
||||||
|
|
||||||
|
A namespace that has other namespaces in it is *not* considered empty.
|
||||||
|
Only those that have no children namespaces or nodes is considered empty.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
order = colorbleed.api.ValidateSceneOrder
|
order = colorbleed.api.ValidateSceneOrder
|
||||||
hosts = ["maya"]
|
hosts = ["maya"]
|
||||||
families = ["colorbleed.model"]
|
families = ["colorbleed.model"]
|
||||||
category = "scene"
|
|
||||||
version = (0, 1, 0)
|
|
||||||
label = "No Empty Namespaces"
|
label = "No Empty Namespaces"
|
||||||
|
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
|
|
@ -27,9 +28,6 @@ class ValidateNamespaceEmpty(pyblish.api.ContextPlugin):
|
||||||
if ns not in ["UI", "shared"]]
|
if ns not in ["UI", "shared"]]
|
||||||
|
|
||||||
invalid = []
|
invalid = []
|
||||||
# TODO: Check whether currently a namespace with
|
|
||||||
# another namespace in it (both empty) is
|
|
||||||
# considered empty
|
|
||||||
for namespace in non_internal_namespaces:
|
for namespace in non_internal_namespaces:
|
||||||
namespace_content = cmds.namespaceInfo(namespace,
|
namespace_content = cmds.namespaceInfo(namespace,
|
||||||
listNamespace=True,
|
listNamespace=True,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue