Python preferences

You can set the following preferences in the Python category of the Preferences window.

Python Configuration

Highlight Syntax
Shows code colorized (as you type) based on Python syntax types.
Smart Highlighting

Shows all instances of a selected word in the Python Editor work area using a specified color scheme.

Current Line Highlighting

Shows the line of code currently selected in the Python Editor work area using the specified Background color.

Use line
Displays line numbers in the Python editor Workspace pane.
Auto Indentation
Automatically indents a script where required.
Reload last scripts on startup
Loads (in the Python Editor) the last scripts when launching application.
Show Close Button on Each Tab
Controls whether each script tab in the Python Editor displays an 'x' (Close) button to let you quickly close scripts. On by default, so you can more efficiently manage multiple script tabs at once.

Python Server

Enable Server
Starts a server to execute Python commands remotely.
Note: To execute commands remotely, you must enable Allow Network Connections.
Allow Network Connections
Enables network connection.
Note: To execute commands remotely, you must Enable Server.

Python startup folder

Sets Python path variables. This folder provides a location where you can place any and all scripts you want to have executed on start-up. This enables you to use a .bat file or another form of start-up manipulation. You can provide several scripts to an artist to configure for example, UI, settings, load/save scenes etc.

Color Scheme

For setting color schemes, enter RGB color values, or click this icon to access the Color window to select colors.

Background
Sets the color of the Python Editor console.
Code
Sets the color of code in the Python Editor workspace.
Smart Highlighting

Sets the foreground and background color values for Smart Highlighting when the option is enabled.

Current Line Highlighting

Sets the background color values for Current Line Highlighting when the option is enabled.

Font

Type
Sets the default font type for the Python Editor interactive console and work area.
Size
Set sthe default font size for the Python Editor interactive console and work area

File Status Auto-Detection

Enable
When on, MotionBuilder prompts you to reload files that are open in the Python Editor when they get modified externally, such as in another editor. Note that when Update Silently is on, this update occurs without a notification.
Update Silently
When on, MotionBuilder reloads the Python file automatically without prompting.

Related topics