mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix update
This commit is contained in:
parent
6706e90d18
commit
c033eaad65
3 changed files with 8 additions and 6 deletions
|
|
@ -247,6 +247,11 @@ class ReferenceLoader(Loader):
|
|||
|
||||
self.log.warning("Ignoring file read error:\n%s", exc)
|
||||
|
||||
shapes = cmds.ls(content, shapes=True, long=True)
|
||||
new_nodes = (list(set(content) - set(shapes)))
|
||||
|
||||
self._organize_containers(new_nodes, container["objectName"])
|
||||
|
||||
# Reapply alembic settings.
|
||||
if representation["name"] == "abc" and alembic_data:
|
||||
alembic_nodes = cmds.ls(
|
||||
|
|
|
|||
|
|
@ -123,8 +123,6 @@ class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
|
|||
else:
|
||||
if "translate" in options:
|
||||
cmds.setAttr(group_name + ".t", *options["translate"])
|
||||
|
||||
print(new_nodes)
|
||||
return new_nodes
|
||||
|
||||
def switch(self, container, representation):
|
||||
|
|
|
|||
|
|
@ -60,10 +60,9 @@ class ExtractMayaSceneRaw(openpype.api.Extractor):
|
|||
|
||||
selection = members
|
||||
if set(self.add_for_families).intersection(
|
||||
set(instance.data.get("families"))) or \
|
||||
set(instance.data.get("families", []))) or \
|
||||
instance.data.get("family") in self.add_for_families:
|
||||
selection += self._add_loaded_containers(members)
|
||||
self.log.info(selection)
|
||||
selection += self._get_loaded_containers(members)
|
||||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction ...")
|
||||
|
|
@ -93,7 +92,7 @@ class ExtractMayaSceneRaw(openpype.api.Extractor):
|
|||
self.log.info("Extracted instance '%s' to: %s" % (instance.name, path))
|
||||
|
||||
@staticmethod
|
||||
def _add_loaded_containers(members):
|
||||
def _get_loaded_containers(members):
|
||||
# type: (list) -> list
|
||||
refs_to_include = [
|
||||
cmds.referenceQuery(ref, referenceNode=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue