So I've been trying to get lemurloader to work with max. Here's my goal: I'm building a modular system in max, I have subpatches loading dynamically, basicaly I have slots and I can load different things into the slot (samplers, synths.. etc), I want to have a jzlib container with an interface for each of the type of slots. What I've been trying to do is load my jzlib container into another named container that exist in the interface. This so far works.
the problem is when I want to load another jzlib and destroy the older one. I tried looking at the mu interface to figure this out and found the destroy command but this is not documented anywhere, it's part of those obscure liine programmer things^^
So any tips welcomed!
lemurloader for max
Re: lemurloader for max
This code defines an OSC script ClearContainer that will clear a container.
Also look at the topic 'Undocumented Functions' on this forum.
Cheers,
Xanadu
Code: Select all
// Syntax MaxMSP: /ClearContainer [ParentPath.]ContainerName
decl root = findobject(OSC_ARGS[0]);
decl obj = getfirst(root);
while (obj)
{
decl next = getnext(obj);
destroyobject(obj);
obj = next;
}
oscout(0, '/ClearContainer', { 'ready' });
Cheers,
Xanadu
-
- Newbie
- Posts: 30
- Joined: 23 Dec 2011 20:15
Re: lemurloader for max
thanks for that!
will check out that thread also
will check out that thread also
Re: lemurloader for max
Hi
Ofcourse if all you want to do is destroy the actual container and contents then
destroyobject(ContainerName) is all you need do ...
then import your new jzlib container into your existing host container . . .
Cheers
MM
Ofcourse if all you want to do is destroy the actual container and contents then
destroyobject(ContainerName) is all you need do ...
then import your new jzlib container into your existing host container . . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]