On the Security Panel of the Preferences Settings dialog, you set options for Safe Scene Script Execution.
Safe Scene Script Execution protects against new and known malicious scripts by blocking the execution of commands deemed unsafe. Unlike Malware Removal, Safe Scene Script Execution does not remove malicious scripts. For the most complete protection we recommend that both Safe Scene Script Execution and Malware Removal are enabled at all times.
Enables the Safe Scene Script Execution feature which blocks the execution of some embedded script commands that are deemed unsafe.
See the Safe Scene Script Execution Blocked Commands topic for a comprehensive list of the commands that are blocked for each of these options.
The Malware Removal functionality detects and removes known malicious scripts from scene files and startup scripts. While Safe Scene Script Execution blocks both new and known malicious scripts, malware removal doesn't just block known malicious scripts but also removes them. This prevents the spread of the malicious code to other users who may not have Safe Scene Script Execution enabled. The malware removal functionality is powered by the Scene Security Tools plugin, which is updated whenever Autodesk becomes aware of a new malicious script.
Starting in 3ds Max 2022.2 Update, system administrators can control Safe Scene Script Execution settings for machines on their network, which prevents users from changing them. These settings are controlled via the following registry entries under [HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\3dsMax\24.0\Variables\SAFESCENE]:
Setting | Registry Key | Type | Value |
---|---|---|---|
Enable Safe Scene Execution | EnableSafeScene | dword |
1 = on 0 = off |
Block MAXScript system commands | BlockMxsCommands | dword |
1 = on 0 = off |
Block Python scripts | BlockPython | dword |
1 = on 0 = off |
Block 3rd Party .NET code | BlockDotNet | dword |
1 = on 0 = off |
Exclude script assets | EnableSafeSceneAsset | dword |
1 = on 0 = off |
System Administrator
Note: This setting is not required, but it must be set to "*CADAdmin" to disable settings via command line, environment variable, and Preferences UI. If it is not "*CADAdmin", or missing, the settings are only used if they are not present in 3dsmax.ini. |
Owner | string | *CADAdmin |
When a setting is controlled via the registry, it is disabled on the Preferences dialog, and an icon indicates it is managed by a system administrator. The setting cannot be changed via command line option or environment variable. Settings in the registry override settings specified on the command line or through environment variables.
Sample registry file to turn on all Safe Scene Script Execution options:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\3dsMax\24.0\Variables\SAFESCENE] "EnableSafeScene"=dword:00000001 "BlockMxsCommands"=dword:00000001 "BlockPython"=dword:00000001 "BlockDotNet"=dword:00000001 "EnableSafeSceneAsset"=dword:00000001 "Owner"="*CADAdmin"