3D Lingo Dictionary > O-S > startAngle |  |

startAngle

Syntax

    member(whichCastmember).modelResource(whichModelResource).
    startAngle
    modelResourceObjectReference.startAngle

Description

3D property; when used with a model resource whose type is `#cylinder` or `#sphere`, this command allows you to both get and set the `startAngle` property of the referenced model resource, as a floating-point value from 0.0 to 360.0. The default value for this property is 0.0.

The `startAngle` property determines the starting sweep angle of the model resource, and works in conjunction with the `endAngle` property to draw spheres and cylinders. For example, if you want to make a half sphere, set `startAngle` to 0.0 and `endAngle` to 180.0.

Example

This statement sets the startAngle of the model resource Sphere01 to 0.0. If its `endAngle` is set to 90, then only one quarter of any model that uses this model resource will appear.

    put member("3D World").modelResource("Sphere01").startAngle
    -- 0.0

See also

`endAngle`