Page 1 of 1

delete "from to" in script

Posted: Thu Jul 15, 2021 11:06 am
by cncandi
is it possible to delete all words from any word to any word?

For example:

Code: Select all

lm({X 7.621,Y 48.681,Z 0.225})0.0000,F1800
lm({X 7.576,Y -56.324,Z 0.225})5.3042,F735
I want to delete all words after }) to the end of the line.

Result:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324,Z 0.225})

one more question ...
is it possible to output only modal commands. For example:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324,Z 0.225})
lm({X 68.833,Y -56.333,Z 0.225})
lm({X 28.972,Y 56.233,Z 0.225})

I need:
lm({X 7.621,Y 48.681,Z 0.225})
lm({X 7.576,Y -56.324})
lm({X 68.833,Y -56.333})
lm({X 28.972})

Re: delete "from to" in script

Posted: Mon Jul 19, 2021 3:11 pm
by S3D-Jake
1. Turn off 5D Firmware (include E dimension) in the G-Code tab.
2. Then in the post processing area of the Scripts tab you can just add DELETE commands for the F (Speed in mm/min) values.