Adding temperature at a specific layer using the Preview window
 
Benachrichtigungen
Alles löschen

[Gelöst] Adding temperature at a specific layer using the Preview window  

  RSS
Aleksandar Lazarov
(@aleksandar-lazarov)
New Member
Adding temperature at a specific layer using the Preview window

Hey Prusa comunity,

I am working on a project using a dual-extrusion system and I want to insert a custom G-code commands for turning the secondary extuder on and off (basically set it either the normal operation temperature or to 0 degrees). I use the M104 command as follows:

off = M104 T1 S0
on = M104 T1 S{temperature[1]}

I tried doing it through the Preview window and for tuning off works great! However, to turn it back on, Prusa directly copy pastes the command without replacing the variable "temperature", as shown in the picture below. When used in the custom G-code panel for the 3D printer setup, it works fine. I am using PrusaSlicer 2.4.0

When used in the "before layer change" custom G-code menu, it works fine.

My question is - is the preview window not capable of working with variables and I have to manually type the temperature?

Best Answer by Neophyl:

Correct, the layer preview window is only there after you have sliced , at that point the gcode is already generated. All it’s doing is inserting what is inside the field. 
You could open a new feature request to get that changed on the PS GitHub. 

Veröffentlicht : 08/04/2023 3:02 pm
Neophyl
(@neophyl)
Illustrious Member
RE: Adding temperature at a specific layer using the Preview window

Correct, the layer preview window is only there after you have sliced , at that point the gcode is already generated. All it’s doing is inserting what is inside the field. 
You could open a new feature request to get that changed on the PS GitHub. 

Veröffentlicht : 08/04/2023 3:11 pm
Aleksandar Lazarov
(@aleksandar-lazarov)
New Member
Themenstarter answered:
RE: Adding temperature at a specific layer using the Preview window

I see, thank you for the super fast response! <3
I will go do that. 🙂

Veröffentlicht : 08/04/2023 3:16 pm
Teilen: