Parse placeholder tokens in the post-processing script #2153

Open
opened 2026-04-06 00:37:27 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @atshane253 on 9/18/2025

Description

Pass each non-empty line of post-processing script through the placeholder token parser. Many post processing scripts are unaware of the environment variables that are set, and instead provide parameters that should be set to those values. This change lets you use slicer variables with those scripts as written, to help eliminate crashes and other errors caused by mismatched parameters.

  • Uses the existing placeholder parser used by the filename format setting
  • Tooltip and wiki updated

Screenshots/Recordings/Graphs

image

Tests

  • {layer_height} on windows
*Originally created by @atshane253 on 9/18/2025* # Description Pass each non-empty line of post-processing script through the placeholder token parser. Many post processing scripts are unaware of the environment variables that are set, and instead provide parameters that should be set to those values. This change lets you use slicer variables with those scripts as written, to help eliminate crashes and other errors caused by mismatched parameters. - Uses the existing placeholder parser used by the filename format setting - Tooltip and wiki updated # Screenshots/Recordings/Graphs <img width="433" height="225" alt="image" src="https://github.com/user-attachments/assets/91cb800d-8422-430a-949d-37d26d987fa1" alt="a screenshot of the post-processing setting and tooltip in orcaslicer, showing off this new feature with a -layerHeight parameter followed by a layer_height in braces." /> ## Tests - [x] {layer_height} on windows
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#2153