A matrix cannot accurately represent a negative scale along an arbitrary
axis. The information along which axis you scale is lost during the
conversion from transform into a matrix. The resulting worldspace matrix
will be correct, but they may have different decomposed scale (and rotate)
values.

-
https://forums.autodesk.com/t5/maya-programming/bug-in-mtransformationmatrix/m-p/10024546#M13015

On Fri, 16 Jul 2021 at 14:09, Rudi Hammad <rudiham...@gmail.com> wrote:

>
> Hello,
> I am trying to set the scale with OpenMaya and for some reason, it is
> setting the
> wrong axis. Here is the code:
>
> https://pastebin.com/GVYrMUGK
>
> What I am doing is creating 2 locators, setting one of them  to -1 in
> scaleY, getting the matrix, and then from that matrix extracting the scale
> and set that scale to the other locator. But for some reason that I don't
> get, the scale set is no the scaleY , but the scaleZ.
>
> thoughts?
>
> R
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/a949f734-dd9b-4eb9-a1cc-ce9b36748319n%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/a949f734-dd9b-4eb9-a1cc-ce9b36748319n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCD3fDm0aW%3Dg1cNNKYiEPW7jL%3D%3DAwaNfZFUhN4GXj_OMw%40mail.gmail.com.

Reply via email to