Hi! I’m looking to write a script that will remove a small segment in the middle of an edge. I use SketchUp to design for a laser cutter and I have some a lot of design I want to cut up but leave the pieces connected just barely. I’ve been needing to create a joining segment on an edge, copy-move the segment 0.2 mm, and then erase both segments and the middle. This gets tiring for a design with a lot of pieces.
Ideally, I’d like a script that takes all edges over a certain length (say, 20mm), divides them into three with the middle piece at a set length (say 0.2mm) and deletes the middle, or some variation.
I’m a beginning at ruby scripting and been poking around other scripts and tutorials. If anyone could share some tips or code snips, I’d really appreciate it!