After working with Travis Serio from GV we were able to duplicate the issue with out having VRayForRhino loaded.
All you need to do is have a run the code below:
RhinoDoc.MaterialTableEvent += RhinoDoc_MaterialTableEvent;
Material mat = new Material();
mat.DiffuseColor = Color.Red;
mat.AmbientColor = Color.Black;
mat.SpecularColor = Color.White;
int newMatIdx = RhinoDoc.ActiveDoc.Materials.Add(mat);
and add this function:
private void RhinoDoc_MaterialTableEvent(object sender, MaterialTableEventArgs e)
RhinoApp.WriteLine("Material Table Event Fired");
The exception is only shown if you add a delegate to the Rhino.Runtime.HostUtils.OnExceptionReport such as like this.
HostUtils.OnExceptionReport += HostUtils_OnExceptionReport;
private void HostUtils_OnExceptionReport(string source, Exception ex)
if (ex.InnerException == null)
Please let me know if there is anything else I need to change in V-RayForRhino / Matrix in order to get this to work.