Notifications
Clear all

[Closed] viewport redraw

Hi there,

I ran into this kind of problem: I wrote a utility pluging with max sdk which changes some properties of the material of the selected scene node. The problem is that this change doesnt’t affect the viewport, e.g. the the node is displayed with the old material settings (diffuse or whatever). When the node is deselected the viewport is refreshed and the material is displayed correctly. Is there a way to invalidate node’s mtl and redraw it ?

3 Replies

with redraw on (

)

with redraw off (

)

disableSceneRedraw()
enableSceneRedraw()

^ Have always worked for me no problems redrawing.

-Colin

with max-sdk
GetCoreInterface()->RedrawViews(…);

thanks, it worked