---------------------------------------------------------------------------------------------------------------------------------------------
ShadedModeEnforcer V1.1a - Stable
Sets the default mode in Nitrous to "Shaded" and disables AO/Shadows/Dual light etc.. by default.
Completly configurable default shading mode and default advanced Nitrous options.
---------------------------------------------------------------------------------------------------------------------------------------------
HISTORY:
- Version: V1.1a - DC20140410
- Implemented mechanism to enforce viewport options on ALL viewports
- Mainly introduced to disable the new default "SelectedEdgedFacesEnabled" option
( wireframe overlay on selected objects ) - Code/data struct optimizing and refactoring,
now you can simply add any Viewport option 3ds Max supports to the struct
- Version: V1.0 - Beta Release, DC20140118
- fixed Max 2012 compatibility
- some code cleanup
- Version: V0.01 - Initial Alpha Release, DC20130813
---------------------------------------------------------------------------------------------------------------------------------------------
PURPOSE:
- Since introduction of Nitrous, the wireframe/shaded toggle switches to realistic mode by default
- While this mode is great for high quality display, it makes working rather unpleasant as by default it enables AO/shadows etc...
- This script brings back plain "shaded" mode as default, without Realistic/AO/Shadows etc...
- Complete configureable new default mode and advanced Nitrous options ( AO, shadows etc.. ).
- Conclusion:
a fast "shaded" mode is again right at your fingertips without distracting AO/Shadows/Dual Default Lights etc
CONFIGURATION:
- open the script in a text editor to edit your desired settings
- Manually adjust your required defaults at the beginning of the struct definition
- For details and complete list of viewport options available, simply look for <ViewportViewSettingImpl> in the Maxscript documentation
- All <ViewportViewSettingImpl> options listed in the MXS docs are automatically supported ( depending on the Max version )
INSTALLATION:
- Copy this script to "<MaxRoot>\scripts\Startup"
- Edit the script if desired ( press Ctrl-E for re-evaluating without need for 3ds Max restart )
- Restart 3ds Max
NOTES:
- When "enableOnFileLoad=false" (disabled), default AO/Light/Shadow settings are not applied, but those from the incoming Max files are used (applies to "maxstart.max" too)
- listener output indicates when the settings are applied
- enter "ShadedModeEnforcer.Deactivate()" in the Listener to disable "enableOnFileLoad" for the current Max session
- Setting default shaded modes does NOT WORK when switching layouts using the "Viewport Layout Tabs", per "Viewport Configuration dialog" or Workspaces
- In that case, all viewports return to "Realistic" as default shaded mode than ( Maxscript Limitation )
By spacefrog · 2013-08-13
triff · 2017-03-09
Jonathan de Blok · 2014-01-17
barigazy · 2013-08-13