This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Rhino | |
# read geometry out of 3dm files and filter by layernames | |
if DoImport and FilePaths and LayerNames: | |
geometry = [] | |
for filepath in FilePaths: | |
model = Rhino.FileIO.File3dm.Read(filepath) | |
if not model: continue | |
for layer in LayerNames: | |
objs = model.Objects.FindByLayer(layer) |