The question was - How to get the current screen resolution in MaxScript? The available built-in function sysInfo.desktopSize is fine if we use single monitor, but on multiple monitors this function return the full resolution of all monitors. So here is a function for that case:
fn ScreenResolution = (
local scr = (dotNetClass "System.Windows.Forms.Screen").PrimaryScreen.Bounds
[scr.Width, scr.Height]
)
No comments:
Post a Comment
Thanks for your comment