MovieTexture
from panda3d.core import MovieTexture
- class MovieTexture
- Bases: - Texture- A texture that fetches video frames from an underlying object of class Movie. - Inheritance diagram - __init__(*args, **kwargs)
 - getAlphaCursor()
- C++ Interface: get_alpha_cursor(const MovieTexture self, int page) - /**
- Returns the MovieVideoCursor that is feeding the alpha channel for the 
- indicated page, where 0 <= page < get_num_pages(). 
 - */ 
 
 - getClassType()
- C++ Interface: get_class_type() 
 - getColorCursor()
- C++ Interface: get_color_cursor(const MovieTexture self, int page) - /**
- Returns the MovieVideoCursor that is feeding the color channels for the 
- indicated page, where 0 <= page < get_num_pages(). 
 - */ 
 
 - getLoop()
- C++ Interface: get_loop(MovieTexture self) - /**
- Returns true if the movie’s loop count is not equal to one. 
 - */ 
 
 - getLoopCount()
- C++ Interface: get_loop_count(MovieTexture self) - /**
- Returns the movie’s loop count. 
 - */ 
 
 - getTime()
- C++ Interface: get_time(MovieTexture self) - /**
- Returns the current value of the movie’s cursor. If the movie’s loop count 
- is greater than one, then its length is effectively multiplied for the 
- purposes of this function. In other words, the return value will be in the 
- range 0.0 to (length * loopcount). 
 - */ 
 
 - getVideoHeight()
- C++ Interface: get_video_height(MovieTexture self) - /**
- Returns the height in texels of the source video stream. This is not 
- necessarily the height of the actual texture, since the texture may have 
- been expanded to raise it to a power of 2. 
 - */ 
 
 - getVideoLength()
- C++ Interface: get_video_length(MovieTexture self) - /**
- Returns the length of the video. 
 - */ 
 
 - getVideoWidth()
- C++ Interface: get_video_width(MovieTexture self) - /**
- Returns the width in texels of the source video stream. This is not 
- necessarily the width of the actual texture, since the texture may have 
- been expanded to raise it to a power of 2. 
 - */ 
 
 - get_alpha_cursor()
- C++ Interface: get_alpha_cursor(const MovieTexture self, int page) - /**
- Returns the MovieVideoCursor that is feeding the alpha channel for the 
- indicated page, where 0 <= page < get_num_pages(). 
 - */ 
 
 - get_class_type()
- C++ Interface: get_class_type() 
 - get_color_cursor()
- C++ Interface: get_color_cursor(const MovieTexture self, int page) - /**
- Returns the MovieVideoCursor that is feeding the color channels for the 
- indicated page, where 0 <= page < get_num_pages(). 
 - */ 
 
 - get_loop()
- C++ Interface: get_loop(MovieTexture self) - /**
- Returns true if the movie’s loop count is not equal to one. 
 - */ 
 
 - get_loop_count()
- C++ Interface: get_loop_count(MovieTexture self) - /**
- Returns the movie’s loop count. 
 - */ 
 
 - get_time()
- C++ Interface: get_time(MovieTexture self) - /**
- Returns the current value of the movie’s cursor. If the movie’s loop count 
- is greater than one, then its length is effectively multiplied for the 
- purposes of this function. In other words, the return value will be in the 
- range 0.0 to (length * loopcount). 
 - */ 
 
 - get_video_height()
- C++ Interface: get_video_height(MovieTexture self) - /**
- Returns the height in texels of the source video stream. This is not 
- necessarily the height of the actual texture, since the texture may have 
- been expanded to raise it to a power of 2. 
 - */ 
 
 - get_video_length()
- C++ Interface: get_video_length(MovieTexture self) - /**
- Returns the length of the video. 
 - */ 
 
 - get_video_width()
- C++ Interface: get_video_width(MovieTexture self) - /**
- Returns the width in texels of the source video stream. This is not 
- necessarily the width of the actual texture, since the texture may have 
- been expanded to raise it to a power of 2. 
 - */ 
 
 - isPlaying()
- C++ Interface: is_playing(MovieTexture self) - /**
- Returns true if the movie’s cursor is advancing. 
 - */ 
 
 - is_playing()
- C++ Interface: is_playing(MovieTexture self) - /**
- Returns true if the movie’s cursor is advancing. 
 - */ 
 
 - loop
 - loop_count
 - play_rate
 - playing
 - restart()
- C++ Interface: restart(const MovieTexture self) - /**
- Start playing the movie from where it was last paused. Has no effect if 
- the movie is not paused, or if the movie’s cursor is already at the end. 
 - */ 
 
 - setLoop()
- C++ Interface: set_loop(const MovieTexture self, bool enable) - /**
- If true, sets the movie’s loop count to 1 billion. If false, sets the 
- movie’s loop count to one. 
 - */ 
 
 - setLoopCount()
- C++ Interface: set_loop_count(const MovieTexture self, int count) - /**
- Sets the movie’s loop count to the desired value. 
 - */ 
 
 - setPlayRate()
- C++ Interface: set_play_rate(const MovieTexture self, double play_rate) - /**
- Sets the movie’s play-rate. This is the speed at which the movie’s cursor 
- advances. The default is to advance 1.0 movie-seconds per real-time 
- second. 
 - */ 
 
 - setTime()
- C++ Interface: set_time(const MovieTexture self, double t) - /**
- Sets the movie’s cursor. 
 - */ 
 
 - set_loop()
- C++ Interface: set_loop(const MovieTexture self, bool enable) - /**
- If true, sets the movie’s loop count to 1 billion. If false, sets the 
- movie’s loop count to one. 
 - */ 
 
 - set_loop_count()
- C++ Interface: set_loop_count(const MovieTexture self, int count) - /**
- Sets the movie’s loop count to the desired value. 
 - */ 
 
 - set_play_rate()
- C++ Interface: set_play_rate(const MovieTexture self, double play_rate) - /**
- Sets the movie’s play-rate. This is the speed at which the movie’s cursor 
- advances. The default is to advance 1.0 movie-seconds per real-time 
- second. 
 - */ 
 
 - set_time()
- C++ Interface: set_time(const MovieTexture self, double t) - /**
- Sets the movie’s cursor. 
 - */ 
 
 - stop()
- C++ Interface: stop(const MovieTexture self) - /**
- Stops a currently playing or looping movie right where it is. The movie’s 
- cursor remains frozen at the point where it was stopped. 
 - */ 
 
 - synchronizeTo()
- C++ Interface: synchronize_to(const MovieTexture self, AudioSound sound) - /**
- Synchronize this texture to a sound. Typically, you would load the texture 
- and the sound from the same AVI file. 
 - */ 
 
 - synchronize_to()
- C++ Interface: synchronize_to(const MovieTexture self, AudioSound sound) - /**
- Synchronize this texture to a sound. Typically, you would load the texture 
- and the sound from the same AVI file. 
 - */ 
 
 - time
 - unsynchronize()
- C++ Interface: unsynchronize(const MovieTexture self) - /**
- Stop synchronizing with a sound. 
 - */ 
 
 - video_height
 - video_length
 - video_width
 
