Remove workspace zoom from matrix?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Remove workspace zoom from matrix?

Post by synthsin75 »

Anyone know how to remove workspace zoom from a matrix?
User avatar
Rai López
Posts: 2243
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Remove workspace zoom from matrix?

Post 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).
...
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Remove workspace zoom from matrix?

Post by synthsin75 »

Thanks, Ramon. I didn't see that one. I'll try it out.
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Remove workspace zoom from matrix?

Post by synthsin75 »

Thanks again, Ramon. That seems to be just what I needed.
Gets me about 99% solved on the current problem.
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Remove workspace zoom from matrix?

Post 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()
User avatar
Rai López
Posts: 2243
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Remove workspace zoom from matrix?

Post by Rai López »

Cool! Glad I could somehow help for once :)
...
Post Reply