-
Notifications
You must be signed in to change notification settings - Fork 87
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
both extruder_colour and filament_colour are preprocessed #290
Comments
extruder_colour and filament_colour would appear to be being merged into TOOL_COLORS.
Does it make a difference if you explicitly specify a colour for each extruder in superslicer? |
Moonraker.log from processing file: 2024-05-09 14:22:01,492 [shell_command.py:pipe_data_received()] - INFO:metadata:Object Processing is enabled 2024-05-09 14:22:01,510 [shell_command.py:pipe_data_received()] - INFO:metadata:File 'FromSS.gcode' currently supports cancellation, processing aborted 2024-05-09 14:22:01,610 [shell_command.py:pipe_data_received()] - INFO:metadata:mmu_server: Pre-processing file: /home/voron/printer_data/gcodes/ERCRFv2/FromSS.gcode 2024-05-09 14:22:02,027 [shell_command.py:pipe_data_received()] - INFO:metadata:Reading placeholders took 0.41s. Detected gcode by slicer: superslicer 2024-05-09 14:22:02,359 [shell_command.py:pipe_data_received()] - INFO:metadata:mmu_server: Writing MMU placeholders,Inserting next position to tool changes took 0.33s 2024-05-09 14:22:02,425 [shell_command.py:_check_proc_success()] - Command (/home/voron/moonraker-env/bin/python /home/voron/moonraker/moonraker/components/mmu_server.py -m -n -p /home/voron/printer_data/gcodes -f "ERCRFv2/FromSS.gcode" --check-objects) successfully finished |
I don't know where to find HH version, but I installed it a couple days ago. Hopefully it hasn't changed much. git branch --show-current SS version is in the GCODE. HH unfortunately isn't. |
Issue reproduced. Quick work around until its fixed is to define a colour for all extruders to ensure Im not the HH maintainer but will have a look at this over the weekend. Presume |
I'm back! |
@moggieuk because |
Ah, I see. So I think the correct code would be to have the correct size list but only set values for the non-null items. Let me look at this... |
@ningpj would you mind running a test for me... Change this line in Then try your problematic test case. I think this is what I meant but don't have SuperSlicer to test. |
Actually, I'm not sure this is correct either... filament color is the array of colors for each of the defined filament. I think that the logic should be:
Does that make sense? I've never understood why the slicer needs the two colors..? I think that filament color will always be set but you could reuse a filament definition for different colors in multiple extruders, hence the need for extruder_colour to override. Does this thinking make sense? If so I can code that.. |
Ok. I created a fix based on my last comment. It's available in the To jump back to main branch: Please can you let me know if this works. I does make the assumption that |
need to correct a small python syntax error - should be |
Thanks. I tested in a separate program and the code was |
It was likely working ok but was triggering new syntax checks introduced in the python 3.8+ compiler (https://docs.python.org/3.8/library/exceptions.html#SyntaxWarning) when identity checks (is and is not) are used with certain types of literals (e.g. strings, numbers). Tidies up the moonraker.log though so |
I had a print fail, so I installed the patch and it worked. thanks |
Awesome! I'll push it to the "main" branch. You will need to reset back to that... |
I'm using super slicer.
Start G-code:
MMU_START_SETUP INITIAL_TOOL={initial_tool} REFERENCED_TOOLS=!referenced_tools! TOOL_TEMPS=!temperatures! TOOL_MATERIALS=!materials! PURGE_VOLUMES=!purge_volumes! TOOL_COLORS=!colors!
Exported G-Code before Pre-Processing:
MMU_START_SETUP INITIAL_TOOL=1 REFERENCED_TOOLS=!referenced_tools! TOOL_TEMPS=!temperatures! TOOL_MATERIALS=!materials! PURGE_VOLUMES=!purge_volumes! TOOL_COLORS=!colors!
Pre-Processed Gcode (errors):
MMU_START_SETUP INITIAL_TOOL=1 REFERENCED_TOOLS=1 TOOL_TEMPS=250,250,250,210,210,210,210,210 TOOL_MATERIALS=ABS,ABS,ABS,PLA,PLA,PLA,PLA,PLA PURGE_VOLUMES=0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0,140,140,140,140,140,140,140,140,0 TOOL_COLORS=000000,FF0000,,,,,,,707070,707070,707070,707070,707070,707070,707070,707070
Additional settings from gcode file:
; extruder_colour = #000000;#FF0000;;;;;;
; filament_colour = #707070;#707070;#707070;#707070;#707070;#707070;#707070;#707070
it is including both, then HH fails to run. I have to edit the processed Gcodes to remove the filament_colour.
why are both included?
The text was updated successfully, but these errors were encountered: