Missing call to ChangeQueue.ApplyMaterialChanges

unhandled

#1

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);


(Nathan 'jesterKing' Letwory) #4

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


#5

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?


(Nathan 'jesterKing' Letwory) #6

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


#7

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


(Nathan 'jesterKing' Letwory) #8

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


#11

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


#12

Thanks.


(Andrew le Bihan) #13

Carsten

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

  • Andy

#14

@Andy

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

Thx
Pascal


#15

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


(Andrew le Bihan) #16

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