Page 1 of 1
Comma in script changes to newline
Posted: Sun Feb 07, 2016 9:21 am
by Geoff Sim
When selecting a profile in the FFF Settings, any commas in scripts are changed to newlines.
For example, to change the Simplify3D line,
; infillPercentage, 0.3
to
; fill_density = 0.3
I use,
{REPLACE "; infillPercentage," ": fill_density = "}
However, if you select a different profile, and then back to this one, the comma is replace with a newline.
If the profile is saved, the commas are lost forever.
{REPLACE "; infillPercentage
" ": fill_density = "}
Any workaround?
Re: Comma in script changes to newline
Posted: Tue Mar 28, 2017 7:02 am
by Dreide
I ran into the same problem. Just to clarify, this has nothing to do with post-processing! It appears that whenever Simplify3D loads a profile - whether explicitly or implicitly (e.g. also quitting and then restarting Simplify3D is sufficient for reproducing this bug) -, the commas within comments in any of the scripts are replaced with newlines.
Re: Comma in script changes to newline
Posted: Tue Mar 28, 2017 9:28 am
by Geoff Sim
I believe this was fixed in the latest version.
Re: Comma in script changes to newline
Posted: Tue Mar 28, 2017 9:49 am
by Dreide
Geoff Sim wrote:I believe this was fixed in the latest version.
What makes you believe this? Is there a list of fixed bugs (aka release notes)? Anyhow, I just checked, and my version (3.1.1), which still shows the bug, claims to be up to date, so ...
Re: Comma in script changes to newline
Posted: Wed Mar 29, 2017 8:23 am
by brian442
Release notes are here:
https://www.simplify3d.com/software/release-notes/
They not support commas for the post processing script (which is what this thread was originally about), so yes, that works now. But I don't think commas are supported in the gcode scripts (i.e. starting, ending, layer change, etc), likely because some firmwares have problems with anything besides standard characters.
Re: Comma in script changes to newline
Posted: Wed Mar 29, 2017 8:54 am
by Dreide
Ah, thanks, that is helpful.
brian442 wrote:They not support commas for the post processing script (which is what this thread was originally about), so yes, that works now. But I don't think commas are supported in the gcode scripts (i.e. starting, ending, layer change, etc), likely because some firmwares have problems with anything besides standard characters.
Even if that was true, how does silently replacing commas with newlines make anything better? I mean we are talking about commas in commented lines! BTW, Simplify3D itself generates commented lines with commas (e.g., all the settings at the beginning of the G-code file).