Python Sandbox

To avoid the execution of Python commands that can arbitrarily call operating system commands during file load, we implemented a Python sandbox. It can be configured in Preferences > Script. By default, the sandbox is enabled, blocking the following operations:

If a Python script contained in a project file tries to process one of these operations, a warning dialog is displayed. The operation can then manually be allowed or blocked.

If Apply this action to all future instances is selected, it applies the selected action to all subsequent occurrences of the same command.

Selecting the action, Allow for this project, allows the operation until a new scene is called or another project file is loaded.

Selecting Don’t execute blocks the operation and a Python exception is thrown.

Sandbox Preferences

Use the Script preferences to enable, disable, or configure the Python sandbox.

Other Sandbox Controls

In addition to the preferences, the sandbox can also be controlled with command line options and an environment variable.