Rectangle : Shape

Constructor

rectangle ...

Properties

<Rectangle>.length              Float      default: 10.0  -- animatable

The size of the rectangle along the local Y axis.

<Rectangle>.width              Float      default: 25.0  -- animatable

The size of the rectangle along the local X axis.

<Rectangle>.Corner_Radius      Float      default: 0.0   -- animatable; alias: cornerRadius

Creates rounded corners. When set to 0, the rectangle contains 90-degree corners.

<Rectangle>.steps       Integer    default: 6

The number of divisions between each vertex.

<Rectangle>.optimize    Boolean    default: true

When on, removes unneeded steps from straight segments in the spline.

<Rectangle>.adaptive    Boolean    default: false

When on, adaptive sets the number of steps for each spline to produce a smooth curve. Straight segments always receive 0 steps.

<Rectangle>.angle       Float      default: 0.0   -- animatable

The rotational position of the cross-section in the renderer.

<Rectangle>.thickness   Float      default: 1.0   -- animatable

Radius of the rendered spline.

<Rectangle>.sides      Float      default: 12.0  -- animatable

Sets the number of sides for the spline mesh in the renderer. A value of 4 will give you a square cross section, for example.

<Rectangle>.viewport_thickness Float      default: 1.0   

Diameter of the viewport spline.

<Rectangle>.viewport_sides      Integer    default: 12    

Sets the number of sides for the spline mesh in the viewports. A value of 4 will give you a square cross section, for example.

<Rectangle>.viewport_angle      Float      default: 0.0   

The rotational position of the cross-section in the viewports.

<Rectangle>.DisplayRenderMesh   Boolean   default: false

When on, displays the mesh generated by the spline in the viewports.

<Rectangle>.UseViewportSettings  Boolean    default: false   

When on, displays the mesh generated by the Viewport settings.

<Rectangle>.DisplayRenderSettings  Boolean    default: true   

When on, displays the mesh generated by the render settings.

<Rectangle>.renderable Boolean   default: true

When on, the spline is displayed in the rendered scene.

<Rectangle>.mapCoords Boolean   default: false

Turn this on to apply mapping coordinates. The U coordinate wraps once around the thickness of the spline; the V coordinate is mapped once along the length of the spline.

See also