#1
|
|||
|
|||
How to import the defaultdict into vizard
Hi, guys
I have got a chance to play with vizard in my univ lab. its quite nice I already have had some experience in writing python scripts(very basica ones) Here I have meet some problems. First I want to use defaultdict(sets) in vizard to do some dirty work, but it seems viz doesn't know Python module collections and the following codes don't work from collections import defaultdict So I just want to know is it possible to use collections module in vizard? or viz has already got some build-in structure like defaultdict(sets) in python. Second, I also want to add voice recognition element into my vizard scripts to make some nice VR demonstrations. Under pythonwin I can do this by using Microsoft Speech SDK(using COM). But I am not sure whether I can do the same thing in Vizard. So If its possible, could anyone give me some hints or advice. Appreciate a lot! Last edited by knightgba; 07-25-2010 at 04:33 PM. |
#2
|
|||
|
|||
Hi
I dont think you can use defaultdict in viz as its only available in version 2.5 of python and vizard uses version 2.4. There are some collections you can use see http://docs.python.org/library/collections.htm For voice recognition look at this thread http://forum.worldviz.com/showthread.php?t=2790 Thanks |
#3
|
|||
|
|||
thx for reply!
its quite helpful! it seems I need check the 2.4 reference to modify my code. |
#4
|
|||
|
|||
It seems in python 2.4 deque is available, think I can use it instead of defaultdict(sets)
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 11:58 AM |
.3DS importing in Vizard and 3D Studio | jde | Vizard | 1 | 08-28-2009 04:14 PM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 10:39 PM |
Vizard and Augmented Reality | realvision | Vizard | 4 | 04-04-2008 11:59 AM |