[PD] setting directory of root canvases

Hans-Christoph Steiner hans at at.or.at
Wed Nov 18 05:26:05 CET 2009


This is old, but perhaps still useful.  If you want to set the dir,  
then you need to create the patch in that dir.  Look at menu_new and  
the new patch creation stuff in pd.tk/u_main.tk

.hc

On Oct 9, 2009, at 2:48 AM, Orm Finnendahl wrote:

> Hi,
>
> Is it possible to set the path of a root canvas (something like
> canvas_setdir())? Or alternatively, is it possible to set the path any
> new root canvas will get before it is generated? It seems this path
> initially is set to the path pd was started in.
>
> The code generates an object by calling new_anything() without prior
> calling of canvas_setcurrent(). That seems to allocate a new root
> canvas with the object inside. I would like to set the path of that
> canvas. I know that using canvas_setcurrent() before generating the
> object will make it inheriting the path from the enclosing canvas, but
> the object I'm generating has to reside in a new root canvas.
>
> 2. is there a function to retrieve the canvas of an object through
> the objact's handle?
>
> --
> Orm
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



----------------------------------------------------------------------------

The arc of history bends towards justice.     - Dr. Martin Luther  
King, Jr.






More information about the Pd-list mailing list