----- Original Message -----
> From: Chris McCormick <[email protected]>
> To: Jonathan Wilkes <[email protected]>
> Cc: Andy Farnell <[email protected]>; "[email protected]"
> <[email protected]>
> 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 <[email protected]>
>> > To: [email protected]
>> > 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
>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list