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.

    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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...