ActiveX Controls have been deprecated by Microsoft in the latest versions of the Windows operating system in favor of the DotNet framework and its controls.
While MAXScript still supports ActiveX controls, these have to be installed and registered on the system to be accessible to MAXScript.
As a replacement of ActiveX controls, MAXScript supports DotNet controls in 3ds Max 9 and higher.
There are two common properties for ActiveX controls, .pos
and .size
.
Other ActiveX properties are control specific and vary from one control to another.
For a list of all available properties except the two common properties listed above, you can use the ActiveX Control Inspector Function
showProperties <axControl>
Properties can be set as usual in MAXScript,
ax.checkboxes= true
where ax
is the control name and .checkboxes
is a boolean property.
Additionally, there is support for color properties. The internal representation of colors for ActiveX controls is COLORREF(unsigned integer) so you will always get integers when reading them, but you can set them as follows:
ax.forecolor =red -- if a .forecolor property exists
EXAMPLE
fn activeXColortheColor = (color theColor.b theColor.g theColor.r) ax.forecolor = activeXColor red