Missing call to ChangeQueue.ApplyMaterialChanges

When we apply a material to the selection after our render has converged, the call to ChangeQueue.ApplyMaterialChanges is missing, and gets delayed until the next scene change takes place, like navigation.

The same happens in Cycles when we assign MDL materials (which we do translate, so we see the difference), but when I assign regular Rhino materials to the selected objects, Cycles does restart, so it seems related to the way we assign materials.

Can you think of anything we might handle incorrectly to cause this? @nathanletwory @andy

We make this call to attach the material:

Rhino.RhinoDoc.ActiveDoc.Objects.ModifyRenderMaterial(obj, material);

We don’t know yet, but we’re investigating.

While on the topic of material assignment, in your material pane, there is a right-click menu for the material list which contains some nice items, which we would love to reuse in the MDL Browser, if possible. They do not seem to correspond to commands, unfortunately. Is there some way to hook into this?

You mean you want to re-use the context menu?

Yes, or at least the first few entries. Is there a way?

My understanding is that we’ll have to show how to do that. I think @andy knows best this area.

1 Like

Regarding the missing notification @andy logged: https://mcneel.myjetbrains.com/youtrack/issue/RH-39242

Thanks.

Carsten

I’m going to need a build of IRay to test this.

  • Andy

@Andy

I updated GitHub as well
https://github.com/mcneel/MDL-for-Rhino

Thx
Pascal

Did you get my message with the link, btw @andy?

Carsten

I can’t repeat this. It must be very specific to your workflow - so I’m going to need exact steps to repeat this.

  • Andy