View Single Post
  #2  
Old 06-04-2010, 12:57 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
That file does not have audio and since it is not playing in loop mode you may not notice that it plays for a few seconds when the script begins. In the following the video will also play when the spacebar is pressed:
Code:
import viz
viz.go()

object = viz.add('cylinder.wrl',pos=[0,1.5,1])
video = viz.addVideo('mona.mpg')
video.rate(.5)
object.texture(video)
video.play() 

vizact.onkeydown(' ',video.play)
Reply With Quote