Node Modifier Transform Context Methods

getModContextTM <node> <modifier> 

Returns a Matrix3 value giving the modifier's context transform for the local coordinates used in modifier sub-object gizmos.

Accessing the transform properties of a modifier sub-object such as, a gizmo or a center in MAXScript yields values that are relative to that modifier's context transform, equivalent to the values shown in track view for those properties. If the modifier is not operating on a sub-object selection such as, a face or vertex selection, or if the modifier was interactively applied to an object selection, this context TM is the local coordinate space of the object. However, if the modifier is operating on either an object selection set or a sub-object selection, the context transform gives the position and orientation of that selection, so you can use the getModContextTM() function to get the world-space transform properties of any of its sub-objects.

setModContextTM <node> <modifier> <matrix3> 

Sets the modifier context transformation matrix of the specified modifier on the given node.

Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.

getModContextBBoxMin <node> <modifier> 
getModContextBBoxMax <node> <modifier> 

These functions complement the getModContextTM() function and can be used to derive the world-space coordinates of the bounding box of the modifier context. This can be used, for example, to determine the bounds of a modifier operating on a sub-selection or the bounds of an FFD lattice. This is particularly useful for scripting FFD control point placement because these control points live in a 0-to-1 lattice space. The mod context bounding box gives the world space bounds of this lattice space allowing you to compute scaled lattice space coordinates from world coordinates. The functions return Point3 values for the minimum and maximum extents of the bounding box.

setModContextBBox <node> <modifier> <point3 min> <point3 max> 

Sets the modifier context bounding box of the modifier on the given node to the specified minimum and maximum values.

Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.

See Modifier Sub-Object Transform Properties for examples of using the above methods.