Page 1 of 1

Remove workspace zoom from matrix?

Posted: Sat Oct 22, 2022 11:47 pm
by synthsin75
Anyone know how to remove workspace zoom from a matrix?

Re: Remove workspace zoom from matrix?

Posted: Sun Oct 23, 2022 12:39 am
by Rai López
Hi. Long time without touching matrices (pending), but I think LM_Graphics:CurrentScale(ignoreZoom) should provide what you need. I don't think I can be much more useful than that, sorry... but there are several examples of use in the official tools where present (or any of the listed in the method's page should also serve) that I hope can help.

EDIT: Oh, but of course you should be able to access to Moho View (I took for granted you are).

Re: Remove workspace zoom from matrix?

Posted: Sun Oct 23, 2022 1:00 am
by synthsin75
Thanks, Ramon. I didn't see that one. I'll try it out.

Re: Remove workspace zoom from matrix?

Posted: Sun Oct 23, 2022 1:14 am
by synthsin75
Thanks again, Ramon. That seems to be just what I needed.
Gets me about 99% solved on the current problem.

Re: Remove workspace zoom from matrix?

Posted: Sun Oct 23, 2022 1:29 am
by synthsin75
100% solved.
I just needed to get this bit in the right order, before using my matrix:

Code: Select all

local scale = g:CurrentScale(false)
matrix:Scale(scale, scale, 1)
matrix:Invert()

Re: Remove workspace zoom from matrix?

Posted: Sun Oct 23, 2022 2:12 am
by Rai López
Cool! Glad I could somehow help for once :)