Jump to content

Plugin to Change a Setting at a certain Z.


Go to solution Solved by Slashee_the_Cow,

Recommended Posts

Posted · Plugin to Change a Setting at a certain Z.

There are quite a few things under post processing that will change many settings at a certain Z.  They make temp towers and what not.  All cool stuff.

 

I made my own printer.  It has some interference at higher Z w.r.t. wiping.  I'd like to be able to turn wiping off at layer 50.  It seems that it would be cool if an arbitrary setting could be modified at a certain Z ... so that's what I'm asking for.

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    How much of a change needs to be made? Do you just need to insert a gcode command at layer 50, or do you need to remove a wiping command from every layer above 50, or... what?

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    I don't know internals, but there is a checkbox for wiping.  I suppose you could remove it's effect for every layer above 50.  Is that an easier ask?

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    I just took a moment to download the gcode file to my workstation ... it looks like that idea is possible:

     

     

    ;LAYER:50
    ;WIPE_SCRIPT_BEGIN
    G0 X250 Y35.322
    G0 X270 Y35.322
    G0 X250 Y35.322
    G0 X270 Y35.322
    G0 X250 Y35.322
    G0 X270 Y35.322
    G0 X72.326 Y35.322
    G1 F1500 E2.54158
    ;WIPE_SCRIPT_END

     

    ... so yes... looks possible.

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    Ah, so you have Experimental > Wipe Nozzle Between Layers turned on? Looks like something it wouldn't be too hard (always famous last words) to whip up a post-processor to remove above a certain layer. Just.. not at 12:30 at night. Later today though I'll look it.

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    Thanks!  I'll look forward to trying this out!

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    I was thinking about this and it could also be managed by a layer-by-layer take to regular expressions or whatnot.  Having had a look at the G-code, I can definitely envision a python script to do it, even reading the layer numbers --- but having a plugin preserves the print-button feature.

  • Link to post
    Share on other sites

    • Solution
    Posted · Plugin to Change a Setting at a certain Z.

    So, I'm sorry it's not a plugin, just a post-processing script... but on the bright side that means it's just a single Python file so you can mess with it if you want. Although if you need regexes to control your wiping you may want to see a doctor about that.

     

    Just put the Python file inside the zip file (can't upload .py files) into Scripts subfolder of your Cura configuration folder, restart Cura and then add it in the post-processing settings.

    StopWipingAtZ.zip

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    It's close ... I can work with that, but to be completely pedantic about it, setting the layer to 250 makes it stop wiping on 249.  🤔

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.
    6 hours ago, zBeeble said:

    It's close ... I can work with that, but to be completely pedantic about it, setting the layer to 250 makes it stop wiping on 249.  🤔

    In theory, it's going by layer number in the Cura preview, which starts at 1, but in the gcode the layers start at 0, so I subtract one from the value you put in the settings (because what the Cura preview says is layer 250 is labelled layer 249 in the gcode, but it is in actuality the 250th layer).

     

    I can change it if you want. Whenever I do a script for someone I always want to have a happy customer.

  • Link to post
    Share on other sites

    Posted · Plugin to Change a Setting at a certain Z.

    No... it's obviously fine.  heh.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Like
        • 2 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...