In this topic http://blenderartists.org/forum/showthread?t=38677 was represent way of emulating 3D Object with 2D and was given links to sample files. Now those links don’t work and I want to ask, is there any way to took this samples anyway?
Also, I was found one useful python script, it is flat mirror script. It says there is need cgkit-1.2.0 to work. When I run it, error appear in line 6. I am wonder, is it work script and will it work in standalone executable on computer there is not installed cgkit-1.2.0? Here, this script is:
import Blender
from Blender.Mathutils import Matrix as BMatrix
import cgtypes
class object:
def init (self,OB=None):
if type(OB) == type(""):
OB=Blender.Object.Get(OB)
if type (OB)
== “<type ‘Blender Object’>”:
self.ob=OB
mtx=[]
for r in range(4):
for c in range(4):
mtx.append(self.ob.matrix[c][r])
self.matrix=cgtypes.mat4(mtx)
else:
self.matrix=cgtypes.mat4
self.ob=Null
def applyMatrix(self):
mtx=[]
for c in range(4):
m=[]
for r in range(4):
m.append(self.matrix[c][r])
mtx.append(m)
mtx=BMatrix(mtx[0],mtx[1],mtx[2],mtx[3])
self.ob.setMatrix(mtx)
flipZ=cgtypes.mat4( 1,0, 0,0,
0,1,0,0,
0,0,-1,0,
0,0, 0,1)
cam=object(‘Camera’) #camera to mirror
mir=object(‘Plane’) #mirror plane. Can be every object. Script use local Z-axis
mcam=object(‘CameraM’) #mirrored camera. Use linked (Alt-D) copy of camera
mcam.matrix=mir.matrixflipZmir.matrix.inverse()* cam.matrix
mcam.applyMatrix()