MrEditor97
Posts: 2
Joined: Thu Aug 10, 2017 4:56 pm

Custom scripting - replace first/last occurrence of string

I have been using Simplify3D for a few weeks now, and I have come across an area where some extra features can be added.

I would like to see more variables being added to the "Scripts" tab under - "Additional Terminal Commands" - these being:
  • Add a "REPLACEFIRST" node which can be used to replace only the first occurrence of a string
  • Add a "REPLACELAST" node which can be used to replace only the final occurrence of a string
I feel that adding these would open up some more custom scripting options.
User avatar
KeyboardWarrior
Posts: 480
Joined: Thu Jun 19, 2014 5:02 pm

Re: Custom scripting - replace first/last occurrence of stri

What specifically are you looking to do? If you give more details, someone may be able to give you a creative solution to your problem.
MrEditor97
Posts: 2
Joined: Thu Aug 10, 2017 4:56 pm

Re: Custom scripting - replace first/last occurrence of stri

I am attempting to create a material change script (for a single extruder) - this I have been doing the Tool Change Script section. However, when in the Tool Change Script section it initiates a tool change at the very start of the script. I would like to remove this first tool change, as I always have the correct filament loaded to start the print.

Return to “Feature Requests”