mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
removed usage of config callback in maya
This commit is contained in:
parent
b0de225de1
commit
60df02602b
1 changed files with 1 additions and 17 deletions
|
|
@ -9,8 +9,6 @@ import maya.api.OpenMaya as om
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
import avalon.api
|
import avalon.api
|
||||||
|
|
||||||
from avalon.lib import find_submodule
|
|
||||||
|
|
||||||
import openpype.hosts.maya
|
import openpype.hosts.maya
|
||||||
from openpype.tools.utils import host_tools
|
from openpype.tools.utils import host_tools
|
||||||
from openpype.lib import (
|
from openpype.lib import (
|
||||||
|
|
@ -20,7 +18,6 @@ from openpype.lib import (
|
||||||
)
|
)
|
||||||
from openpype.lib.path_tools import HostDirmap
|
from openpype.lib.path_tools import HostDirmap
|
||||||
from openpype.pipeline import (
|
from openpype.pipeline import (
|
||||||
LegacyCreator,
|
|
||||||
register_loader_plugin_path,
|
register_loader_plugin_path,
|
||||||
register_inventory_action_path,
|
register_inventory_action_path,
|
||||||
register_creator_plugin_path,
|
register_creator_plugin_path,
|
||||||
|
|
@ -270,21 +267,8 @@ def ls():
|
||||||
|
|
||||||
"""
|
"""
|
||||||
container_names = _ls()
|
container_names = _ls()
|
||||||
|
|
||||||
has_metadata_collector = False
|
|
||||||
config_host = find_submodule(avalon.api.registered_config(), "maya")
|
|
||||||
if hasattr(config_host, "collect_container_metadata"):
|
|
||||||
has_metadata_collector = True
|
|
||||||
|
|
||||||
for container in sorted(container_names):
|
for container in sorted(container_names):
|
||||||
data = parse_container(container)
|
yield parse_container(container)
|
||||||
|
|
||||||
# Collect custom data if attribute is present
|
|
||||||
if has_metadata_collector:
|
|
||||||
metadata = config_host.collect_container_metadata(container)
|
|
||||||
data.update(metadata)
|
|
||||||
|
|
||||||
yield data
|
|
||||||
|
|
||||||
|
|
||||||
def containerise(name,
|
def containerise(name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue