X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=scripts%2Frecreate_lulzbot_profiles.py;h=981b50f00d464d3f7a027c2d6421df9bfaa52c64;hb=730e8f2c1c8dfc9498a1b416cc398606f60940c3;hp=1f60962237c1a6ebd9d65f553d0ec13f2e535b55;hpb=76995a199096fefbf2aff35ece139c161b2ca1ab;p=cura.git diff --git a/scripts/recreate_lulzbot_profiles.py b/scripts/recreate_lulzbot_profiles.py index 1f609622..981b50f0 100644 --- a/scripts/recreate_lulzbot_profiles.py +++ b/scripts/recreate_lulzbot_profiles.py @@ -37,6 +37,7 @@ dir_map = { 'lulzbot_TAZ_5_FlexyDuallyV1'), 'TAZ_flexy_dually_v2': ('lulzbot_TAZ_4_FlexyDuallyV2', 'lulzbot_TAZ_5_FlexyDuallyV2'), + 'TAZ6_single_tilapia': ('lulzbot_TAZ_6_SingleTilapia',), } material_map = { @@ -57,6 +58,7 @@ material_map = { "Laywood": "laywood", "n-vent": "n-vent", "XT": "XT", + "INOVA-1800": "CS-INOVA-1800", "PCTPE": "PCTPE", "PC-ABS": "PC-ABS", "T-Glase": "t-glase", @@ -103,11 +105,12 @@ material_order = { "Laywood": 52, "n-vent": 53, "XT": 54, - "PCTPE": 55, - "PC-ABS": 56, - "T-Glase": 57, - "Bronzefill":58, - "Copperfill":59, + "INOVA-1800": 55, + "PCTPE": 56, + "PC-ABS": 57, + "T-Glase": 58, + "Bronzefill":59, + "Copperfill":60, # Expert "PP-Conductive": 500, "HIPS_VP" : 501, @@ -144,6 +147,7 @@ material_types = { "Laywood": "Advanced", "n-vent": "Advanced", "XT": "Advanced", + "INOVA-1800": "Advanced", "PCTPE": "Advanced", "PC-ABS": "Advanced", "T-Glase": "Advanced", @@ -177,19 +181,20 @@ material_names = { "Laybrick" : "Laybrick (CC-Products)", "PP-Iron": "Magnetic (Proto-pasta)", "PP-Steel": "Steel PLA (Proto-pasta)", - "Bamboofill": "Bamboofill (Colorfabb)", - "Woodfill": "Woodfill (Colorfabb)", + "Bamboofill": "Bamboofill (colorFabb)", + "Woodfill": "Woodfill (colorFabb)", # Advanced "Alloy910": "Alloy 910 (Taulman)", "Bridge": "Bridge Nylon (Taulman)", "Laywood": "Laywoo-D3 (CC-Products)", "n-vent": "n-vent (Taulman)", - "XT": "XT (Colorfabb)", + "XT": "XT (colorFabb)", + "INOVA-1800": "INOVA-1800 (ChromaStrand)", "PCTPE": "PCTPE (Taulman)", "PC-ABS": "PC-ABS (Proto-pasta)", "T-Glase": "t-glase (Taulman)", - "Bronzefill": "Bronzefill (Colorfabb)", - "Copperfill": "Copperfill (Colorfabb)", + "Bronzefill": "Bronzefill (colorFabb)", + "Copperfill": "Copperfill (colorFabb)", # Expert "PP-Conductive": "Conductive (Proto-pasta)", "HIPS_VP" : "HIPS (Village Plastics)", @@ -215,6 +220,7 @@ bed_prep_materials = { "Bridge", "n-vent", "XT", + "INOVA-1800", "PCTPE", "T-Glase", "618-Nylon", @@ -224,43 +230,43 @@ bed_prep_materials = { material_url = { # Beginner - "HIPS_eSUN": "www.lulzbot.com/products/hips-3mm-filament-1kg-reel-esun", - "PLA_eSUN": "www.lulzbot.com/products/pla-3mm-filament-1kg-or-500g-reel-esun", - "PLA_VP": "www.lulzbot.com/products/pla-3mm-filament-1kg-reel-village-plastics", + "HIPS_eSUN": "lulzbot.com/store/filament/hips-esun", + "PLA_eSUN": "lulzbot.com/store/filament/pla-esun", + "PLA_VP": "lulzbot.com/store/filament/pla-village", # Intermediate - "ABS_VP": "www.lulzbot.com/products/abs-3mm-filament-1kg-reel", - "Laybrick" : "www.lulzbot.com/products/laybrick-filament-3mm", - "PP-Iron": "www.lulzbot.com/products/magnetic-iron-pla-3mm-filament-500g-reel-proto-pasta", - "PP-Steel": "www.lulzbot.com/products/stainless-steel-pla-3mm-filament-500g-reel-proto-pasta", + "ABS_VP": "lulzbot.com/store/filament/abs", + "Laybrick" : "lulzbot.com/store/filament/laybrick", + "PP-Iron": "lulzbot.com/store/filament/magnetic-iron-pla", + "PP-Steel": "lulzbot.com/store/filament/stainless-steel-pla", # "Bamboofill": "", # "Woodfill": "", # Advanced - "Alloy910": "www.lulzbot.com/products/alloy-910-3mm-filament-1lb-reel-taulman", - "Bridge": "www.lulzbot.com/products/taulman-bridge-nylon-3mm-filament-1-pound", - "Laywood": "www.lulzbot.com/products/laywoo-d3-cherry-laywood-3mm-250g-coil-cc-products", - "n-vent": "www.lulzbot.com/products/n-vent-3mm-filament-1lb-taulman", + "Alloy910": "lulzbot.com/store/filament/alloy-910", + "Bridge": "lulzbot.com/store/filament/bridge-nylon", + "Laywood": "lulzbot.com/store/filament/laywoo-d3-laywood", + "n-vent": "lulzbot.com/store/filament/n-vent", # "XT": "", - "PCTPE": "www.lulzbot.com/products/taulman-pctpe-3mm-filament-1-pound", - "PC-ABS": "www.lulzbot.com/products/pc-abs-alloy-3mm-filament-500g-reel-proto-pasta", - "T-Glase": "www.lulzbot.com/products/t-glase-3mm-filament-1lb-reel", + "PCTPE": "lulzbot.com/store/filament/pctpe", + "PC-ABS": "lulzbot.com/store/filament/pc-abs-alloy", + "T-Glase": "lulzbot.com/store/filament/t-glase", # "Bronzefill": "", # "Copperfill": "", # Expert - "PP-Conductive": "www.lulzbot.com/products/conductive-pla-3mm-filament-500g-reel-proto-pasta", - "HIPS_VP" : "www.lulzbot.com/products/hips-3mm-filament-1kg-or-5lb-reel-village-plastics", - "PC_VP": "www.lulzbot.com/products/polycarbonate-3mm-filament-1kg-reel", - "618-Nylon": "www.lulzbot.com/products/taulman-618-nylon-3mm-filament-1-pound", - "645-Nylon": "www.lulzbot.com/products/taulman-645-nylon-3mm-filament-1-pound", + "PP-Conductive": "lulzbot.com/store/filament/conductive-pla", + "HIPS_VP" : "lulzbot.com/store/filament/hips", + "PC_VP": "lulzbot.com/store/filament/polycarbonate", + "618-Nylon": "lulzbot.com/store/filament/nylon-618", + "645-Nylon": "lulzbot.com/store/filament/nylon-645", # Dual extruder (Expert) - 'ABS_ABS': "www.lulzbot.com/products/abs-3mm-filament-1kg-reel", - 'PLA_PLA': "www.lulzbot.com/products/pla-3mm-filament-1kg-or-500g-reel-esun", - 'PLA_PVA': "www.lulzbot.com/products/natural-pva-3mm-filament-05kg-reel-esun", + 'ABS_ABS': "lulzbot.com/store/filament/abs", + 'PLA_PLA': "lulzbot.com/store/filament/pla-esun", + 'PLA_PVA': "lulzbot.com/store/filament/natural-pva", # Flexystruder (Expert) - "ninjaflex" : "www.lulzbot.com/ninjaflex", - "semiflex" : "www.lulzbot.com/products/semiflex-tpe-thermoplastic-elastomer-3mm-075kg", + "ninjaflex" : "lulzbot.com/store/filament/ninjaflex", + "semiflex" : "lulzbot.com/store/filament/semiflex", # Flexy Dually (Expert) - "ABS_ninjaflex" : "www.lulzbot.com/ninjaflex", - "ABS_semiflex" : "www.lulzbot.com/products/semiflex-tpe-thermoplastic-elastomer-3mm-075kg", + "ABS_ninjaflex" : "lulzbot.com/store/filament/ninjaflex", + "ABS_semiflex" : "lulzbot.com/store/filament/semiflex", } profile_map = { @@ -327,7 +333,8 @@ def create_machine_type(machine_type, path, dir): Apply a PVA-based glue stick \n\ to bed surface before printing.\n") if material_url.has_key(material): - f.write("url = %s\n" % material_url[material]) + referer = "?pk_campaign=software-cura" + f.write("url = %s%s\n" %(material_url[material], referer) ) with open(os.path.join(path, material, profile, 'profile.ini'), 'w') as f: f.write("[info]\n") f.write("name = %s\n" % profile_map[profile])