Thread: sequence
View Single Post
  #3  
Old 10-17-2007, 01:28 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
repost

sorry about that, here's the code again


Code:
#### x left and right stop position
##### d = distance
##### s = speed
#### t = time

#### m randomisation factors for time


import viz
import vizact
import vizmat
from random import random
import time
import math

viz.go()


gball = viz.add('footy.ac')




Start_Z = 100
Stop_Z = 10.0
s = 100.0
d = Start_Z-Stop_Z
t = d/s
Spin = 150.0
Angle = Spin*t


viz.move(0,0,0)## sets viewpoint at z meters away
#gball.setPosition (0,0,0) ####sets object position if do not want the Start_Z
viz.eyeheight(0)

#gball.translate(0,0,0)####sets object position
 
for x in [1, -1, 0]: #######will be -4 - 4 in .2 increments

	for m in [.5, -.5, -2]:
		


		moveForward=vizact.goto(x,-10,Stop_Z,.8+m,viz.TIME)
		moveStart=vizact.goto(0,0,Start_Z,0.01,viz.TIME)
		moveOut=vizact.goto(0,0,-1000,0.001,viz.TIME)
		wait1 = vizact.waittime(0.5)
		wait2 = vizact.waittime(5)
		motionseq=vizact.sequence(moveStart,wait1,moveForward,moveOut,wait2,moveStart,wait1)
		gball.add(motionseq)
Reply With Quote