[Closed] Clearing mirror effect via script
I’ve mirrored an object and so the transform is inverted on the x axis, like that
(matrix3 [-1,0,0] [0,1,0] [0,0,1] [0,0,0])
I’m trying to restore the original matrix with
$.transform = scaleMatrix[-1,1,1]*$.transform
What I’m expecting is the object to stay put and the matrix to be
(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])
The maxtrix effectively returns to its original state but the problem is that the object mirrors itself.
I just want the x axis of the gizmo to point the other way, while all the vertices remain where they are.
Basically, obtaining what the simmetry modifier does.
What am I doing wrong?
You can use two ways.
- Just use: ResetTransform $
or - Do the mirroring with the modifier ‘Mirror’ (and collapse stack if you don’t want this modifier)
Well, I should have mentioned I want to make this with matrices. I can’t use reset transform.
More, collapsing mirror won’t change the matrix to its original state.
What I mean is that doing mirroring through the ‘Mirror’ modifier doesn’t affect object transform matrix.
Yes Aandreas, it’s true but I don’t need the mirror modifier for this particular task. I just need to invert the x vector (the first number of the first row) of the matrix.