Material transparency bug?

I’ve written a macro to quickly be able to change the transparency of a material applied to a surface with the PICTURE command, basically consisting of the follow:

'-properties material object _enter transparency _pause _enter _enter

This allows me to quickly select a surface with a material applied to it and change the opacity instead of hunting down through layers of the properties palette to get to here:

So…all well and good, I can set the transparency of that surface to whatever I want.

Here’s the problem…after saving the file and reopening it, the transparency settings go back to zero, and the surface is opaque. As shown in this image, the macro applies a transparency of 50% to this image object and the text is visible through it. At the same time the on the PROPERTIES:MATERIAL palette, that object’s transparency is showing 0%.

Am I missing something here, or are things not working the way they’re supposed to?

Rhino 7 SR15 2022-2-8 (Rhino 7, 7.15.22039.13001

Thanks!

Hello- I see that, thanks - Properties is not updated to what -Properties sets even though the object is.
RH-67646 Properties: Scriptabe properties are not updated in the file

@Mdmowry - if you change the material type to Custom, I believe this will work - not ideal, I know.

-Pascal