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

Create LittleUtilities.py #15860

Closed
wants to merge 5 commits into from
Closed

Create LittleUtilities.py #15860

wants to merge 5 commits into from

Conversation

GregValiant
Copy link
Collaborator

@GregValiant GregValiant commented Jun 22, 2023

Description

This post processor wrapper includes eleven separate post processing "Utilities" as options:

  • Remove all Comments takes out comment lines and any comment that might be within a line. There are options to include the opening paragraph, StartUp Gcode, to leave the LAYER lines, and to include the Ending Gcode.
  • Renumber Layers renumbers the layers in a OneAtATime file to AllAtOnce numbers. There is an option to Revert to OneAtATime. Renumbering gives a user more options for PauseAtHeight and FilamentChange. A side effect is that the gcode file will preview correctly in Cura.
  • Add Extruder End Gcode is a bug fix that will likely be fixed in 5.4 stable. It adds any Ending Gcode of the active extruder to the Ending Gcode of the file. Cura 4.1, does not execute extruder end gcode at end of print #5861 and others.
  • Add Data Header is a debugging tool that splits the data sections and adds a comment as "<<<Start of Data[0[>>>"
  • Lift Head Parking- Adds a move to get the nozzle away from the print while waiting for the G4 to run out.
  • Change Printer Settings- options for changing the Max Feedrate, Max Accel, Home Offsets, and Steps/MM with option to save the settings to the printer (which also updates Cura). Adds M201, M203 and/or M206 and M92 to the end of the StartUp. Can also add M500.
  • Very Cool Fan Path - creates a X indexed zigzag toolpath at the end of a layer to run the print head across the print with just the fan running for extra cooling of support-interfaces, feather edges, etc. Options are the layer(s)(comma delimited), travel speed, and fan %, and a Y indexed zigzag that will effectively double the cooling.
  • Disable ABL for small prints - comments out G29 and M420 lines in the startup if a model is below a user inputted threshold in mm². Feature Request: Conditional Bed leveling #3055
  • Add Data Headers - A debugging to that inserts a long string between the items of the data list. ;<<<<<Data[x]>>>>
  • Add line numbers - Some firmware likes the lines in the gcode to be numbered.
  • One-at-a-Time Final Z - A but fix. This adds a final Z move (to the transit height) to the end of the last model printed to prevent crashes if the last model is shorter than one that might be in line with the park position.

Type of change

  • [ X] Bug fix (non-breaking change which fixes an issue - Extruder Ending Gcode not added to the Ending Gcode)
  • [ X] 3 New features (non-breaking change which adds functionality)

How Has This Been Tested?

  • [X ] With Cura 4.x and 5.x
  • The bug fix is for multi-extruder prints with Cura 5.x

Test Configuration:

  • Operating System: Win10 Home and Marlin

Checklist:

  • My code follows the style guidelines of this project as described in UltiMaker Meta and Cura QML best practices
  • [ X] I have read the Contribution guide
  • [ X] I have commented my code, particularly in hard-to-understand areas
  • [X ] I have uploaded any files required to test this change

@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Jun 22, 2023
4 Utilities as options:
Remove all comments takes out comment lines and any comment that might be within a line.
RenumberOrRevert renumbers the layers in a OneAtATime file to AllAtOnce numbers.  There is an option to revert.  This gives more options for PauseAtHeight and FilamentChange.
Add Extruder End Gcode is a bug fix that will likely be fixed in 5.4 stable.
Add Data Header is a debugging tool that splits the data sections and adds a comment as "<<<Start of Data[0[>>>"

Update LittleUtilities.py

Added "Lieft Head Parking" to move the nozzle away from the print when Lift Head is enabled in Cura.

Revert "Update LittleUtilities.py"

This reverts commit b874c3c.

Update LittleUtilities.py

Added "Lift Head Retract and Prime

Update LittleUtilities.py

Update LittleUtilities.py

Add Change Printer Settings post processor to change the Max Feedrate, Max Accel, and Home Offsets.

Update LittleUtilities.py

Update the Cura settings when M500 is selected.

Update LittleUtilities.py

Add Change Steps/MM

Update LittleUtilities.py

Add "Fan-Only ToolPath"

Update LittleUtilities.py

Add multi-line support to Fan-Only Toolpath
Added Disable ABL if the model is smaller than a user selected area.

Update LittleUtilities.py

Updated "Very Cool" to accept multiple ranges of layers.

Update LittleUtilities.py

Changed upper case letters in variable names to lower case.
Changed some concatenations to templates.
Removed some code from "Renumber Layers" that joined the extra data items that occur at model change in One at a Time prints.  Changes to Advanced Fan Cooling negated the necessity.
Split the single drop down list into separate checkboxes for each utility.  A user can run more than one at a time.
@GregValiant GregValiant marked this pull request as draft December 17, 2023 13:21
@GregValiant GregValiant deleted the LittleUtilities branch December 19, 2023 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Community Contribution 👑 Community Contribution PR's
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant