viewport.ResetAllViews() --resets to Max Standard
viewport.setGridVisibility #all false
max tool zoomextents all
viewport.activeViewportEx 2
actionMan.executeAction 0 "40406" -- Views: Extended Views
viewport.activeViewportEx 3
fn stopCoronaIR_fn =
(
if (classof renderers.current == CoronaRenderer) AND CoronaRenderer.CoronaFp.getRenderType() == 2 then -- docked type
(
CoronaRenderer.CoronaFp.stopRender()
)
)
stopCoronaIR_fn ()
CoronaRenderer.CoronaFp.startInteractiveDocked()
So the above code doesn't work in the second time of running. First will start. Second should stop and restart but it's not working and it seems to lock the listener also.
I want to easily stop the docked render and start it for the sake of a script I'm writing. I was hoping not to have to create a timer to do restart after I stop it. Reparsing doesn't work for my needs.
But this is just a hack for me to rename maps in the slate material editor while an IR renderer is working. Stop it, rename maps, restart it is what I thought needs to be done to rename them successfully.
Sometimes my script renames the SME nodes, sometimes not. This is definitely linked to IR being active.