I know how to control VFB IPR with Maxscript.
Can I do same thing for Viewport IPR?
macros.run "VRay" "VRayViewportIPR"
Once to start it, once to stop it.
Thanks for the pointer. I checked the code.
vrayViewportIPRControl 0 3 - Vray viewport IPR on
vrayViewportIPRControl 0 4 - Vray viewport IPR off
vrayViewportIPRControl 1 3 - VrayGPU viewport IPR on
vrayViewportIPRControl 1 4 - VrayGPU viewport IPR off