WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-25-2010, 04:30 PM
knightgba knightgba is offline
Member
 
Join Date: Jul 2010
Posts: 8
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.
Reply With Quote
  #2  
Old 07-25-2010, 05:31 PM
TarkaDahl TarkaDahl is offline
Member
 
Join Date: Mar 2010
Posts: 59
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
Reply With Quote
  #3  
Old 07-26-2010, 06:18 AM
knightgba knightgba is offline
Member
 
Join Date: Jul 2010
Posts: 8
thx for reply!
its quite helpful!
it seems I need check the 2.4 reference to modify my code.
Reply With Quote
  #4  
Old 07-26-2010, 02:35 PM
knightgba knightgba is offline
Member
 
Join Date: Jul 2010
Posts: 8
It seems in python 2.4 deque is available, think I can use it instead of defaultdict(sets)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC