@Slashee_the_Cow Thanks for the feedback.
9 hours ago, Slashee_the_Cow said:You can't use functions when writing these things, just statements. I don't have the joy of having a multi-extruder printer so I don't know if you're accessing the value the correct way, but IIRC not every variable in the application stack has the same name as its replacement pattern.
I am 100% sure of the statement, addressing the correct extruder, the only thing that is questionable is the key used. It might not be the right one. That's what I'm looking for
For example str(extruderValue(0, 'material_type')).upper() returns properly the material type value, for example PLA.
But with material_brand, it returns 'None', though the replacement pattern returns the right value.
9 hours ago, Slashee_the_Cow said:If it helps, with 5.6 (I think) or above you can use Python statements in your startup gcode, which should include using a conditional. It'd also be entirely possible to do it with a post-processing script (but that's getting into the "more hassle than it's worth, unless you're as crazy as I am" department).
I know we already had that exchange together with @ahoeben a couple on month ago. This works fine.
I agree the post processing script is far too complex for what it solves in the particular case.
Edited by V3DPrinting
Recommended Posts
Slashee_the_Cow 409
You can't use functions when writing these things, just statements. I don't have the joy of having a multi-extruder printer so I don't know if you're accessing the value the correct way, but IIRC not every variable in the application stack has the same name as its replacement pattern.
If it helps, with 5.6 (I think) or above you can use Python statements in your startup gcode, which should include using a conditional. It'd also be entirely possible to do it with a post-processing script (but that's getting into the "more hassle than it's worth, unless you're as crazy as I am" department).
Link to post
Share on other sites