Hi…,
to me rs.AddMaterialToObject() doesn’t work for a pictureFrame object, so now I create alternatively a surface by my own, add rs.MaterialColor, mat.SetBitmapTexture, and mat.SetTransparencyTexture, which works nicely.
Hi @dale, also I’ve noticed that rs.AddMaterialToObject(object) deletes all UserTexts of my object, which I have added with rs.SetUserText(object, ‘marker’, ‘color’),… This looks buggy to me.
Hi @clement, thank you for your investigations. I also would like to know how to switch on/off these material options (Textures Color, Textures Transparency,…, Enable diffuse lighting (which will be set on, when I do rs.AddMaterialToObject()).
Thank you anyway for your great help and Rhinos wonderful script tools.
Have a sunny weekend
Michael
www.flexiCAD.com