callbacks.addScript #viewportChange
,where can l find this type of callback in the max sdk?
callbacks.addScript #viewportChange
,where can l find this type of callback in the max sdk?
Are you looking for this?
[B]fn redrawviews_p = print “Viewports Redrawn”
registerRedrawViewsCallback redrawviews_p[/B]
It will call the function whenever the active viewport gets redrawn. Search for “registerRedrawViewsCallback” in the MaxScript help file.
Thanx for your reply . what I actually want to do is
I find this type of callback in maxscritp:
#viewportChange: undefined
Sent everytime the viewport parameters change, including panning, zooming and orbiting the viewport or changing the active viewport. Currently, there is no notification for viewport layout change.
callbacks.removeScripts id:#keepFaceToScreenCallback
callbacks.addScript #viewportChange "keepFaceToScreenCallback() " id:#keepFaceToScreenCallback
Now , I want to accomplish the same with the SDK API