Giter Site home page Giter Site logo

cura-customjobprefix's People

Contributors

fieldofview avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cura-customjobprefix's Issues

Add postfix options

Cura can only add a prefix to the job name. It would be nice if the plugin could add a postfix too.

date_year is truncated to two digits

I chose this config option:
Prefix: {date_year}-{date_month}-{date_day}

Expected path:
2020-06-29_test.gcode

Actual path:
20-06-29_test.gcode

Please use full-length 4-digit year representations.
The 90's called, they want to work on the Y2K problem again 😄

Request: add Cura version tag

Is it possible to add a Cura version tag to the naming convention ? {cura_version}

This because of testing purposes and identification when using more then one Cura version to overcome some slicing bugs that are not in older version ?

Thanks in advance.

Add {profile_name} as a replacement pattern

Would it be possible to add {profile_name} to the list of available replacement patterns? I don't like the way that Cura handles materials, so I use profiles for everything, so I have a profile name that probably already resembles the prefix that you are adding. I now am adding it manually when I save my files, but doing it automatically would be a huge benefit.

Thank you!

Using Cura 5.2.1 and its grabbing the 0's before and after the decimals

Its not a big deal unless you grab infill. 10 % infill shows as 100 in the file name.
it does this for all the parameters I am grabbing.
here is a file name example I have:
Vandy_skullfinal_.012Lay_.04Noz_100In_78G_11H_26M
Machine name_model_layerheight should be .12 not .012_again the Zero, its a .4 nozzle not a .04_ 10 percent infill but says its 100, the rest is great.

Base name gets removed when there's a ; in it

I found another bug, I'll upload a screenshot, the original STL was named Case1;2 which I suspect would be because of the ; but when I save the Gcode it removes the actual name of it and just puts the prefix
85191758-5d4fb500-b303-11ea-9706-545716f3855a
Here is my prefix I used for it {print_time_hours},{print_time_minutes}. and no postfix

Add many more values

The last days I experimented with the different flow settings and put the values in the filenames by hand.

image

So this plugin comes in really handy.

But I would like to have more (all?) values to be able to put in the prefix when I experiment with other settings.

add 4-digit year variable

I would like to use a 4-digit year variable.

In fact I think this should be the default for {date_year}.
Bit I don't want to argue if the existing variable should be changed. 😉

add option for multiple prefix definitions

It would be nice if you could save more than one prefix definition and change between them.

