Slicer files: upload and plugin

How to fill in weight, time and material from a slicer file in the calculator, manually or with one button from PrusaSlicer, OrcaSlicer and Bambu Studio.

Don't type grams and hours by hand: the calculator can take them from a sliced file.

How it works

Uploading to the calculator. In the "Model" block, upload a .gcode or .3mf file (up to 1.5 GB). Weight and time are filled in, and if the printer and filament are in your catalog, those too. The file is attached to the order. For SLA in the app, use the "From slicer file" button.

Slicer plugin. There is nothing to install inside the slicer: it is a single Python script for PrusaSlicer, OrcaSlicer and Bambu Studio that sends the file to the server using your access token and opens the calculator with the numbers ready. There is no built-in slicer on the site: you slice the model in your own program. Setup is described in the section below.

Demo without an account. On the public demo calculator page you can drag in a 3MF, G-code or STL: the numbers are filled in right in the browser, and the file is not uploaded anywhere. For STL, the weight is estimated from the volume and time is not calculated.

Slicer plugin: setup

  1. Open "Settings → Integrations → Developers → Slicer plugin" and click "Download script" (the file 3dprintpricing-slicer-plugin.py). Keep it in a permanent folder.

  2. In the same place, in the "Access tokens" block, create a token with "Full access" (it starts with pat_ and is shown only once), see API tokens.

  3. You need Python 3 installed; nothing else to install. Run the script once with no arguments, for example python 3dprintpricing-slicer-plugin.py, and paste the token: it is saved in the ~/.3dprintpricing folder.

  4. In your slicer find the "Post-processing scripts" field (PrusaSlicer: Print Settings → Output options; OrcaSlicer and Bambu Studio: Process → Others) and enter a line made of two paths, both in quotes: first the path to python.exe, then the path to the script.

    • Windows: "C:\Users\<name>\AppData\Local\Programs\Python\Python312\python.exe" "C:\Users\<name>\Downloads\3dprintpricing-slicer-plugin.py" (a sample — your paths differ; the easiest way is to run the script once: it prints the ready line and on Windows copies it). To find the path to python.exe, open Command Prompt (cmd) and run where python.
    • macOS and Linux: /usr/bin/python3 /path/to/3dprintpricing-slicer-plugin.py (which python3 shows the path).

    Do not enter only the path to the .py file: the slicer will try to run it as a program and show "Failed starting the script", code 193 (Windows: "not a valid Win32 application"). Fix it by adding the path to python.exe before the script path.

After every .gcode or .3mf export the script sends the file to the server and opens the calculator with weight, time and filament filled in. If it doesn't work: check that Python is installed, the python path comes before the script path (code 193 means it is missing), everything is in quotes, that the token hasn't expired, and that the file was exported with the slicing result.

The printer camera has nothing to do with the slicer: video comes only through the monitoring agent on a computer next to the printer (Bambu Cloud does not provide video).

FAQ

Why were weight and time zeroed after uploading a 3MF? You exported the project without the slicing result. You need: File → Export → "Export plate sliced as 3MF" (Ctrl+Shift+E). If the file isn't recognized, it is attached as a model.

My project has several plates — what gets counted? If you save the project with "Export all plates sliced", the calculator adds up the weight and time of all sliced plates and shows how many there were. To price a single plate, export just that one: "Export plate sliced as 3MF".

Is Cura supported? There's no Cura plugin yet, but you can upload G-code manually.

What about Chitubox and Lychee files? The .ctb, .cbddlp and .lys formats are not supported.

If something's wrong

The file is too large — the limit is 1.5 GB. The material wasn't matched — add the filament you need to the warehouse or enter the material manually. The file didn't attach — you may be out of space, see Storage quotas.

Keine Antwort gefunden?

Schreiben Sie dem Support — zuerst antwortet unser KI-Assistent, bei Bedarf übernimmt ein Mensch.

Support kontaktieren