WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-15-2004, 12:18 PM
vjonshih vjonshih is offline
Member
 
Join Date: Sep 2004
Posts: 15
The get command

Hi there,

I have a duck walking circles in my world. I have this keyboard action that gets me the position of the duck whenever I press '1'. However, for some reason, even when I did put 2 arguments into my get call, the 'output' window on vizard gives me an error message that says:

File "jonsworld.py", line 141, in mykeyboard
duckangle = duck.get(viz.POSITION, viz.ABSOLUTE_WORLD)
TypeError: get() takes exactly 2 arguments (3 given)

Is there something wrong with my line of code?

Thanks!
Reply With Quote
  #2  
Old 09-15-2004, 12:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

This is a bug that has been recently fixed. In the meantime you can do the following:
Code:
duckangle = viz.VizNode.get(duck,viz.POSITION,viz.ABSOLUTE_WORLD)
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


All times are GMT -7. The time now is 06:14 PM.


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