-
Download the current code of MFM and extract the entire folder to a location such as your user home directory
~. -
Replace the UPPERCASE of the below sample MFM command text as described further below.
"PYTHONPATH/python3.exe" "SCRIPTPATH/mfm_cmd.py" -c "OPTIONSPATH/options.json" -t "TOOLCHANGEPATH/toolchange.gcode" --disable 0;Command structure:
-
PYTHONPATHis the location of your Python installation. This is the folder that the Python executable is in. You may need to changepython3.exeto match your Python name. -
SCRIPTPATHis the location of all the files in thesrcdirectory. -
-c– Options JSONOPTIONSPATHis the location of your Options JSON file. Changeoptions.jsonto the options file name.
-
-t– Toolchange G-codeTOOLCHANGEPATHis the location of your Minimal Toolchange G-code file. Changetoolchange.jsonto the toolchange filename.
-
-leoptional – Line ending styleAUTO– Auto detectWINDOWS–\r\nUNIX–\n
-
-ooptional – Output Print G-code location.- Omit this parameter if using MFM as an intergrated Post-processing Script within the slicer. This is the location of the output printing G-code. MFM will overwrite the input file if no output file is specified.
-
--disableoptional – Quick toggle for enable/disable MFM post processing without needing to clear the entire slicer Post-processing scripts option.0– MFM is enabled1– MFM is disabled
-
-h– Show parameter help.
Put the downloaded project folder in your user home folder. Replace USERNAME with your username.
"C:\Users\USERNAME\AppData\Local\Microsoft\WindowsApps\python3.exe" "C:\Users\USERNAME\mfm\src\mfm_cmd.py" -c "C:\Users\USERNAME\mfm\premade_options\USAofPlastic-meters.json" -t "C:\Users\USERNAME\mfm\minimal_toolchanges\bambu-p1-series.gcode" --disable 0;Put the downloaded project folder in your user home folder.
/usr/local/bin/python3 "~/mfm/src/mfm_cmd.py" -c "~/mfm/premade_options/USAofPlastic-meters.json" -t "~/mfm/minimal_toolchanges/bambu-p1-series.gcode" --disable 0;The exact PYTHONPATH will depend on how you installed Python.
Find where your Python location by running
- Windows cmd.exe
where python3orwhere pythonorGet-Command - Linux/Mac terminal
which python3orwhich python
Common Python install locations for Windows are
C:\Program Files\Python X.YPython installer "for everyone" optionC:\Users\USERNAME\AppData\Local\Programs\Python\PythonXYPython installer "for me" optionC:\Users\USERNAME\AppData\Local\Microsoft\WindowsApps\python3.exeVSCode Python install
Common Python install locations for Linux/Mac are
/usr/local/bin/python3python3orpython