Skip to content

OverlayItem

Type

OverlayItem describes one 3D viewport shape in a tool's Modal overlay list (up to 1,024 items), in Part's unscaled local frame.

Kind

Field
Kind: "box" | "faceGrid" | "line" | "label"

Kind is "box" (Min, Max, Fill), "faceGrid" (Face, Step), "line" (A, B), or "label" (At, Text).

Part

Field
Part: Entity

Part is the entity whose position and rotation set the coordinate frame.

Min

Field
Min: vector?

Min is the lower box corner.

Max

Field
Max: vector?

Max is the upper box corner.

Fill

Field
Fill: boolean?

Fill draws translucent box faces when true, or edges only when false or nil.

Face

Field
Face: ("Right" | "Left" | "Top" | "Bottom" | "Back" | "Front")?

Face is the "faceGrid" side: "Right" (default), "Left", "Top", "Bottom", "Back", or "Front".

Step

Field
Step: number?

Step is grid spacing in units, or nil or 0 for the border only.

A

Field
A: vector?

A is the line start.

B

Field
B: vector?

B is the line end.

At

Field
At: vector?

At is the label anchor.

Text

Field
Text: string?

Text is the label string.

Color

Field
Color: vector?

Color is an RGB vector from 0 to 1, or nil for white (1, 1, 1).