Materials name problem in Sketchup 2025

I think that this is wanting to achieve what I already coded two months ago.
(See attached code - below since moved to it’s own topic.)

Code quoted from Majid866 above ...

This is particularly ugly code …

Try using these 3 methods I wrote:

[code] Accessing and Loading SketchUp Shipped Materials - Developers / Ruby API

2 Likes