WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   rotate camera about an object (https://forum.worldviz.com/showthread.php?t=2503)

dwaik 02-08-2010 08:00 AM

rotate camera about an object
 
hello...

i need to rotate a camera about an object,
i could parent objects to each other, but couldnt parent camera under another object, as another solution i noticed that MainView.pivot() i tried to to move the pivot to that object, but nothing happens.
dont know what to do...
if please someone can help

Jeff 02-08-2010 10:02 AM

You can set the camera handler to pivot navigate.
Code:

import viz
viz.go()

female = viz.add('vcc_female.cfg')

#Setup camera navigation
import vizcam
vizcam.PivotNavigate(center=[0,1,0],distance=5)


dwaik 02-09-2010 01:06 AM

thanks alot man that was helpful :D


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

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