mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Fix Maya transform
This commit is contained in:
parent
0353ec38f3
commit
1bf95ddce5
1 changed files with 4 additions and 1 deletions
|
|
@ -89,9 +89,12 @@ class ExtractLayout(openpype.api.Extractor):
|
|||
transform_mm = om.MMatrix(t_matrix_list)
|
||||
transform = om.MTransformationMatrix(transform_mm)
|
||||
|
||||
transform.scaleBy([1.0, 1.0, -1.0], om.MSpace.kWorld)
|
||||
t = transform.translation(om.MSpace.kWorld)
|
||||
t = om.MVector(t.x, t.z, -t.y)
|
||||
transform.setTranslation(t, om.MSpace.kWorld)
|
||||
transform.rotateBy(
|
||||
om.MEulerRotation(math.radians(-90), 0, 0), om.MSpace.kWorld)
|
||||
transform.scaleBy([1.0, 1.0, -1.0], om.MSpace.kObject)
|
||||
|
||||
t_matrix_list = list(transform.asMatrix())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue