Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. johnday29
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    johnday29

    @johnday29

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    johnday29 Unfollow Follow

    Latest posts made by johnday29

    • RE: Multi color/part sign with Prusa slicer

      @fotomas Any luck with writing the macro? I would be interested. Thanks

      posted in Third-party software
      johnday29undefined
      johnday29
    • RE: Creating vitual tools for color change

      @Jacotheron said in Creating vitual tools for color change:

      #! /usr/bin/python3-64 # duet_toolchange-strip.py import fileinput import re import sys #first we define our regular expressions for a match extruder_0_pattern = re.compile('^T0') #the first of this is kept extruders_other_pattern = re.compile('^T([0-9])+') # match any extruder number (if you define 100, in PS, you can use all 100 or even more) empty_line = re.compile('^$') #we are stipping empty lines temp_set = re.compile('^M109 S([0-9]+)') #match the deprecated way to set a temperature temp_set_2 = re.compile('^M104 S([0-9]+)') #match second deprecated way to set temperature acceleration = re.compile('^M204 S([0-9]+)') #convert to Duet acceleration set #this variable to is to ensure it still work for single extruder prints print_have_started = 0 for line in fileinput.input(inplace=True): if extruders_other_pattern.match(line): if (extruder_0_pattern.match(line) and print_have_started == 0): print(line.rstrip("\n")) #we keep the Tool as is. continue else: print_have_started = 1 m = extruders_other_pattern.match(line) extruder_nr = m.group(1) print('M291 R"Tool Change" P"Tool #%s " S1 T30\nM600' % extruder_nr) continue else: if not empty_line.match(line): if temp_set.match(line): m = temp_set.match(line) print("G10 P0 S%s" % m.group(1)) continue if temp_set_2.match(line): #void we don't want or need this line. m = temp_set_2.match(line) print("G10 P0 S%s" % m.group(1)) continue if acceleration.match(line): m = acceleration.match(line) print("M204 P%s" % m.group(1)) continue print(line.rstrip("\n")) #this is the default - we keep the line as is, if it is not empty

      Thanks a lot, this works great. I am not very gifted in programing but was wondering if there was a way to have the script add in an automatic unload command with each pause? Also possibly a automatic hotend cool down to off (temp not cancel the print), if print is not resumed in say 5 minutes. Just in case I am not able to get to it in time to swap filament right away. This is what my Prusa Mk3s does when running manual filament changes.

      posted in General Discussion
      johnday29undefined
      johnday29
    • RE: First layer color printing with single extruder

      Any chance you have the exact script your using or would be willing to walk me through the set up or even a prusasilcer config.ini file would be amazing.

      posted in 3D Printing General Chat
      johnday29undefined
      johnday29