![]() |
|
#8
|
|||
|
|||
|
Just updated the code. Old version:
Code:
def playback():
def subTask():
for bones in boneObjList:
bones.lock()
currentBone = 0
for mat in boneMatList:
boneObjList[currentBone].setMatrix(mat, viz.ABS_PARENT)
yield None
if currentBone+1 == len(boneObjList):
currentBone = 0
else:
currentBone += 1
for bones in boneObjList:
bones.unlock()
viztask.schedule( subTask() )
# Press the space key for playing back the blink animation
vizact.onkeydown(' ', playback)
Code:
def playback():
def subTask():
for bones in boneObjList:
bones.lock()
for i, mat in enumerate(boneMatList):
boneObjList[i % len(boneObjList)].setMatrix(mat, viz.ABS_PARENT)
yield viztask.waitDraw()
for bones in boneObjList:
bones.unlock()
viztask.schedule( subTask() )
# Press the space key for playing back the blink animation
vizact.onkeydown(' ', playback)
|
| Tags |
| blinking, hd complete characters |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom head on HD Complete Character | Frank Verberne | Vizard | 3 | 06-18-2013 06:18 PM |
| Moving, blinking eyes for Complete Character Set | Frank Verberne | Vizard | 4 | 09-14-2012 06:42 AM |
| making a Complete Character Set character speak | Frank Verberne | Vizard | 4 | 05-25-2012 09:47 PM |
| New Complete Character morph targets for facial animation? | Deltcho | Vizard | 2 | 07-26-2010 05:26 PM |
| How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 09:48 AM |