BUG - API created materials cannot be edited

A recent update of SketchUp seems to make it impossible for users to edit material colors that have been created with the Ruby API.

(I am also having issues when creating materials as a user).

Here is a screen recording:

What does #owner_type and #color return in this state ?

That doesn’t happen in Mac version @kengey

=> 0

=> #<Sketchup::Color:0x000002a1a63f6188>

I see the problem, in v2022 it’s not so flaky but still imperfect.
A fix until an update fixes this is to add the material through the API and immediately assign a color to it.
Then it’s editable…

1 Like

TIG’s recommendation was what I was headed toward. (Sorry was away 12 hours yesterday in jury selection.)