|
Hey,
in my plugin i need to have a different material displayed in then Editor than in the rendering.
Any idea how i could achieve that? Can i listen to some kind of render message and then swap my two materials for rendering and then swap them back for the editor view?
thanks for any ideas
edit:
i’m using the bake shell material now. that seems to do the trick
|
|
|
|
If in shade method test: shadeContext.globContext->inMtlEdit
Otherwise you might listen to NOTIFY_PRE_RENDER notification. This message is supposed to be broadcast only while performing actual render, however it’s renderer dependent how it was implemented.
Hope it helps,
|
|
|
|
thanks for the hint.
i’m using the bake shell material for now but might get back to that.
|
|
|