Vbents
08-10-2006, 11:20 AM
Hi,
I have an intermittent error when using a simple blink function for an avatar. This is what the error is reported as:
Traceback (most recent call last):
File "the final version (fixing the bugs).py", line 712, in Blink4
person4.head.morph(0,0,.1)
File "C:\Program Files\Vizard25\viz.py", line 3509, in morph
self.add(morphAction,thread)
File "C:\Program Files\Vizard25\viz.py", line 2997, in add
self._action.addAction(what,*args)
File "C:\Program Files\Vizard25\viz.py", line 5854, in addAction
self.actionPool[thread].actionList.append([action,get(CLUSTER_MASK)])
KeyError: -600
Here is the blink5() function, which is passed to viz.director():
def Blink4():
global person4
person4.head.morph(0,1.0,.1)
viz.waittime(.15)
person4.head.morph(0,0,.1)]
(person4 is a wrapper class for the avatar).
I've noticed a similar problem when using avatar actions: after the action is completed, Vizard often does not return to the idling action, but instead reports a bug because it cannot randomly choose which idle action to randomly return to.
Anyway, if anyone has seen this problem and can suggest a solution, or what might be causing it, that would be great. I'm sure this has been fixed for Vizard 3, so any quick fix would suffice.
Thanks,
-Ben
I have an intermittent error when using a simple blink function for an avatar. This is what the error is reported as:
Traceback (most recent call last):
File "the final version (fixing the bugs).py", line 712, in Blink4
person4.head.morph(0,0,.1)
File "C:\Program Files\Vizard25\viz.py", line 3509, in morph
self.add(morphAction,thread)
File "C:\Program Files\Vizard25\viz.py", line 2997, in add
self._action.addAction(what,*args)
File "C:\Program Files\Vizard25\viz.py", line 5854, in addAction
self.actionPool[thread].actionList.append([action,get(CLUSTER_MASK)])
KeyError: -600
Here is the blink5() function, which is passed to viz.director():
def Blink4():
global person4
person4.head.morph(0,1.0,.1)
viz.waittime(.15)
person4.head.morph(0,0,.1)]
(person4 is a wrapper class for the avatar).
I've noticed a similar problem when using avatar actions: after the action is completed, Vizard often does not return to the idling action, but instead reports a bug because it cannot randomly choose which idle action to randomly return to.
Anyway, if anyone has seen this problem and can suggest a solution, or what might be causing it, that would be great. I'm sure this has been fixed for Vizard 3, so any quick fix would suffice.
Thanks,
-Ben