So you could have one prefix definition for your standard projects.
And one (or more) when you experiment with your settings. (see #10 )

A simple solution could be to have two (or more) text fields with radio buttons in front of them to select the current prefix definition.

(just a quick mockup):

image

Add temperature and length

Hi!
I'm finding this plugin very handy, but I'm missing having those two values on my filenames.
Could it be added in future releases?
Thank you very much.

Does not work with Plugin created models like Calibration Shapes...

I am facing that the plugin dies not work if I add a model by a plugin like "Calibration Shapes" by Saxes. The placeholders seems not evaluated and so I have to set the path manually.

PrintJob Naming: 3.7.0
Cura: 5.0.0

See screenshots:
image
image
image

Path and Filename are not parsed:
image

Request: flow variable to have 3 spaces option

The {material flow} option doesn't include a leading 0 if less than 100. So, 98% is displayed as 98. When sorting by alpha, that puts it after of something like 101 because 1 is less than 9, but I'd like it to by the whole number value. A preceding 0 makes it compare 098 vs 101 and the 98% would come first.

If path contains trailing / it results in double-slash

I chose these config options:
Prefix: {printer_name_full}
Postfix: {date_year}-{date_month}-{date_day}
Path: foo/

Expected path:
foo/LittlePrinter_test_20-06-29.gcode

Actual path:
foo//LittlePrinter_test_20-06-29.gcode

While double-slashes might be handled without problems on most systems, especially embedded platforms will throw an error in this case.

More Options Scale in percent?

Hi! I use your plugin for a while now. I print custom costume parts that often needs to be scaled. Most of the time I forgot the scale of the last print. Is it possible to add the scale in percent to the postfixes?

2 digits for minutes

Nice plugin, thanks for it.
Just a suggestion: having {print_time_minutes} in "2 digits" format would be nice

I did a test with
"{print_time_minutes}": str(self._print_information.currentPrintTime.minutes).zfill(2),
and it seems to be fine...

How to change _ to something else

I want to know how to change _ between the prefix and job name to something smaller like . or ,
Anyone know how I can do this?

e.g. 1hr38min_Benchy -> 1hr38min.Benchy

Printer name is set to "undefined" in dialogue for 4.4

The printer name is undefined in Cura 4.4. It says "to use for printer undefined".

Screenshot from 2019-11-08 16-02-58

This was not an issue yet in Cura 4.3.

The actual {printer_name} key seems to properly get replaced with YODA, which is my printer's name, so there it works.

Can't change the name template in settings?

image

Having an issue with customizing print job names in that there isn't actually interact with any text fields? I can modify the options, but there isn't anyplace to type in the template. I am running Cura 5.3.1.

Leading space in postfix gets removed after project open

Hey there,

I've recently found that if I insert a space before the postfix pattern, that space gets removed (both from the project name, and the extension's settings) when a new project is opened (i.e. via opening a .3mf and picking the 'Open as Project" option.

My extension configuration is:
Prefix: (none)
Postfix: " {printer_type}" (ignore the quotes, they're just so you can see the space I put in)
Path: (none)

Enable prefix and postfix - Yes
Add '_' between jobname parts - No
Sanitise jobname parts - No

Any help with or resolution of this issue would be much appreciated!

Prefix is not changed in Cura 3.6 or 4.0

When changing the prefix, the actual job name of the slice is not changed accordingly. These are my reproduction steps:

  1. Go to Extensions -> Custom printjob prefix -> Set prefix
  2. Change the prefix to {layer_height}x and confirm the dialogue.
  3. Load a model (in my case "cube.stl")

Expected result:

  • Print job is called 0.1x_cube.

Actual result:

  • Print job is still called UMS5_cube.

This only reproduces in Cura 3.6 and 4.0. In 4.1+ it works fine. In 3.5 it crashes as per #4.

Double Prefix on saving files since upgrade to latest

I’ve just updated the plugin to the latest version, now when I save a file that already has a prefix on it, the extension is adding it again.

For example I have a the prefix on my printer set as “CR10S” and a file called "CR10S_Skull_Small_30mm.3mf”, when I come to save the file the extension is now adding CR10S_ again so the file name is CR10S_CR10S_Skull_Small_30mm.3mf” this didn’t use to be the case with the old version.

I went in to the settings and re-Typed in the prefix of CR10S but it still happens, I’m using Cura under macOS Catalina.

Request: Default filetype?

Would it be possible to add a feature to this plugin that would let you set the default exported filetype in Cura?

Default Cura doesn't seem to have the option and I initially (wrongly) assumed that's what postfix was supposed to do.

I understand now that it isn't, but thought it would fit the function of this plugin quite nicely. Do you think you would be willing to implement functionality which would set the Cura default "Save As" filetype so you could select gcode, ufp, x3g, etc?

I notice the X3G plugin somehow manages to do this, but I can't pin down how. I really just want to be able to save my files in UFP format for Klipper/Octoprint, and I don't like the Octoprint integration, and it's annoying to constantly have to change the filetype every time I save something.

Add the Nozzle size

Hello,
Can you also add the possibility to add the nozzle size in the filename ?

Thank you.

Critical error in cura-git-4.8.0.r350.gfa4d1ba1fb

After this commit in cura git, critical error:

SHA-1: fa4d1ba1fbe4685dbab21825c7fa0bcbdc889b36, &Номер ревизии ветви: 5022

Don't strip accents from job name

No idea why this was there in the first place. Our archeology attempts couldn't
find out as to why it was introduced. We suspect an issue with other Qt versions.

At least now ロボット.stl will not be mangled into ロホット.gcode upon saving (and
german bears into bars)

Traceback (most recent call last): File "C:/Users/name/AppData/Roaming/cura/4.8/plugins/CustomJobPrefix/CustomJobPrefix/PrintInformationPatches.py", line 120, in _triggerJobNameUpdate self._updateJobName() File "C:/Users/name/AppData/Roaming/cura/4.8/plugins/CustomJobPrefix/CustomJobPrefix/PrintInformationPatches.py", line 129, in _updateJobName base_name = self._print_information._stripAccents(self._print_information._base_name) AttributeError: 'PrintInformation' object has no attribute '_stripAccents'

Cropped checkbox setting in macOS

image

I can't seem to resize the window too. I can check and uncheck it. however, i cannot see the text. I know it's related to the underscore because I see it in windows.

Add infill and print speed

Hello,
As talked on reddit, here is an issue for adding infill and print speed in available variable.

Thanks again for this plugins, it's very usefull.

Request - leading zero and print temps

Could you please add the ability to add a leading zero if the value is below a certain point? For material flow, sometimes it's 99 or less and sometimes it's 100 or greater. Computers will sort the 100 before the 99 even though to us, the 99 should come first. A leading zero, 099, would solve that.

Also, can you please add print temperature to the variables?

For context, I name my files "thing t### f###", example: "cube t215 f099"

Cura 3.5.1 crashes when opening dialogue

This plug-in makes Cura 3.5.1 crash when opening the dialogue to change the prefix. Reproduce steps:

  1. Go to Extensions -> Custom printjob prefix -> Set prefix.

Cura then crashes with the following error in the log:

2019-11-08 16:09:17,845 - ERROR - [MainThread] UM.Qt.QtApplication.createQmlComponent [507]: file:///home/cherubim/.local/share/cura/3.5/plugins/CustomJobPrefix/CustomJobPrefix/PrefixDialog.qml:10:1: module "Cura" version 1.1 is not installed
2019-11-08 16:09:17,849 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [65]: An uncaught error has occurred!
2019-11-08 16:09:17,851 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]: Traceback (most recent call last):
2019-11-08 16:09:17,853 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/build/3.5/build/inst/lib/python3.5/site-packages/UM/Qt/Bindings/ExtensionModel.py", line 51, in subMenuTriggered
2019-11-08 16:09:17,855 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/build/3.5/build/inst/lib/python3.5/site-packages/UM/Extension.py", line 38, in activateMenuItem
2019-11-08 16:09:17,856 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:   File "/home/cherubim/.local/share/cura/3.5/plugins/CustomJobPrefix/CustomJobPrefix/CustomJobPrefix.py", line 46, in showNameDialog
2019-11-08 16:09:17,858 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]:     self._create_profile_window.show()
2019-11-08 16:09:17,860 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [68]: AttributeError: 'NoneType' object has no attribute 'show'

I think you might need to import a lower version of Cura in your QML?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.