Forums > Dev

Dynamically changing inlet/outlet number

May 18, 2006 | 4:11 pm

Hi all

Is it possible to change the number of inlet or outlet from inside callback functions, eg receiving the message "inlet 5" will cause inlets to be added/deleted to get those 5 inlets.

We know from the buddy example how to change that number from passing arguments typed in the object box, but found no way for a more dynamic behaviour.

Thanks

Dominique


May 18, 2006 | 6:35 pm

I’m a little unclear as to what you’re looking for, however, it is
not possible to change the inlet or outlet count after an object has
been created. It is necessary for the user to delete the object and
re-create.

-Joshua


May 18, 2006 | 7:15 pm

You could always prefix you input/output messages with an int
specifying what "virutal inlet.outlet" messages belong to.

wes


May 19, 2006 | 2:18 pm

Thnaks for answering. My purpose was actually to change the inlet/outlet count after the object has been created. I was looking for the same behaviour you have when using the script message "replace" with arguments for changing inlet/outlet count. But probably, the script deletes the old object and creates a new one for replacement.
In fact, we found some workaround, but were interested in your answer for a better understanding of the setup/and object_new functions.

Dominique


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