[PD-dev] accessing canvas-local path from an external?

Hans-Christoph Steiner hans at eds.org
Mon Nov 20 06:47:11 CET 2006

I am trying to write a loader to support libdirs in Pd-0.40.  I would  
like to use the new ce_path (i.e. canvas-local path), but I can't  
find a way to access and change it from an external.

I tried using the t_canvas pointer that the loader gets from Pd when  
it gets called, then directly accessing the namelist (canvas->gl_env- 
 >ce_path) but that caused a crash.  Then I tried getting a  
t_canvasenvironment with:

t_canvasenvironment *canvasenvironment = canvas_getenv(canvas);

But I get: consistency check failed: canvas_getenv

This loader works fine if it just writes to the global path,  
sys_searchpath, but I would like it to use the new local namespace  
feature.  Here's the code:




If you are not part of the solution, you are part of the problem.

More information about the Pd-dev mailing list