Dynamic Colors
Dynamic Colors automatically follow the active Max color theme, rather than remainining fixed. An object or a patcher can have a Fixed Color, like 1.0, 0.0, 1.0, 1.0
, which will not change when the current Color Theme changes. However, a color can also be specified by name. In this case, the actual color as it appears on screen is dynamic, and will change when the current color theme changes. You can get and set colors in the current theme using the themecolor object.
Max for Live
By default, dynamic colors are disabled for most Max objects, but are enabled for most Max for Live objects. When used in Max for Live, the dynamic colors of the Live category follow the active Live color theme as chosen in Live's Preferences. The Live dynamic colors and their values are also listed in the live.colors object's help patcher.
Selecting a Dynamic Color
Using the Inspector
To set a dynamic color, open the Inspector for an object and find the color attribute you want to change. Click in the value column to open the color picker. Select the Dynamic tab at the top of the color picker.
Click the drop-down menu above the color swatch. From here you can select a color based on its dynamic color name. The first dropdown groups colors by category (e.g. Max Theme Colors, Inlet + Outlet), while the second dropdown lets you pick a specific color.
Using a Message
Send an object a message like elementcolor "Hot Inlet Circle Color"
to set the value of that attribute to a dynamic color. Since the name of a dynamic color might be multiple words, you may need to enclose the name of the dynamic color in quotes.
Limitations
Dynamic colors do not work with styles. Choosing a style to override a color will not shut off dynamic colors, and dynamic colors can not yet reliably be part of a style.