FWIW pd-l2ork already has create object from an abstraction (used in K12 mode with buttons in the menu linking to various abstractions). As soon as you create an object, provided it is not autopatched, it follows mouse as soon as the pointer enters the canvas area. This could be easily repurposed to create code chunks like the one you proposed...
On 12/20/2012 09:14 AM, Hans-Christoph Steiner wrote:
pdsend allows you to send any Pd message that you can send with [send] or [; foo( so you could think of it in terms of "how would I do that in Pd?"
.hc
On Dec 19, 2012, at 11:56 PM, Jonathan Wilkes wrote:
Yeah but as you mention the connection is tricky so "Put" menu type messages to pdsend won't cut it. I can't think of a way without making a temporary patch and poisoning the clipboard, so I guess I have to do it in c. :(
-Jonathan
----- Original Message -----
From: Hans-Christoph Steiner hans@at.or.at To: Jonathan Wilkes jancsika@yahoo.com Cc: "pd-list@iem.at" pd-list@iem.at Sent: Wednesday, December 19, 2012 10:33 PM Subject: Re: [PD] gui-plugin to creat objects
Hmm, probably, but it might be tricky to make the connection. Look at the menu items for the Put menu. Basically you can use the pdsend proc to send messages like dynamic patching.
.hc
On Dec 19, 2012, at 10:17 PM, Jonathan Wilkes wrote:
[bang( | [print hello_world]
Is there a way to generate the object chain above in a gui-plugin and have
it hanging from the mouse cursor?
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list