Gibbz
06-17-2006, 06:28 AM
Ok im trying to align the camera with the face normal usig the following...
What am i doing wrong? It seems to work on faces that are flat against x, y, z but soon as they are rotated it stops working...
myViewMatrix = viewport.getTM()
myOriginalCoordSystem = getCoordCenter()
toolMode.coordsys #local --set local coords
myLocalTransform = getTransformAxis myObj 0 --get transform matrix
viewport.setTM (myLocalTransform) --set camera to transform matrix...
max zoomext sel all
What am i doing wrong? It seems to work on faces that are flat against x, y, z but soon as they are rotated it stops working...
myViewMatrix = viewport.getTM()
myOriginalCoordSystem = getCoordCenter()
toolMode.coordsys #local --set local coords
myLocalTransform = getTransformAxis myObj 0 --get transform matrix
viewport.setTM (myLocalTransform) --set camera to transform matrix...
max zoomext sel all
