Sending messages to a specific video within a jit.playlist
Hi!
I would like to have a video playlist with several videos.
And operate those videos at a per frame basis, either specifying the frame or by jumping to a relative frame.
I thought the correct way to go would be to access attributes at a per video level with setclip, but this is not working, as I assume what i want is not to modify and attribute of the movie but to send a message to the movie.
That said, this is the patch, but i guess the correct question would be: can i send messages to movies inside a jit.videoplaylist?
Could you help me?
Thanks
Your assumption is right, you cannot send messages to the internal movies, but only change their attributes. But luckily you have the position attribute which takes a float between 0. and 1. to set the position of the playhead.
And if you really want to be able to access a given frame using a frame number, you can query the number of frames of a clip and do the math manually:
Alternatively, if you want more control over the individual clips, you can use [jit.polymovie] which internally is a .js file that instantiate individual [jit.movie] objects that you can target using the target message (and then use your frame messages as usual).