Applies To
SetUserPref command
Description
Current value of AutoInspect
Code
Application.LogMessage GetUserPref(siAutoInspect) ' Save old setting while turning on AutoInspect and display the new value dim prevval prevval = SetUserPref(siAutoInspect, False) Application.LogMessage GetUserPref(siAutoInspect) ' Restore former setting and display its value again (explicitly reverting ' back to the original value isn't necessary, as Softimage will do that automatically ' after the script has run its course) SetUserPref siAutoInspect, prevval Application.LogMessage GetUserPref(siAutoInspect) ' If your AutoInspect preference was enabled originally, the History Log ' would display the following: ' 'INFO : "True" ' 'INFO : "False" ' 'INFO : "True"
Related Examples
Keywords
SetUserPref
Autodesk Softimage 2011