Scripting the Trim command -- programmatically select objects to keep or remove?

 From:  pressure (PEER)
11415.4 In reply to 11415.3 
Hi Mike,

When I run your code on Windows in the latest v5 beta it works just fine. The GUI is responsive after I click through the alert.

Re:
> its like it is asking for me to select a section of the line to remove with the mouse.

Setting input 2 with an empty objectList like you're doing means that all fragments will be kept.

Re:
> But how do i programmatically select line segments to keep or remove?

What's kept and removed is determined by the contents of the objectList passed to input 2 and whether the factory is running in "keep" mode or "remove" mode.

- Peer