Align CPlane to Camera...

 From:  pressure (PEER)
7778.7 In reply to 7778.6 
Hi Rich,

It's on the Internet Archive:

https://web.archive.org/web/20151229011015/http://moi.maxsm.net/item/5

code:
script: /* Align CPlane with 3D view 1.0 */ var cp=moi.view.getCPlane(), tp=moi.ui.mainWindow.viewpanel.getViewport('3D').targetFrame, tl=moi.VectorMath.pointsWithinTolerance; if (tl(cp.origin,tp.origin) && tl(cp.zaxis,tp.zaxis)) { moi.view.resetCPlane() } else {moi.view.setCPlane(tp, false)}


- Peer