Interface: manip
The manip Core Interface exposes the viewport Manipulators to MAXScript.
Interface: manip
Properties:
manip.msXYPlane : Interface : Read
manip.msXZPlane : Interface : Read
manip.msYZPlane : Interface : Read
Return a manipPlane [Mixin Interface] providing methods to get intersections with the respective plane.
Methods:
<mesh>manip.makeSphere <point3>pos <float>radius <integer>segments
This returns a mesh sphere with the given position, radius, and segments.
<point3>pos
: Sets the mesh sphere Position
<float>radius
: Specifies the radius of the sphere.
<integer>segments:
Sets the number of polygonal divisions for the sphere.
<mesh>manip.makeTorus <point3>pos <float>radius <float>radius2 <integer>segs <integer>sides
Create a torus mesh with the given values.
<point3>pos:
Sets the position of the torus.
<float>radius:
Sets the distance from the center of the torus to the center of the cross-sectional circle. This is the radius of the torus ring.
<float>radius2:
Sets the radius of the cross-sectional circle. The default is 10 units. This value is replaced each time you create a torus.
<integer>segs:
Sets the number of radial divisions around the torus. By reducing this number, you can create polygonal rings instead of circular ones.
<integer>sides:
Sets the number of sides on the cross-sectional circle of the torus. By reducing this number, you can create prism-like cross sections instead of circular ones.
<mesh>manip.makeBox <point3>pos <float>l <float>w <float>h <integer>lsegs <integer>wsegs <integer>hsegs
Creates a box mesh with the given parameters.
<point3>pos
: Sets the position of the Box.
<float>l
: Sets the length, width, and height of the Box object. These fields also act as readouts while you drag the sides of the box. Default=0,0,0.
<float>w
: Sets the length, width, and height of the Box object. These fields also act as readouts while you drag the sides of the box. Default=0,0,0.
<float>h
: Sets the length, width, and height of the Box object. These fields also act as readouts while you drag the sides of the box. Default=0,0,0.
<integer>lsegs
: Sets the number of divisions along each axis of the object. Can be set before or after creation. By default, each side of the box is a single segment. When you reset these values, the new values become the default during a session. Default=1,1,1.
<integer>wsegs
: Sets the number of divisions along each axis of the object. Can be set before or after creation. By default, each side of the box is a single segment. When you reset these values, the new values become the default during a session. Default=1,1,1.
<integer>hsegs
: Sets the number of divisions along each axis of the object. Can be set before or after creation. By default, each side of the box is a single segment. When you reset these values, the new values become the default during a session. Default=1,1,1.
<Interface>manip.makeCircle <point3>center <float>radius <integer>segments
Creates a circle with the given parameters.
<point3>center
Sets the position of the Circle.
<float>radius
: Sets the radius of the Circle.
<integer>segments
: Sets the number of segments in the Circle.
<Interface>manip.makeGizmoShape()
Returns a gizmoShape Interface representing an empty gizmo shape that can be used to create user-defined gizmos by adding points to define freeform lines.
<Interface>manip.makePlaneFromPts <point3>p1 <point3>p2 <point3>p3
Returns a manipPlane Interface representing a plane passing through the three given points.
<point3>p1
: first point of the plane definition
<point3>p2
: second point of the plane definition
<point3>p3
: third point of the plane definition
<Interface>manip.makePlaneFromNormal <point3>normal <point3>point
Returns a manipPlane Interface representing a plane with the given normal that passes through the given point.
<point3>normal
: the normal of the plane
<point3>point
: the point the plane passes through
<enum>manip.getObjectManipulatorDisplayMode()
getObjectManipulatorDisplayMode enums: {#object|#active}
Gets the display mode setting for manipulators under Preferences > Gizmos tab > Object Manipulators, where #object
means both manipulators from the base object as well as any modifiers being edited are displayed, and #active
means only the active modifier or object's manipulators are displayed.
<enum>manip.setObjectManipulatorDisplayMode <enum>mode
setObjectManipulatorDisplayMode enums: {#object|#active}
mode enums: {#object|#active}
Sets the display mode setting for manipulators under Preferences > Gizmos tab > Object Manipulators, where #object
means both manipulators from the base object as well as any modifiers being edited are displayed, and #active
means only the active modifier or object's manipulators are displayed.