mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Swap pyblish_maya dependency to avalon.maya
This commit is contained in:
parent
100f145151
commit
27353d4b09
13 changed files with 27 additions and 27 deletions
|
|
@ -2,7 +2,7 @@ import json
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
import cb.utils.maya.context as context
|
||||
|
|
@ -57,7 +57,7 @@ class ExtractLayout(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
|
||||
# Get children hierarchy
|
||||
nodes = instance.data['setMembers']
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import contextlib
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ class ExtractAlembic(colorbleed.api.Extractor):
|
|||
os.makedirs(parent_dir)
|
||||
|
||||
with suspension():
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
self.log.debug(
|
||||
"Preparing %s for export using the following options: %s\n"
|
||||
"and the following string: %s"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
import cb.utils.maya.context as context
|
||||
|
|
@ -83,7 +83,7 @@ class ExtractCameraBaked(colorbleed.api.Extractor):
|
|||
path = os.path.join(dir_path, filename)
|
||||
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(baked_shapes, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
@ -116,7 +116,7 @@ class ExtractCameraBaked(colorbleed.api.Extractor):
|
|||
# we *do not* publish a baked camera we want to keep it enabled. This
|
||||
# way what the artist has in the scene visually represents the output.
|
||||
with context.timewarp(state=not alembic_as_baked):
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(abc_shapes, replace=True, noExpand=True)
|
||||
|
||||
# Enforce forward slashes for AbcExport because we're
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ class ExtractCameraRaw(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(cameras, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import contextlib
|
|||
|
||||
import maya.cmds as cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
import cb.utils.maya.context as context
|
||||
|
|
@ -125,7 +125,7 @@ class ExtractInstancerMayaAscii(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
with cache_file_paths(cache_remap):
|
||||
with context.attribute_values(attr_remap):
|
||||
cmds.select(export, noExpand=True)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class ExtractLayoutMayaAscii(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(instance, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import json
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
import cb.utils.maya.context as context
|
||||
|
|
@ -56,7 +56,7 @@ class ExtractLook(colorbleed.api.Extractor):
|
|||
# TODO: Ensure membership edits don't become renderlayer overrides
|
||||
with context.empty_sets(sets):
|
||||
with context.attribute_values(resource_remap):
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(sets, noExpand=True)
|
||||
cmds.file(maya_path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ class ExtractMayaAscii(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(instance, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ class ExtractMayaAsciiRaw(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(members, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
from cb.utils.maya import context
|
||||
|
|
@ -57,7 +57,7 @@ class ExtractModel(colorbleed.api.Extractor):
|
|||
polygonObject=1):
|
||||
with context.shader(members,
|
||||
shadingEngine="initialShadingGroup"):
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(members, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class ExtractParticlesMayaAscii(colorbleed.api.Extractor):
|
|||
|
||||
# Perform extraction
|
||||
self.log.info("Performing extraction..")
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
cmds.select(export, noExpand=True)
|
||||
cmds.file(path,
|
||||
force=True,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from maya import cmds
|
||||
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
import colorbleed.api
|
||||
|
||||
import cb.utils.maya.context as context
|
||||
|
|
@ -47,7 +47,7 @@ class ExtractFurYeti(colorbleed.api.Extractor):
|
|||
resource_remap[attribute] = destination
|
||||
|
||||
# Perform extraction
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
with context.attribute_values(resource_remap):
|
||||
cmds.select(members, r=True, noExpand=True)
|
||||
cmds.file(path,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import pyblish.api
|
||||
import maya.cmds as cmds
|
||||
import colorbleed.api
|
||||
import pyblish_maya
|
||||
import avalon.maya
|
||||
|
||||
import cb.utils.maya.dag as dag
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ class ValidateLayoutContent(pyblish.api.InstancePlugin):
|
|||
"{0}".format(instance))
|
||||
|
||||
# Ensure at least any extract nodes readily available after filtering
|
||||
with pyblish_maya.maintained_selection():
|
||||
with avalon.maya.maintained_selection():
|
||||
|
||||
import cbra.utils.maya.layout as layout
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue