MAXScript Language Reference > 3ds Max Objects > Node : MAXWrapper > Node Subclasses > GeometryClass : Node > Geometry - Extended Objects >

# Capsule : GeometryClass

    Capsule - superclass: GeometryClass; super-superclass:node - classID: #(1832744876, 2043230633)

Value > MAXWrapper > Node > GeometryClass > Capsule

| Geometry Objects - Quick Navigation

Constructor:

    capsule...

Properties:

    <Capsule>.radius Float default: 15.0 -- animatable

The radius of the capsule.

    <Capsule>.height Float default: 25.0 -- animatable

The height of the capsule.

    <Capsule>.heighttype Integer default: 1

Set what .height specifies:

0-Overall

1-Centers (not including domed caps)

    <Capsule>.sides Integer default: 24 -- animatable

Sets the number of sides around the capsule.

Higher numbers shade and render as true circles with Smooth on.

Lower numbers create regular polygonal objects with Smooth off.

    <Capsule>.heightsegs Integer default: 1 -- animatable; alias: height_segments

The number of divisions along the capsule's major axis.

    <Capsule>.smooth BooleanClassdefault: true -- animatable

When on, blends the faces of the capsule, creating a smooth appearance in rendered views.

    <Capsule>.smooth_on Integer default: 1 -- animatable

Smooth_on is an integer alias of smooth :

0- off

1- on

    <Capsule>.sliceon BooleanClassdefault: false--animatable

Turns on/off the Slice function.

    <Capsule>.slice_on Integer default: 0 -- animatable

Slice_on is an integer alias of sliceon :

0- off

1- on

    <Capsule>.slicefrom Float default: 0.0 -- animatable, angle; alias: slice_from

Sets the starting angle (on the local Z-axis) for slicing.

    <Capsule>.sliceto Float default: 0.0 -- animatable, angle; alias: slice_to

Sets the angle (on the local Z-axis) to slice to.

    <Capsule>.mapCoords BooleanClassdefault: false

When on, sets up the required coordinates for applying mapped materials to the capsule.

Interfaces:

    Interface:realWorldMapSizeInterface

Properties:

    .realWorldMapSize: boolean : Read|Write

Enables/disables the real-world map size option.

Available in 3ds Max 8 and higher.

#### See Also

- GeometryClass Common Properties, Operators, and Methods

- Node Common Properties, Operators, and Methods

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods