[PD] Pd-list Digest, Vol 130, Issue 41

Dan Wilcox danomatika at gmail.com
Tue Jan 12 03:28:52 CET 2016


canvas_find works well, thanks!

https://github.com/danomatika/PdParty/blob/master/src/modules/PureData.m#L608 <https://github.com/danomatika/PdParty/blob/master/src/modules/PureData.m#L608>

--------
Dan Wilcox
@danomatika <https://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
> On Jan 11, 2016, at 1:31 PM, pd-list-request at lists.iem.at wrote:
> 
> From: Jonathan Wilkes <jancsika at yahoo.com <mailto:jancsika at yahoo.com>>
> Subject: Re: [PD] finding out if an abstraction instance exists
> Date: January 11, 2016 at 12:24:44 PM MST
> To: IOhannes m zmölnig <zmoelnig at iem.at <mailto:zmoelnig at iem.at>>, "pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>" <pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>>
> Reply-To: Jonathan Wilkes <jancsika at yahoo.com <mailto:jancsika at yahoo.com>>
> 
> 
> I can think of two ways:
> 
> 1) something like canvas_find method -- walk through every toplevel looking for a canvas_class of the relevant filename/binbuf/whatever
> 
> 2) take the abstraction's name, add "pd-" to the front, create a t_symbol* from 
> it and go spelunking in the symbol's s_thing for receivers.  But this isn't 
> foolproof, as someone can easily create a receiver with the same name as 
> an abstraction.
> 
> I encapsulated #1 in the pd-l2ork introspection objects [pdinfo] and [canvasinfo].
> 
> -Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160111/393439e0/attachment.html>


More information about the Pd-list mailing list