173 |
self.putCells(vs, rot) |
self.putCells(vs, rot) |
174 |
|
|
175 |
|
|
176 |
sca = vs.matcher.add(vs.coords.scaleXYZ(rot, 1, 1, 0.01), "sca") |
sca = vs.matcher.add(vs.coords.scale(rot, 1, 1, 0.01), "sca") |
177 |
|
|
178 |
vs.map.put(getDList(""" |
vs.map.put(getDList(""" |
179 |
Enable BLEND |
Enable BLEND |
204 |
wid, h = (600, 600) |
wid, h = (600, 600) |
205 |
l = 300 |
l = 300 |
206 |
cc=[(vs.matcher.addSub(into, |
cc=[(vs.matcher.addSub(into, |
207 |
vs.coords.coordsys(into, d, 0, -2*l, wid/2, h/2),"foo"+str(d)), |
vs.coords.ortho(into, d, 0, -2*l, wid/2, h/2),"foo"+str(d)), |
208 |
vs.matcher.addSub(into, |
vs.matcher.addSub(into, |
209 |
vs.coords.coordsys(into, d, -0.75*wid*self.movel, 2*l, wid/2, h/2), "bar"+str(d))) |
vs.coords.ortho(into, d, -0.75*wid*self.movel, 2*l, wid/2, h/2), "bar"+str(d))) |
210 |
for d in (600, 800)] |
for d in (600, 800)] |
211 |
|
|
212 |
putnoc(vs, getDList(""" |
putnoc(vs, getDList(""" |
366 |
def putcs(self, vs): |
def putcs(self, vs): |
367 |
for x in range(0,self.cw): |
for x in range(0,self.cw): |
368 |
for y in range(0, self.ch): |
for y in range(0, self.ch): |
369 |
self.cs[x][y]=vs.coords.coordsys(str(x)+"_"+str(y), 10, |
self.cs[x][y]=vs.coords.ortho(str(x)+"_"+str(y), 10, |
370 |
x + 0.2 , y + 0.2, 0.6, 0.6) |
x + 0.2 , y + 0.2, 0.6, 0.6) |
371 |
def key(self, k): |
def key(self, k): |
372 |
if k == "s": |
if k == "s": |
501 |
for y in (2-dy,2,2+dy)] |
for y in (2-dy,2,2+dy)] |
502 |
cs = [] |
cs = [] |
503 |
for ctr in ctrs: |
for ctr in ctrs: |
504 |
coordsys = vs.coords.coordsys(0, 20, ctr[0], ctr[1], w/2, h/2) |
coordsys = vs.coords.ortho(0, 20, ctr[0], ctr[1], w/2, h/2) |
505 |
vs.matcher.add(coordsys, str(dx)+str(ctr[1])) |
vs.matcher.add(coordsys, str(dx)+str(ctr[1])) |
506 |
cs.append((coordsys, ctr)) |
cs.append((coordsys, ctr)) |
507 |
for c in cs: |
for c in cs: |
574 |
sc.scene(vs1) |
sc.scene(vs1) |
575 |
sc.key("p") |
sc.key("p") |
576 |
sc.scene(vs2) |
sc.scene(vs2) |
577 |
saveanim.savesequence(w, "/tmp/anim", vs1, vs2, 20) |
saveanim.savesequence(w, "tmpfilm/frame0.", vs1, vs2, 40) |
578 |
|
saveanim.savesequence(w, "tmpfilm/frame1.", vs2, vs1, 20) |
579 |
|
|
580 |
|
saveanim.encodefilm("tmpfilm/frame*", "filletfilm.avi") |
581 |
|
|
582 |
return 0 |
return 0 |
583 |
|
|
584 |
currentScene = scenes[0] |
currentScene = scenes[0] |