#1
|
|||
|
|||
[0.0, 0.0, 0.0] for every object.getPosition()
I am trying to use viz.pick() to get the position for an object that a click on, but all I get is [0.0, 0.0, 0.0]. What am I doing wrong? Here is a simple example code:
import vizThank you very much. |
#2
|
|||
|
|||
Please use the [code][/code] tags when posting sample code on the forum. This will preserve indentation which is necessary for running Python code.
In your code, you are incorrectly using the valid attribute of the node object. It is a function, so you need to call it: Code:
if object.valid(): print object.getPosition() |
|
|