View Single Post
  #9  
Old 05-19-2005, 07:13 PM
vadrian vadrian is offline
Member
 
Join Date: Sep 2004
Posts: 32
if i have a list of xyz rotations (from head tracking file) and i want to make an action that is generic (for any avatar) and repeatable, should I make a vizact object via:
Code:
actionList = []
for line in file:
    actionList.append( vizact.headto(x, y, z) )
action = vizact.sequence(actionList )
or would this timer/list iteration be a better plan (from another thread)

Code:
avatar = viz.add('avatar.cfg')

head = avatar.getbone('skel_Head')

#Lock the head bone so that we can manually control it
head.lock()

def mytimer(num):
    #Apply some rotation to the head
    head.rotate(ori)
I may have up to 20 avatars in the script executing an action (but not all will be in view at once, and not all will be acting at once). which would be faster?
Reply With Quote