Setting dict.strip keys attribute

Nov 15, 2011 at 10:35am

Setting dict.strip keys attribute

Having a bit of trouble here and wondering if anyone can help..

I’m trying to use dict.strip to remove unused keys in a pattern editor patch- user can set a range of keys to work in with a number box but will leave unused ones if they lower the range.

I’m using the attrui object to set the keys to strip, but what it takes in seems to be quite unpredictable…missing out first item or duplicating items. I can’t tell if this is down to something I’m doing wrong or if it’s a bug.

Here’s the problem area:

– Pasted Max Patch, click to expand. –
#60025
Nov 15, 2011 at 10:52am

Almost as soon as I hit send I realised that I should have checked to see if a message (keys “1″ “2″ etc.) directly into dict.strip would work. That’s solved my immediate problem.

#216110

You must be logged in to reply to this topic.