← Back to Docs
  • index.html
  • Clayground
  • Clayground.Lab
  • SelectionFrame3D
  • Clayground 2026.7
  • SelectionFrame3D QML Type

    The shared hover/select language: a flat frame on the work surface. More...

    Import Statement: import Clayground.Lab

    Properties

    Detailed Description

    One shape, two strengths - hovering draws a thin quiet outline, selecting draws the full one plus a nose mark showing which way the object faces after a rotation. Small, and it is exactly the sort of thing that makes two different labs feel like one framework rather than two programs that happen to share a palette.

    Flat bars on the surface rather than a box around the object: the frame then reads at any camera angle, never hides the object it marks, and cannot fight the object's own silhouette.

    Put it inside the object's Node so it inherits position and rotation.

    import Clayground.Lab
    
    Node {
        SelectionFrame3D {
            halfWidth: 5.2; halfDepth: 3.9
            selected: root.selected
            hovered: root.hovered
        }
    }

    See also LabTheme and WorldLabel.

    Property Documentation

    halfDepth : real

    Half extent along z.


    halfWidth : real

    Half extent along x.


    height : real

    Height above the surface.


    hovered : bool

    Thin, quiet outline.


    noseColor : color

    Colour of the facing mark.


    selected : bool

    Full frame plus nose mark.


    showNose : bool

    Draw the facing mark when selected.


    thickness : real

    Bar thickness when selected.


    tone : color

    Frame colour (the interactive blue).