Using the RemoveCommand method of the TTScript to delete the start and end line relative to a parameter that will be recorded
Using the mActive attribute of a curve to not process it if it is inactive