Spline Shape Common Properties, Operators, and Methods

The following properties methods apply to all spline shape objects.

Properties

<spline>.renderable Boolean default: false

deleted_feature.gif This property has been replaced by the property .render_renderable. See documentation of respective Shape classes for details. The new property has an alias .renderable for backwards compatibility, but it is not advisable to use it because of the name conflict with the node-level renderable property (see note below).

The new property is not exposed to the UI and is not supported in Section : Shape in 3ds Max 7.5 and higher and is thus not a Spline Shape Common Property.

<spline>.thickness Float default: 1.0

deleted_feature.gif This property has been replaced by the property .render_thickness. See documentation of respective Shape classes for details. The new property has an alias .thickness for backwards compatibility.

The new property is not exposed to the UI and is not supported in Section : Shape in 3ds Max 7.5 and higher and is thus not a Spline Shape Common Property.

<spline>.mapCoords Boolean default: false

deleted_feature.gif This property has been replaced by the property .render_mapcoords. See documentation of respective Shape classes for details. The new property has an alias .mapcoords for backwards compatibility.

The new property is not exposed to the UI and is not supported in Section : Shape in 3ds Max 7.5 and higher and is thus not a Spline Shape Common Property.

Note:

Since .renderable is a property for all nodes, a name conflict exists between the .renderable property for nodes and the old .renderable property of spline shapes in 3ds Max prior version 7.5. MAXScript handles the conflict as follows: You can access the node level property as a property of the node, and the object property as a property of the baseobject property of the node.

So, looking in the Object Properties dialog, $.renderable=false turns off renderable at the node level. To turn off the spline's renderable property, you need to say

for example

$.baseobject.renderable=false

Methods

applyOffset <spline_shape_node> <offset_float>

For each spline in the shape, makes a copy of the spline, offset on all sides to the distance in units specified by offset_float. If a spline is open, the resulting spline and its outline will make a single closed spline. Negative offset_float values create an offset spline to the left of the spline (as the spline is drawn from its start to its finish). The spline_shape_node is converted to a SplineShape (Editable Spline) if it is not already a SplineShape.

measureOffset <spline_shape_node> <point3>

Returns a Float value whose absolute value is the distance from point3 to the closest point on a spline in the shape. The sign of the value is positive if the point3 position is to the left of the spline (as the spline is drawn from its start to its finish). The value returned by this method can usually be used as the offset_float parameter in applyOffset() to have an offset spline pass through the point3 position. If the closest point on a spline in the shape is an endpoint of an open spline, the offset spline will not pass through the point3 position.

trimextend <fixed_node_array> <alterable_node_array> \

[trim: <boolean> ] [extend: <boolean>] [infinite: <boolean>] \

[project: #view | #3D | #grid]

The Feature Is Currently Broken.

 

See also

Shape Common Properties, Operators, and Methods

Node Common Properties, Operators, and Methods

MAXWrapper Common Properties, Operators, and Methods

Value Common Properties, Operators, and Methods