Hey there,
I was wondering if anbody knew a way of getting the screep position of a window in Maya?
Problem:
I’m trying to get Maya to remember the screen position (whether dual screen or not) of a window, so when it relaunches the gui, it’ll be in the same exact place.
I know I can use an optionVar to do the job, but I just need to know the screen position to input into the option var.
Unless I’m misunderstanding your question (or you want the data for something else), maya already restores your window’s size and position if you have Preferences -> Interface -> Remember size and position checked. It gets added to prefs/windowPrefs.mel, which you can query with cmds.windowPrefs