Randomizing video length

julian G.'s icon

Hello, Im trying to randomize the length position of a video but the video object keeps shifting itself to the left. Was wondering if it's some sort of bug but i'm not sure. Let me know if so or if there's any other patching options, thanks!

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

to set the playback position of a jit.playlist movie item, use the setclip message followed by the index of the clip you'd like to affect (1 in your case) followed by the message or attribute. Also make sure the clip is playing if you want to affect the position.

Max Patch
Copy patch and select New From Clipboard in Max.

Your patch may have worked as you expected in previous versions of Max 8, but with 8.1.4 the playlist object was overhauled and therefore this change in behavior (there were many issues with the previous behavior that are now fixed with the setclip behavior).

julian G.'s icon

Can confirm this works, thanks Rob!