@eneroth3 said:
<offtopic>
There's a Materials.current method π² ?? For my latest project I created a materials observer listening to active material change just so it could be assigned to a variable so I later could know what material is active. How could I have missed this? π³ cleaning up some code
</offtopic>
Beware that the material might not be in the model yet - in older version of SketchUp it can cause crashes if you try to apply the material to entities.