#SOLVED: Can someone help me understand why this syntax isn't working for the Filename Format output?

1 messages · Page 1 of 1 (latest)

muted drift
#

{input_filename_base}{filament_type[initial_tool]}{nozzle_diameter}{used_filament_g}{print_time}.gcode

supple yarrow
#

maybe because that is a Prusa slicer filename syntax.?
Orca slicer doesn't add nozzlesize to the name automaticaly etc

fleet steeple
#

note: use backticks ` for code blocks to preserve formatting {input_filename_base}_{filament_type[initial_tool]}_{nozzle_diameter}_{used_filament_g}_{print_time}.gcode

#

probably failing because nozzle_diameter isn't a valid placeholder variable in Orca

muted drift
#

is there a list of valid placeholder somewhere?

spare jungle
muted drift
#

sweet I jusst found it, lol.

paper agate
#

used_filament_g is either wrong or doesn't exist at all
here is the correct syntax
[input_filename_base]_[filament_type]_[initial_tool]_[nozzle_diameter]_[used_filament]_[print_time].gcode

not sure why orca uses curly brackets by default in the output name since it causes confusions

muted drift
#

Appreciate all the help. This code works. But it displays the filament in meters. If there a way to display grams? Its nit-picky, I know, lol.

#

I think I figured it out. Thanks for all the references and syntax pointers. Appreciate it!

#

I used total_weight for the filament grams

spare jungle
#

SOLVED: Can someone help me understand why this syntax isn't working for the Filename Format output?

paper agate
#

you can also include strings like this for example
[input_filename_base]_[filament_type]_{"["}[initial_tool]{"]"}_[nozzle_diameter]_[total_weight]_[print_time].gcode