[PD] Purr Data rc4

Lucas Cordiviola lucarda27 at hotmail.com
Tue Jan 31 02:48:20 CET 2017

try adding this lines to "pd_canvas.html" overwriting the </head>:

  <body class="patch_body">
<div style="position: fixed;
    top: 0;
    left: 0; z-index: -1;"><iframe src="http://lucarda.com.ar/pd-tutorial" width="600" height="400"></iframe></div>

As the <div> is below and fixed position, mouse coordinates remain there and [objects] are above. But the iframe is not going down. There might be different cases, but surely no one will want a scrollable iframe with objects above it.

z-index on <div> is the ready-made [htmlcanvas]

I don't know if links are operational in z-index:-1, nor what would happen if the SVG thing is done on grater z-index.

2 & 3)
default pd_canvas.html is OK, there must be an arbitrary html Open dialog. BUT/AND here is the future? Mixing html&pd? That will be cool?

Of course this breaks vanilla comp. But anyone can still copy the .pd & save it to a new patch in standard .pd format.

Why refactor? That is OK, I`m missing something?

I can browse local files like any browser, but I cant browse online, it just crash the window whenever I request other page than which I loaded via:


on a new patch of course.

>Try using devtools and the existing interface....

devtools seems impossible for me, crashes when saving.



Mensaje telepatico asistido por maquinas.

From: Jonathan Wilkes <jancsika at yahoo.com>
Sent: Monday, January 30, 2017 10:53 PM
To: Lucas Cordiviola; Alexandre Torres Porres; pd-list at lists.iem.at
Subject: Re: [PD] Purr Data rc4

> Or describe what has to be done.

> May be someone reading may want to participate.

One related area is Ivica's K12 module in Pd-l2ork.  That is something
I haven't ported yet.

It could probably be implemented using data structures, but I'd bet it would
be a lot easier to just use an HTML template to display a column with a menu
next to the patch.

So a solution to that probably looks a lot like the solution to your feature
1) How to add HTML above/below the Pd canvas SVG in a Pd patch.  This
probably requires changing some code in the mouse event handlers which
currently deal with pageX and pageY coordinates.  If arbitrary HTML is surrounding
the SVG then we'll have to use a different way to figure out the mouse coords
relative to the SVG instead of the document.
2) How to use that template instead of the default pd_canvas.html template in
3) How to create and open an arbitrary html template using the Open dialog
4) How to refactor anything that currently depends on the Pd canvas SVG being
the only visible element inside a patch window.

That's probably a good start.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170131/319d84d3/attachment.html>

More information about the Pd-list mailing list