I`m forgetting something:

How does Pd speaks to the GUI/Javascript?

OSC?


Mensaje telepatico asistido por maquinas.



From: Pd-list <pd-list-bounces@lists.iem.at> on behalf of Lucas Cordiviola <lucarda27@hotmail.com>
Sent: Friday, January 27, 2017 4:30 AM
To: Alexandre Torres Porres; pd-list@lists.iem.at; Jonathan Wilkes
Subject: Re: [PD] Purr Data rc4
 


>You should get "42" in the nbx.


Thats right, this was the type of thing I was guessing when I mentioned the html/javascript thing.

I`m not shy to say that my knowledge on javascript in almost null, but I handle normal html+css.

We should think what is best:

A .pd file that contains all the <html>,

An .html file that contains the .pd inside a <code>,

or leaving them separated and having some sort of [htmlcanvas].

I think the “developer tools” is the natural Editor for any of the above.

L



Mensaje telepatico asistido por maquinas.



From: Jonathan Wilkes <jancsika@yahoo.com>
Sent: Friday, January 27, 2017 3:48 AM
To: Lucas Cordiviola; Alexandre Torres Porres; pd-list@lists.iem.at
Subject: Re: [PD] Purr Data rc4
 
>>Try this:
>>nw.Window.open("D:/purr-data-clean/win32_inno/build/doc/1.manual/x3.htm");



> Works, but i don't have “file edit view put media ...” in that window. On my previous example i added "_self" to window.open.

Right, these are just parts of the GUI toolkit's interface.  You are directly using
it here without Pd even knowing you've created it.  Currently the only way you
can reliably interact with Pd from there is send messages to global receivers as
I outline below with the pdsend method.

For example, if you got the "pd dsp 1" example working, try creating a new
patch and put [receive the_answer]---[nbx] in it.  Now type
pdgui.pdsend("the_answer 42");

You should get "42" in the nbx.