dynamically resizing pack object
I've searched for this topic, but can't find any info.
Is there any way to create a new pack object by specifiying its size rather than by a series of numbers?
I would like to be able to "resize" it by deleting the current one and then creating a new one of the desired size and making all the necessary connections using the js. object.
Problem is, even when creating a new one using javascript, you need to list the arguments separated by commas. As far as I can tell, I can't take a list as an argument. So how can I just take a size argument and generate a pack?
Hi.
This is not JS but it may give you some ideas.
thanks, but I can't seem to open the patch. I added a max v2; to the top, but it still wont open.
Things around here are simpler than that -- just drag over all the lines starting with #P, copy them, then select "New from Clipboard" in MAX's File menu. Voila.
Max patchers sorta co-exist as text files, making them ultra-easy to transport. You can Select All your objects in a patcher, go to any text program, and paste it.
Murray Doodman schrieb:
> Is there any way to create a new pack object by specifiying its size
> rather than by a series of numbers?
I have a packer and unpacker abstraction which does that, its using
scripting to do its magic. You might want to look at it and maybe move
the scripting parts into your js... (Its in the abhaXions, which can be
downloaded with the St.ools from cycling74/share...)
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
thanks people. The first approach mentioned works perfectly. I initially tried with zl join, but I need something that behaves exaclty like pack, whereas with the zl join approach I get problems with propagation. (don't feel like going into detail..)