[PD] getting the name/receive symbol of a patch/subpatch
Mathieu Bouchard
matju at artengine.ca
Thu Jul 13 03:06:28 CEST 2006
On Wed, 12 Jul 2006, Hans-Christoph Steiner wrote:
> Does anyone know a way to get the name of a patch or subpatch from
> within Pd? Basically I want to dynamically get the name that you would
> use like this:
>
> [; pd-myobject.pd(
>
> The actual filename would work too. It seems to me that this should be part
> of a standard, message-based querying mechanism which could also be used for
> patch meta data like local namespace, current dir, etc.
this can be done by modifying [getpatchname] (supposing its
canvas_getcurrent bug gets fixed).
For a root t_canvas *x, instead of looking up x->gl_name, look up
canvas_getenv(x)->ce_dir, which is also a t_symbol *.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-list
mailing list