rgomezjnr / GcodeFilenameFormatPlus

Cura plugin for controlling output filename format, now with multi-extruder and OctoPrint support
https://marketplace.ultimaker.com/app/cura/plugins/rgomezjnr/GcodeFilenameFormatPlus
GNU Lesser General Public License v3.0
30 stars 4 forks source link

Feature Request: Lower case filename #12

Open jonathanfoster opened 2 years ago

jonathanfoster commented 2 years ago

First of all, thanks for building this plugin, it was such a pain manually formatting filenames without it.

Would it be possible to lower case the filename? I like to use snake case when naming my files (e.g., bed-level-calibration-abs.gcode), but the format options like filament are in upper case so it ends up naming the file bed-level-calibration-abs.gcode.

The syntax could be something like this:

lower([base_name]-[material])  # bed-level-calibration-abs.gcode

Or you could just lower individual tokens:

lower([base_name])-[material]  # bed-level-calibration-ABS.gcode

Thanks again for putting together this plugin.

rgomezjnr commented 2 years ago

Hi @jonathanfoster. Sorry just saw this issue.

Can you try making this change on line 109 of GcodeFilenameFormatPlus.py:

self._print_information._job_name = file_name.lower()

You can open the Cura configuration folder that contains the GFF+ plugin files by selecting Help -> Show Configuration Folder while Cura is running. You need to restart Cura for the change to take effect.