Skip to content

Commit

Permalink
Merge pull request #199 from mattyjams/pr/reintroduce_Python_UsdMaya_…
Browse files Browse the repository at this point in the history
…names_from_mayaUsd

reintroduce migrated UsdMaya Python bindings back into the pxr.UsdMaya namespace
  • Loading branch information
Krystian Ligenza authored Jan 14, 2020
2 parents 3a27ead + 9ec5382 commit a2dbd1e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions plugin/pxr/maya/lib/usdMaya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,37 @@
pass


# XXX: Pull request #154 in the maya-usd repo relocates a bunch of Python
# bindings from pxr.UsdMaya to mayaUsd.lib. To ease the transition for Python
# code that uses the bindings from the old package namespace, we reintroduce
# the migrated names back into the pxr.UsdMaya namespace by importing them from
# mayaUsd.lib here. The try/except allows this to work both before and after
# PR #154 is merged.
#
# https://github.com/Autodesk/maya-usd/pull/154
#
try:
from mayaUsd.lib import Adaptor
from mayaUsd.lib import BlockSceneModificationContext
from mayaUsd.lib import ConvertLinearToMaya
from mayaUsd.lib import ConvertMayaToLinear
from mayaUsd.lib import DiagnosticBatchContext
from mayaUsd.lib import DiagnosticDelegate
from mayaUsd.lib import GetPrim
from mayaUsd.lib import MeshUtil
from mayaUsd.lib import ReadUtil
from mayaUsd.lib import ReloadStage
from mayaUsd.lib import RoundTripUtil
from mayaUsd.lib import StageCache
from mayaUsd.lib import UserTaggedAttribute
from mayaUsd.lib import UserTaggedAttributeTokens
from mayaUsd.lib import WriteUtil
from mayaUsd.lib import XformOpClassification
from mayaUsd.lib import XformStack
except ImportError:
pass


from maya import cmds
from maya import mel

Expand Down

0 comments on commit a2dbd1e

Please sign in to comment.