---
tag: m0165
title: Set Mix
brief: Set all mix factors for the mixing extruder.
author: thinkyhead

requires: MIXING_EXTRUDER,DIRECT_MIXING_IN_G1
group: mixing

codes: [ M165 ]

notes: Requires `MIXING_EXTRUDER` and `DIRECT_MIXING_IN_G1`.

parameters:
  -
    tag: A
    optional: true
    description: Mix factor 1
    values:
      -
        tag: factor
        type: float
  -
    tag: B
    optional: true
    description: Mix factor 2
    values:
      -
        tag: factor
        type: float
  -
    tag: C
    optional: true
    description: Mix factor 3
    values:
      -
        tag: factor
        type: float
  -
    tag: D
    optional: true
    description: Mix factor 4
    values:
      -
        tag: factor
        type: float
  -
    tag: H
    optional: true
    description: Mix factor 5
    values:
      -
        tag: factor
        type: float
  -
    tag: I
    optional: true
    description: Mix factor 6
    values:
      -
        tag: factor
        type: float

examples:
  -
    pre: Set a colorful mix
    code: M165 A0.2 B0.4 C0.3 D0.1

---

Set the mix for the active virtual extruder all at once. Any factors left out are set to 0.0. This is based on a reference implementation by Pìa Taubert.
