WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Getting camera position from ive (https://forum.worldviz.com/showthread.php?t=2733)

TarkaDahl 05-13-2010 02:38 AM

Getting camera position from ive
 
Hi All

Im trying to get the camera position from an .ive file.

i thought the following code would work

modela = viz.add("Test.ive")
print modela.getChild("Camera01").getPosition()

However it only returns [0.0, 0.0, 0,0]

Is there a way of doing this?

Thanks

Jeff 05-13-2010 01:25 PM

The camera data is not exported. One way of doing this is create a box and link it to the camera in Max. You could make the box invisible in Max by assigning a fully transparent material to it or you could make the box invisible in Vizard. Then you can use the GEODE of the box to get the camera position. Take a look at the following kb article which talks about getting a handle to a GEODE.

http://kb.worldviz.com/articles/1157


All times are GMT -7. The time now is 12:30 AM.

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