MoI discussion forum
MoI discussion forum

Full Version: Align CPlane to Camera...

Show messages: All  1-5  6-8

From: Rich (-RB-)
4 Mar   [#6]
Hi - anyone have this Max S. script lyiing around I seem to have lost!

// Rich
From: pressure (PEER)
4 Mar   [#7] In reply to [#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
From: Rich (-RB-)
7 Mar   [#8]
Amazing thanks pressure!

// Rich

Show messages: All  1-5  6-8