---------------------------------------------------------------------------------------------------------------------------------------------------------------
---- SILENTIUM! V1.0a - INSTALLER FIX RELEASE ( INSTALL TO USER FOLDER )
---------------------------------------------------------------------------------------------------------------------------------------------------------------
---- Created:  February  17, 2016
---- Modified: June 27, 2016
---- Author: 
---- Josef Wienerroither aka "spacefrog"  www.frogsinspace.at  | spacefrog@chello.at
---------------------------------------------------------------------------------------------------------------------------------------------------------------

-- HISTORY:
-- Version:  V1.0a - DC20160217, fixed installer to install to #userstartupscripts ( Win8 ? / Win 10 install error )
-- Version:  V1.0 - Initial Release, DC20160217

-- PURPOSE:
-- Since 3ds Max 2016's new xref Object features, scenes containing xrefobject references featuring different system unit settings, 
-- can cause exzessive dialogs and userinput requests to appear during scene load. 
-- Additionally, every Scene- or ObjectXref file loading can cause an additional "Missing Plugin" dialog to appear 
-- This script fixes the issue by suppressing those dialogs after they appeared once per scene load (default behavior)

-- MAX VERSION REQUIREMENT:
-- developed for 3ds Max2016 and above, though the script works on previous Max versions ( tested with Max 2014 and Max 2015 successfully )

-- 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:
--  "### SILENTIUM!: Scene loading callbacks installed..."
-- To uninstall, simply drag&drop the installer package onto the 3ds Max viewport again and press "Uninstall"

-- USAGE:
-- The scripts works after installation without any further user interaction
-- Additionally it provides the following commands ( accessable via Maxscript listener )

-- 	Silentium.Activate()	    ... Activates the processing of relevant dialogs on Sceneload
--	Silentium.Deactivate()    .... Deactivates the processing
--
-- 	Silentium.Activate() provides some optional parameters ( defaults are CAPITALIZED )
--		NeverPrompt: true | FALSE	      ... if set to true,no unit mismatch/plugin missing prompt will ever appear
--		RescaleMismatched: TRUE | false      ... wether to rescale mismtached Xrefobjects when NeverPrompt is active or leave them
--		Verbose: TRUE | false      ... print log messages to listener, when dialgos are processed during a sceneload 

-- USER INTERFACE, CONFIGURATION OPTIONS:
-- The script does'nt provide a user interface to configure defaults, to adjust those, change the default values in the beginning section of the script
-- defaults options are listed right there, followed by a short description 

-- for convenience, several ""SILENTIUM!:..." - user actions are created in the "Customize UI dialog->Spacefrog Tools" Category
-- A SILENTIUM! menu is created and placed in your main menu bar during the script's installation
-- to customize, simply assign the user actions in the UI configuration dialog to your preferred menu, toolbar or keyboard shortcut
-- TIP: when using a toolbar or menu entry for one of the options, the current state of the option is directly visible in the UI