Script to import individual files into separate layers

Hi! I have quite a number of .xyz files to import and was wondering if there was a way that when I import them into Rhino 5, they can import as separate layers, rather than only in the active layer. Could they keep their file name to rename their layer, too?

I’m not familiar with Grasshopper, but I have it and it is taking some time to figure out! Any help is greatly appreciated!


Here’s a quick mod on an already existing script I had…


BatchImportXYZ.rvb(2.1 KB)

This is going to save SO much time! Thank you so much for this!