AVI Movies.

Hello, i would like to know how to make an Avi video just dont loop…
is for a presentation of a game…

looking into manual, could not understand how to stop looping or just make loop zero times…

Have you tried tex.setLoop(False)?

David

yes, tried, but does not work… this is that i have :

import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject

class Video(DirectObject):
	
	def __init__(self):
	
		#base.disableMouse()
		base.setBackgroundColor(0,0,0)

		animPlane = loader.loadModel("../intro_media/animation")
		animPlane.reparentTo(render2d)
		animPlane.setScale(2, 0, 3)
		animPlane.setPos(0.19, 0, 0.6)
			
		aviMovie = loader.loadTexture("../intro_media/intro.avi")
		animPlane.setTexture(aviMovie, 1)
		aviMovie.setPlayRate(0.4)
		aviMovie.setLoop(False)
		
		bgm = loader.loadSfx("../intro_media/bgm.mp3")
		bgm.setVolume(1)
		bgm.play()
								
	
v = Video()
run()

Try calling aviMovie.play() after you have called aviMovie.setLoop(False).

David

yes!, that was. thanks …