[PD] "get" method for Pd
Jonathan Wilkes
jancsika at yahoo.com
Fri Nov 18 03:02:53 CET 2011
----- Original Message -----
> From: Chris McCormick <chris at mccormick.cx>
> To: Jonathan Wilkes <jancsika at yahoo.com>
> Cc: Andy Farnell <padawan12 at obiwannabe.co.uk>; "pd-list at iem.at" <pd-list at iem.at>
> Sent: Thursday, November 17, 2011 8:38 PM
> Subject: Re: [PD] "get" method for Pd
>
> On Thu, Nov 17, 2011 at 05:21:29AM -0800, Jonathan Wilkes wrote:
>> ----- Original Message -----
>>
>> > From: Andy Farnell <padawan12 at obiwannabe.co.uk>
>> > To: pd-list at iem.at
>> > Cc:
>> > Sent: Thursday, November 17, 2011 8:12 AM
>> > Subject: Re: [PD] "get" method for Pd
>> >
>> >
>> >
>> > How about
>> >
>> > [; pd get self rcv-name(
>>
>> Not sure I understand this one-- what comes out of [r rcv-name] here?
>>
>> -Jonathan
>>
>> >
>> > Dumps itself. Once I wanted to get Pd patches to print themselves,
>> > can't remember how it was solved now, but the above would have
>> > been quite clear.
>
> I think what Andy means here is the actual text of the patch itself as you would
> find by looking at the .pd file in a text editor.
>
> e.g.
> #N canvas 218 94 842 634 10;
> #X obj 63 84 t a a;
> #X obj 63 241 spigot;
> #X obj 102 149 bang;
> #X obj 102 168 1;
> #X obj 223 149 route bang;
> #X obj 183 150 bang;
> ...
>
> Making 'self' a settable property would open up all kinds of lovely
> madness!
You can already do this if you know the file name of the patch. With my canvas get
method, a patch can retrieve its own filename. In either case you can also save the
a revised patch using [textfile].
-Jonathan
>
> Cheers,
>
> Chris.
>
> -------------------
> http://mccormick.cx
>
More information about the Pd-list
mailing list