- May 5, 2021
- 226
- 492
I'm trying to apply partial playback to randomly displayed videos
I've gotten it to work to some extent after referring to the
As always, we can't define the video first because we don't know anything about the movie in question, only that it's probably compatible with Ren'Py...
My usual method for displaying a video:
I couldn't find a way to apply <from to> to my usual method so I have to venture out of my comfort zone.
Play movie:
So majestic and simple. Almost too easy. Almost.
This plays the sound through the music mixer. Unless I want to rewrite all of my code, I need to make this play through the voice mixer.
Easy fix...
Create a channel using a different mixer:
Sounds great... but now there's no video.
Only sound.
I was originally going to show all of the combinations of show/play, channels, and Movie() combinations but it doesn't seem as funny anymore.
Someone please give me the juice for this one. I feel like an infant trying to mash the square piece in the circle hole.
I've gotten it to work to some extent after referring to the
You must be registered to see the links
, but I've run into an issue at every turn along the way.As always, we can't define the video first because we don't know anything about the movie in question, only that it's probably compatible with Ren'Py...
video_clip = "videos/the_move.webm"
My usual method for displaying a video:
Python:
init python:
renpy.music.register_channel("animation", mixer="voice", loop=False, stop_on_mute=False, tight=False, movie=True)
setattr(store, video_clip, Movie(size=(1280,720), play="{}".format("Videos/the_movie.webm"), channel="animation"))
label start:
show expression getattr(store, video_clip) as tmpmovie
Play movie:
Code:
label start:
play movie "<from 5.0 to 10.0>videos/the_move.webm"
This plays the sound through the music mixer. Unless I want to rewrite all of my code, I need to make this play through the voice mixer.
Easy fix...
Create a channel using a different mixer:
Python:
init python:
renpy.music.register_channel("new_channel", mixer="voice", loop=False, stop_on_mute=False, tight=False, movie=True)
label start:
play new_channel "<from 5.0 to 10.0>videos/the_move.webm"
Only sound.
I was originally going to show all of the combinations of show/play, channels, and Movie() combinations but it doesn't seem as funny anymore.
Someone please give me the juice for this one. I feel like an infant trying to mash the square piece in the circle hole.