[PD-dev] how do I get my containing canvas? (Was: Re: [PD] relative pathes: problems with [open(-message to pd)
Claude Heiland-Allen
claudiusmaximus at goto10.org
Fri Mar 23 11:09:49 CET 2007
Steffen wrote:
> On 22/03/2007, at 23.41, Roman Haefeli wrote:
>
>> When opening patches by sending messages to pd, the path is
>> relative to
>> pd's startup-location. when loading other files (text-, audio-,
>> data-files etc) the path is set relative to the location of the patch.
>> since the patch doesn't know, where pd was started, you actually
>> cannot
>> use relative pathes when opening patches by messages without:
>
> Maybe [declare] can help you? (Pd >= 0.40)
(Maybe) relatedly:
How would I open a file relative to a patch in an external instantiated
within that patch?
canvas_open() seems to be exactly what I want, but how to get the
containing canvas of my object?
Hoping there is a solution,
Claude
--
http://claudiusmaximus.goto10.org
More information about the Pd-dev
mailing list