mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	GCode Preview - Customizable extrusion role colors by editing 3DPreview.pm
This commit is contained in:
		
							parent
							
								
									3f006dc11a
								
							
						
					
					
						commit
						f4522cd2fc
					
				
					 6 changed files with 87 additions and 0 deletions
				
			
		|  | @ -233,6 +233,24 @@ sub new { | |||
|      | ||||
|     # init canvas | ||||
|     $self->print($print); | ||||
|      | ||||
|     # sets colors for gcode preview extrusion roles | ||||
|     my @extrusion_roles_colors = ( | ||||
|                                     'Perimeter'                  => 'FF0000', | ||||
|                                     'External perimeter'         => '00FF00', | ||||
|                                     'Overhang perimeter'         => '0000FF', | ||||
|                                     'Internal infill'            => 'FFFF00', | ||||
|                                     'Solid infill'               => 'FF00FF', | ||||
|                                     'Top solid infill'           => '00FFFF', | ||||
|                                     'Bridge infill'              => '7F7F7F', | ||||
|                                     'Gap fill'                   => 'FFFFFF', | ||||
|                                     'Skirt'                      => '7F0000', | ||||
|                                     'Support material'           => '007F00', | ||||
|                                     'Support material interface' => '00007F', | ||||
|                                     'Wipe tower'                 => 'B3E3AB', | ||||
|                                  ); | ||||
|     $self->print->set_gcode_extrusion_paths_colors(\@extrusion_roles_colors); | ||||
|      | ||||
|     $self->reload_print; | ||||
|      | ||||
|     return $self; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri