Forums > MaxMSP

can't set bpatcher arguments using a message

September 8, 2008 | 12:24 am

If understand correctly when I need to set the bpatcher arguments attribute I do not have to do this via the inspector but I can send a message starting ‘args’ to the bpatcher. In practice the message appears to do nothing. The bpatcher needs an inlet to receive the message and whatever is attached to the inlet gives me an error message that it doesn’t recognise the message ‘args’. If the inlet is not attached to anything the message still does nothing. Either way, checking the inspector also shows that the arguments haven’t changed. The documentation states on some bpatcher attributes that they can only be set via the inspector but not on ‘arguments’…what am I doing wrong? Try send an ‘args 10 20 30′ message to the bpatcher in ‘interface tutorial 1 bpatcher’ for a demonstration…

Thanks

Don


September 8, 2008 | 1:03 pm

Try sending it to your named bpatcher using the thispatcher object. Anything sent to the inlet of a bpatcher is passed through to the inside patcher so if you want to send messages to the bpatcher itself use the thispatcher object.


September 8, 2008 | 11:48 pm

Still doesn’t work for me – I get an error ‘patcher – doesn’t understand "args"‘. Could you post a working example demonstrating it?


September 9, 2008 | 5:12 am

i’m not so sure it is possible to set bpatchers @args by sending a message via an inlet to the bpatcher, though i’ll look into it. But, you can definitely set @args using thispatcher:

– Pasted Max Patch, click to expand. –

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