Hallo,
best boy hat gesagt: // best boy wrote:

> is there a way to keep track of the number of opened instances of an external?
> if so, can anyone point me to an example object?

You could wrap it inside an abstraction which has a running counter
stored in a [value MYOBJECTCOUNT] object. "MYOBJECTCOUNT" should be
unique. The counter then gets incremented with each new instance of
your abstraction. You cannot delete objects though without the counter
getting out of sync unless you use a Pd with [closebang] or so.

For various obvious reasons, this is not a very good general
solution, though.

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__

Attachment: objcounter.pd
Description: application/puredata

Attachment: objcounter-help.pd
Description: application/puredata

_______________________________________________
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev

Reply via email to