Forums > Jitter

Dynamically change jit.playlist content

Feb 16 2017 | 11:56 am

Hi all,
Is there any way to add and remove movies in jit.playlist other than drag and drop? For example, I’d like to have a single jit.playlist in my patch and change the playlists inside it as ‘scenes’ change (using pattrstorage).

Is there any way to do this?



Feb 17 2017 | 5:53 am

Ok, I sorted it out by reading [playlist~] reference: you can use the "append" and "remove" messages to add and remove items in the playlist…
Now I just have to cook some method to store the playlists and recall them… I think it’s time to learn to use dictionaries!

Feb 18 2017 | 1:38 am

Here’s how to save different jit.playlists in a nested dictionary.

-- Pasted Max Patch, click to expand. --

Now, I’m struggling to figure out how to extract the relevant data from the dict… can anyone help?

Mar 19 2017 | 10:22 am

After weeks of struggling and dealing with objects and their own peculiarity and idiosyncracies… I finally came up with something usable.

-- Pasted Max Patch, click to expand. --

You can store and recall playlists, including the "loop" and "selection" options.

As you can see, it’s pretty complicated and convoluted… so any hint towards simplifying this kind of management (maybe JS would a good place to do all of this in just a couple of FOR loops? ) is highly appreciated!

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter