WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-24-2010, 09:18 PM
bionic1 bionic1 is offline
Member
 
Join Date: Apr 2009
Posts: 2
viewpoint rotate

hi~

i want viewpoint 360degree rotate at same place...

i know 180degree..

view = viz.mainview
euler = view.getEuler()
view.spinto([0,1,0,euler[0]-180],180)

how to rotate 360 degree at same place...(without any key event)
(view.spinto([0,1,0,euler[0]-360],180) ----> don't rotate...)

Last edited by bionic1; 01-24-2010 at 09:22 PM.
Reply With Quote
  #2  
Old 01-27-2010, 09:32 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could do this by linking the viewpoint to a group object which is an empty node and then apply a spin action to the group object. After the spin is complete you could disable the link.
Code:
import viz
import vizact

viz.go()

court = viz.add('court.ive')

group = viz.addGroup()
link = viz.link(group,viz.MainView) 

spinAction = vizact.spin(0,1,0,45,8)
group.runAction(spinAction)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to track the actual viewpoint Jerry Vizard 3 05-25-2016 09:44 AM
Arrington - Ethernet ViewPoint Client jaclyn.bill Vizard 3 10-23-2009 10:43 AM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM
3d viewpoint movement spacefarer Vizard 9 07-25-2006 03:37 PM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 02:10 PM


All times are GMT -7. The time now is 11:03 PM.


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