Material library in ruby

Hi all,

In ruby, I’m looking to import some material from the default Sketchup material library folder on mac and PC

-> I was thinking it was close to the plugin folder but it didn’t. My material foder in “app support” are empty, …

Thanks for your help

If by “default” you mean the built-in materials (as opposed to the default location of user-added materials) it is buried inside the app bundle, nowhere near plugins.

yes built-in, thanks !

There was another topic that asked how to locate it recently. They had code for both Windows and Mac.

Into a SketchUp model ?

If so, the API doc on Materialsl#load shows how to do this.