Can someone briefly explain to me the use of the RhinoCommon member CommitChanges()? I’m specifically interested in how this function works with materials and textures. My basic problem is I want to edit a material applied to a brep object and see those changes reflected in the document. Right now I’m basically doing the following:
I can see that when I create a reference to the material/texture object and subsequently edit one of its fields, that the IsDocumentControlled property goes from being true to false; I guess this means the RhinoDoc is no longer reading changes to this object. So I call CommitChanges() on this object to tell Rhino that I’ve made changes and expect to see them reflected in the doc. However, this command seems to fail every time. Should i instead be constructing a new object of this type (e.g. Texture), editing it, and applying it back to the object in question (or making a new RhinoObject?). Or is the editing in place way ok?
What is the proper way to think about accessing/editing the lower level info of a general RhinoObject?