![]() |
|
#1
|
|||
|
|||
Hi Kevin,
Thank you very much for your example! I managed to get the animation I wanted. Never thought about the position of the bones (and never worked with matrices in Vizard), but it worked like a charm! Cheers, Frank |
#2
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom head on HD Complete Character | Frank Verberne | Vizard | 3 | 06-18-2013 05:18 PM |
Moving, blinking eyes for Complete Character Set | Frank Verberne | Vizard | 4 | 09-14-2012 05:42 AM |
making a Complete Character Set character speak | Frank Verberne | Vizard | 4 | 05-25-2012 08:47 PM |
New Complete Character morph targets for facial animation? | Deltcho | Vizard | 2 | 07-26-2010 04:26 PM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |