WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-13-2010, 03:38 AM
TarkaDahl TarkaDahl is offline
Join Date: Mar 2010
Posts: 59
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?

Reply With Quote
Old 05-13-2010, 02:25 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote

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
writing joystick position to a data file Saz Vizard 3 12-17-2008 06:18 AM
Connecting vizard to a camera dan12345 Vizard 1 11-11-2008 04:09 PM
default start position erchrastil Vizard 2 06-23-2008 09:15 AM
position of html-file on screen active_world Vizard 1 05-16-2008 08:24 PM
Avatar always returns in initial position pattie Vizard 2 08-31-2006 09:15 PM

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

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