dynamically change zlmaxsize bug?

bitwise's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I can't seem to dynamically set zlmaxsize greater than 256 using messages or the attribute inspector. Also, I can only decrease the value, never increase it. It works fine if I explicitly use @zlmaxsize in the object. Am I doing something wrong?

Emmanuel Jourdan's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can change it on the fly, but in your example what's happening is that zl.group on the left is initialized with a default zlmaxsize of 256, so the argument 1024 it too big for the actual size that zl.group is ready to receive so 1024 is replaced by the maximum size (256). When you change the zlmaxsize afterward, zl.group doesn't update the number of elements to group so it still stays at 256. You have to send the number of elements to group again after changing the zl.group size.

bitwise's icon

Ah, that makes sense. It would have taken me while to figure that out. Cheers!