On Tue, 2011-03-08 at 10:59 -0500, Tedb0t wrote:
Greetings all,
I am looking for a way to create an external that outputs the name, number of inlets and outlets every time an object in a patch (or perhaps anywhere?) is instantiated. I'm aware of obj_ninlets and obj_noutlets and other functions in m_obj.c, but I need a hook that gets called whenever an object is initialized so I can grab its information.
If anyone has any pointers, I would be most grateful :) :)
Looks like Miller answered part of this question in the "listing all available objects" thread:
there's a line in m_class.c in the class_new() function, just before the end, that you can uncomment to get Pd to print out every class as it's loaded (but not abstractions).
.hc