# # Copyright 2018 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. This License does not grant permission to use the trade # names, trademarks, service marks, or product names of the Licensor # and its affiliates, except as required to comply with Section 4(c) of # the License and to reproduce the content of the NOTICE file. # # You may obtain a copy of the Apache License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Apache License with the above modification is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the Apache License for the specific # language governing permissions and limitations under the Apache License. # """Python bindings for libSdr""" from pxr import Tf Tf.PreparePythonModule() del Tf
# # Copyright 2020 Autodesk # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_ufe') else: from . import _ufe Tf.PrepareModule(_ufe, locals()) del _ufe del Tf
# Copyright 2017 Animal Logic # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_AL_USDMaya') else: from . import _AL_USDMaya Tf.PrepareModule(_AL_USDMaya, locals()) del _AL_USDMaya del Tf try: import __DOC __DOC.Execute(locals()) del __DOC except Exception: pass
from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_AL_USDTransaction') else: from . import _AL_USDTransaction Tf.PrepareModule(_AL_USDTransaction, locals()) del Tf try: import __DOC __DOC.Execute(locals()) del __DOC except Exception: try: import __tmpDoc __tmpDoc.Execute(locals()) del __tmpDoc except: pass class ScopedTransaction(object): def __init__(self, stage, layer): self.transaction = Transaction(stage, layer) def __enter__(self): return self.transaction.Open() def __exit__(self, type, value, traceback): return self.transaction.Close()
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from pxr import Tf, Usd if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_usdMaya') else: from . import _usdMaya Tf.PrepareModule(_usdMaya, locals()) del _usdMaya del Tf, Usd try: import __DOC __DOC.Execute(locals()) del __DOC except Exception: pass # XXX: Pull request #154 in the maya-usd repo relocates a bunch of Python
from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_AL_USDMayaSchemas') else: from . import _AL_USDMayaSchemas Tf.PrepareModule(_AL_USDMayaSchemas, locals()) del Tf try: import __DOC __DOC.Execute(locals()) del __DOC except Exception: try: import __tmpDoc __tmpDoc.Execute(locals()) del __tmpDoc except: pass
from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_mayaUsd') else: from . import _mayaUsd Tf.PrepareModule(_mayaUsd, locals()) del _mayaUsd del Tf
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from pxr import Tf if hasattr(Tf, 'PreparePythonModule'): Tf.PreparePythonModule('_schemas') else: from . import _schemas Tf.PrepareModule(_schemas, locals()) del _schemas del Tf try: import __DOC __DOC.Execute(locals()) del __DOC except Exception: try: import __tmpDoc __tmpDoc.Execute(locals()) del __tmpDoc