MaxScript with CAT
CAT2 provides a powerful platform on which you can customise at will. An important part of this is that CAT is completely accessible to script.
Many scripts are distributed with CAT, and these scripts provide a wide range of examples that yopu can use to help write your own scripts.
Aditionally, the CAT forum has a section dedicated to MaxScript with CAT. Here you will fine aditional scripts that have been written for CAT, and questions being asked and answered by our support team and our profficient users.
CATForums Scripting (http://www.catoolkit.com/forum/forum_topics.asp?FID=13)
| Table of contents |
Interfaces
Interfaces are structures in Max that expose Methods, Properties and Actions to script allowing you to use script to access objects written in c++. Often many different types of objects can use the same interface. This allows many objects to share same script script exposure. An example of this is that every controller in the CATRig will return the interface CATControlFPInterface. More specialied controlles such as HubTrans can additionally return Interfaces that expose funtionality relevant only to themselves.
To find out what functions are available on controllers and objects, you can use two different MaxScript calls :
ShowProperties
ShowProperties <MaxObject>
Use ShowProperites to find out what values and subanims are available on an object, or controller.
ShowInterfaces
ShowInterfaces <MaxObject>
Example: ShowInterfaces $CATParent01
Use ShowInterfaces to find out what functions/methods and properties are available on an object, or controller.
ClassOf
ClassOf <MaxObject>
ClassOf returns the name of the class of the given.
General
For more information please refer to the 3ds Max Script documentation.
To access the controller of and object in max, use the following syntax:
$<NodeName>.transform.controller
or a shorthand way of doing the same thing
$<NodeName>[3].controller
CAT is simply a hierarchy of controllers and objects. All the standard Max calling conventions for navigating hierarchies, accessing subanims, and getting and setting controller values work in CAT.
See Also
Navigating CATRig Heirarchies using Script

