WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-16-2016, 11:42 AM
jelly jelly is offline
Join Date: Feb 2016
Posts: 38
problem with path animation


I want to run a function 4 times. The function entails that the viewpoint is being animated as to look as it is moving through a maze. The problem is that, while it always loads the function 4 times, the animation only works the first time, after which is stops at the position of the end of the animation. It's as if the viewpoint does not get updated back to its initial setting.

I would be extremely grateful for any help or pointers, because I tried everything I could think of and it is just trial-and-error!

import viz															#Needed to generate a world.
import viztask														#Needed to control the experiment structure.

viz.mouse.setVisible(viz.OFF) 										#Stops the mouse appearing on the screen.
viz.mouse.setOverride(viz.ON)										#Stops Vizard navigation using the mouse.


#Set the start position:
startPos = [-6.4,0,-8]


### Add all the resources. ############### 
maze1 = viz.add('Objects/Maze_1.dae')

subwindow = viz.addWindow()

view = viz.addView()


subwindow.setView( view )
subwindow.setSize( 0.4,0.4 )
subwindow.setPosition(0.3,0.7) #(0,1)
subwindow.visible( viz.ON )

##Animation path

pathMaze1 = viz.addAnimationPath()

#Add control points to the path, along with their time stamp.

#Duation of animation
pathMaze1Duration = pathMaze1.getDuration()

#Loop the path in a swinging fashion (point A to point B to point A, etc.).

def maze1():
	print 'now'
	link =,view)
	yield viztask.waitTime(2)
	yield viztask.waitTime(pathMaze1Duration)

def masterFunction():								
	for x in range(4):
		yield maze1()
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
How to create Animation Path Abood Karkar Vizard 2 01-27-2016 05:03 PM
Road Animation Path vserchi Vizard 4 11-12-2015 09:29 AM
Clarification on CAL3D Avatar Animation in Vizard shivanangel Vizard 2 11-22-2010 07:16 AM
Problems with interaction of vizact.turn and animation path Enlil Vizard 3 11-24-2008 04:23 PM
speed on animation path whj Vizard 8 11-17-2008 07:41 PM

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

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