Geoff Sim
Posts: 12
Joined: Sun Oct 04, 2015 6:21 pm

Comma in script changes to newline

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?
Dreide
Posts: 5
Joined: Tue Mar 28, 2017 6:40 am

Re: Comma in script changes to newline

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.
Geoff Sim
Posts: 12
Joined: Sun Oct 04, 2015 6:21 pm

Re: Comma in script changes to newline

I believe this was fixed in the latest version.
Dreide
Posts: 5
Joined: Tue Mar 28, 2017 6:40 am

Re: Comma in script changes to newline

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 ...
brian442
Posts: 1243
Joined: Mon Nov 28, 2016 5:35 am

Re: Comma in script changes to newline

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.
Dreide
Posts: 5
Joined: Tue Mar 28, 2017 6:40 am

Re: Comma in script changes to newline

brian442 wrote:Release notes are here: https://www.simplify3d.com/software/release-notes/
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).

Return to “Troubleshooting and Bug Reports”