max_api
Lists the members a MAXScript class declares, with optional wildcard filtering, to verify available properties and methods before scripting rather than guessing.
Instructions
List the members a class DECLARES. Reflect instead of guessing.
Model memory about MAXScript is unreliable and version-specific -- this session alone produced six wrong assumptions (BooleanClass vs Boolean, formattedPrint format strings, getNodeByName default args, node.layer, byte[].Length, case on strings).
KNOWN BLIND SPOT: this lists only members declared on the class itself.
Node-level universal properties -- name, pos, wirecolor, isHidden,
isFrozen, parent, material -- are NOT in any property list, not even
getPropNames, yet they work. For those, use max_check to test the
expression directly. showClass "*.*" also never lists the abstract node
class, so max_api_search "wirecolor" will not find them either.
Args: class_name: class to inspect, e.g. "Box", "Editable_Poly", "VRayLight". pattern: member name filter, MAXScript wildcard. "*" lists everything, "*segs" narrows to matching members (much shorter output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | * | |
| class_name | Yes |