ActiveX Array Properties

NOTE:

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.

To see whether an ActiveX property is an array, you can check for a hidden "_newEnum" property.

FOR EXAMPLE

local an_array
try
(
get Property rListView.ax.listItems #_newEnum; an_array = true
)
catch
(
an_array = false
)

Properties which return arrays can be iterated

For example, . listItems in the ListView control, returns IListItems. This can be looped through and also indexed.

for li in ax.listItems do li.bold = true

or

ax.listItems[1].text = "foo"

See Also