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.
Get/set the Custom Section Type > mode radio buttons' state.
Get/set the Build-inSection type.The available shapes are nothard-coded, but can be extended by editing the file \plugcfgtype\sweep.ini and adding up to 100 custom shape classes.
Get/set the state of the Use Built-In Selection / Use Custom Section radio buttons. When set to1, the Custom Section will be active. When0, thepre-definedSection 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
Thisis anarrayof 100 elements andis used to storethecross-section shapes.
All elements but the first one are read-only.
Elements 2 to 100 are used to store the class instancesdefinedby theBuild-intypes controlled by the .CurrentBuiltInShape property and the "Build-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(Angleby 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 in order to make it available as custom shape when the .CustomShape property is set to 1.
Get/set the state of the Mirror on XZ plane option.
Get/set the state of the Mirror on XYplane option.
Get/set the XOffset value. Controls the offset of the cross-section from the path along the cross-section's X axis.
Get/set the YOffset value. Controls the offset of the cross-section from the path along the cross-section's Y axis.
Get/set the Angle value. Controls the rotation of the cross-shape around the axis of the path.
Get/set 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.
Get/set 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.
Get/set the Pivot Alignment option. Corresponds to the group of 9 checkbuttons.
-1 or any value higher than 8 - Default, no alignment
Get/set the state of the Banking option.
Get/set the state of the Union Intersection option.
Get/set 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.
Get/set the state of the Real-World Map Size option.
Get/set the state of the Generate Material 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.
Parameters and Interpolation Rollouts
The properties displayed in the Parameters and Interpolation rollouts are taken from the ParamBlock ofthe 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 4th indexed subAnim of the sweep modifier,