Value > MAXWrapper > Modifier > Sweep |
The Sweep Modifier can be used to turn a spline shape into a mesh with a custom cross-section, providing both built-in and user-defined cross-section shape options.
Available in 3ds Max 8 and higher.
Gets/sets the Custom Section Type > Mode radio buttons' state.
Gets/sets the Built-in Section type.
The available shapes are not hard-coded, but can be extended by editing the file \plugcfgtype\sweep.ini and adding up to 100 custom shape classes.
Current pre-defined values are:
Gets/sets the state of the Use Built-In Selection/Use Custom Section radio buttons.
When set to 1, the Custom Section will be active.
When 0, the pre-defined Section will be active.
Contains the name of the Custom Section object, or undefined if no custom cross-section has been picked yet.
<sweep>.Shapes ArrayParameter default: #(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, ...) -- maxObject array; SubAnim
This is an array of 100 elements and is used to store the cross-section shapes.
All elements, but the first one are read-only.
Elements 2 to 100 are used to store the class instances defined by the Built-in types controlled by the .CurrentBuiltInShape property and the "Built-In Section" drop-down list.
In the beginning, element 2 is assigned an instance of the class defined by the first (default) cross-section in the \plugcfg\sweep.ini file(Angle by default).Selecting other elements from the list or setting .CurrentBuiltInShape to other values than 1 will create new shape class instances and store them in the respective .CurrentBuiltInShape +1 elements of the array.
You can assign a new class instance of any shape to the first element of the array to make it available as a custom shape when the . CustomShape property is set to 1.
Gets/sets the state of the Mirror on XZ plane option.
Gets/sets the state of the Mirror on XYplane option.
Controls the offset of the cross-section from the path along the cross-section's X axis.
Controls the offset of the cross-section from the path along the cross-section's Y axis.
Controls the rotation of the cross-shape around the axis of the path.
Gets/sets the state of the Smooth Section option.
When set to true, assign the same smoothing group to all faces generated for a single segment of the base (path) shape, resulting in smoothing along the cross-section.
Gets/sets the state of the Smooth Path option.
When set to true, assign the same smoothing group to all faces generated for a single segment of the cross-section shape for all base (path) shape's segments, resulting in smoothing along the base shape.
Gets/sets the Pivot Alignment option. Corresponds to the group of nine checkbuttons.
-1 or any value higher than 8 - Default, no alignment
Gets/sets the state of the Banking option.
Gets/sets the state of the Union Intersection option.
Gets/sets the state of the Gen.Mapping Coordinates option.
When set to true, mapping coordinates will be generated where U goes around the cross-section and V goes along the base spline, same as with the Renderable Spline option in regular shapes.
Gets/sets the state of the Real-World Map Size option.
Gets/sets the state of the Generate Material IDs option.
Gets/sets the state of the UseSection IDs option.
Corresponds to pressing the Pick button in the "Custom Section Types" group of controls of the "Section Type" rollout.
Corresponds to pressing the Merge From File button in the "Custom Section Types" group of controls of the "Section Type" rollout.
Corresponds to pressing the Extract button in the "Custom Section Types" group of controls of the "Section Type" rollout.
Corresponds to pressing the Align Pivot button in the "Sweep Parameters" group of controls of the "Section Type" rollout.
The properties displayed in the Parameters and Interpolation rollouts are taken from the ParamBlock of the class instance generated for the cross-section.
The corresponding shape classes used for the built-in cross-sections are:
Angle-Angle : Shape
Channel -Channel : Shape
Cylinder -Circle : Shape
Half Round -HalfRound : Shape
Pipe -Pipe:Shape
Quarter Round -QuarterRound : Shape
Tee -Tee : Shape
Tube -WalledRectangle : Shape
Wide Flange -WideFlange : Shape
The cross-section object can be accessed as the 4 th indexed subAnim of the sweep modifier.