Welcome! Log In Create A New Profile

Advanced

Slic3r Conditional G-Code fail

Posted by scumari 
Slic3r Conditional G-Code fail
October 19, 2024 03:21AM
Hi
I am trying to get the following condition working:
{if [layer_num] == 0}{if [next_extruder] == 1}G1 E16 F1200
It seems that layer_num is always zero!
What can be wrong here?

Thanks in advance, Rick


Check [www.scumari.nl]
VDX
Re: Slic3r Conditional G-Code fail
October 20, 2024 04:55PM
... check where or if [layer_num] is updated or use the correct variable, if it's different.

Forgot -- is it the correct scope? otherwise you wouldn't get updates ...

Edited 1 time(s). Last edit at 10/20/2024 04:57PM by VDX.


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: Slic3r Conditional G-Code fail
October 21, 2024 02:09AM
Thank you, [layer_num] variable not in 'Tool change G-Code' scope.


Check [www.scumari.nl]
VDX
Re: Slic3r Conditional G-Code fail
October 21, 2024 03:04AM
... it's not a proper style, but you can try with declaring it "globally" ... or search, if you find another methode to get the updates through ...


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Sorry, only registered users may post in this forum.

Click here to login