-------------------------------------------------------------------------------------------------------------------------------------------
-- ExploreX V1.0
-------------------------------------------------------------------------------------------------------------------------------------------
-- ExploreX : Stores and manages 3ds Max's Explorer based dialog positions
-- Created:  April 22, 2016
-- Modified: April 28, 2016
-- Requirement: Max 2015 or higher
-------------------------------------------------------------------------------------------------------------------------------------------

-- HISTORY:
	Version:  V1.0 - Initial Release, DC20160428
-------------------------------------------------------------------------------------------------------------------------------------------
-- PURPOSE:
	Several 3ds Max Explorer dialogs introduced over the last few years, tend to always open on top/left screen positions
	They simply do not remember any user preference or positioning
	Examples for those dialogs are the new "Select from Scene", "Crease Explorer", "Boolean Explorer" etc...
	This script fixes that using it's own file to save and restore those dialog's positions (see #plugcfg\ExploreX.ini )

	Important: 
	the script relies on "DialogMonitorOps.enabled" to be true, thus it checks this option every 5 seconds
	If some script has disabled the option, it enables it and prints a message to the listener

-- INSTALLATION:	
	Drag and drop the installer package into the viewport and follow the instructions
	Restarting  3ds Max should NOT be necessary, but if the script does'nt seem to work, simply restart 3ds Max
	After successfull installation/3ds Max relaunch, you should see the following statustext being printed in the Listener:
	"### ExploreX Vx.x: Began listening for Explorer dialogs..."
	To uninstall, simply drag&drop the installer package onto the 3ds Max viewport again and press "Uninstall"	
	
-- MAXSCRIPT ACCESS:
	ExploreX.Activate() 	... activates ExploreX's dialog watching/positioning
	ExploreX.DeActivate()	... deactivates ExploreX's dialog watching/positioning
	ExploreX.GetIsActive()	... true or false wether ExploreX is currently actively watching for dialogs
	ExploreX.OpenINI()		... opens the Ini file in the default text editor ( #plugcfg\ExploreX.ini )
	ExploreX.ReReadINI()   	... reread settings from ini file ( eg. after the INI file was edited )

-- INI SWITCHES ( defaults are in CAPS - see  "#plugcfg\ExploreX.ini" )	
	AutoCenter = true | FALSE    	... center dialog on the screen containing the 3ds Max main window,
	AutoExpandAll = true | FALSE	... expand the treeview nodes ( defaults to TRUE for "Select From Scene" )

	All other entries besides "FormLocation" are currently non functional

