G-code Preview — API Reference
    Preparing search index...

    A manual filament-swap color boundary (M600) — a marker with a position but no motion segment (DD-009 D2 amendment, #147). Like RetractionEvent it is kept in a sparse side channel so segment indices, scrub, and layer ranges are untouched. The renderer's colorChange color mode shades segments by swap slot (the count of color changes at or before a segment), NOT by the tool channel.

    interface ColorChangeEvent {
        segIndex: number;
        srcByte: number;
        tool: number;
        x: number;
        y: number;
        z: number;
    }
    Index

    Properties

    Properties

    segIndex: number

    Index of the first segment emitted after the swap (slot boundary + marker clip).

    srcByte: number

    Byte offset in the source for scrub/telemetry alignment.

    tool: number

    Tool active at the swap — provenance only; not used to pick the swap color.

    x: number

    Position (same frame as segments: origin-relative).

    y: number
    z: number