Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Lower case filename #12

Open
jonathanfoster opened this issue Aug 1, 2022 · 1 comment
Open

Feature Request: Lower case filename #12

jonathanfoster opened this issue Aug 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jonathanfoster
Copy link

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
Copy link
Owner

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.

@rgomezjnr rgomezjnr added the enhancement New feature or request label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants