--- On Sat, 1/10/09, Mike McGonagle mjmogo@gmail.com wrote:
From: Mike McGonagle mjmogo@gmail.com Subject: Re: [PD] Outlet on 'struct' object To: pd-list@iem.at Date: Saturday, January 10, 2009, 6:49 AM Yeah, this is really nice. One thing I noticed was that if I click and hold directly over the drawn line connected to the active float inlet, you can drag and it sends a 'change' message, it also redraws the line by following the mouse. Is there anyway to get the mouse coordinates such that it can be used as input to control the struct data? It would be really nice if this type of thing could be abstracted to allow for a variable number of inlets to switch.
Mike
I made a mockup of how this could work using ds dummy-objects, which you can see in vswitch_mockup.pd. This just shows that when you pull the arrow, another inlet would have to be created inside the abstraction.
I also made a vswitch abs that would work if you could associate dynamic patching with data structures. The necessary objects are comments in pd-inlet-template: [drawobj] and [drawconnect]. The idea would be that the object chain is created as an element of an instance of a ds, so you could plot an array then use [setsize] to create and destroy the objects as necessary.
But test.pd reveals a bug: any ds object created (or made visible) after the abstraction loads will bleed through onto the parent.
-Jonathan
On Fri, Jan 9, 2009 at 10:29 PM, Luke Iannini lukexipd@gmail.com wrote:
That's extremely nice - good stuff. I didn't
know GOP datastructures
could be done so easily now; I remember it being
weirder.
I'd love to start a collection of GUI objects like
this - looks like
the "change" selector is working as well, so
perhaps an "advanced
slider" can finally be done! Mind if I add it to
a "ds-gui" section
in SVN?
Thanks for sending it along Luke
On Fri, Jan 9, 2009 at 4:30 PM, Jonathan Wilkes
jancsika@yahoo.com wrote:
I made a clone of max's "gswitch"
using the click selector a while back. With 0.42, you can click the gop window to switch inputs.
--- On Sat, 1/10/09, Mike McGonagle
mjmogo@gmail.com wrote:
From: Mike McGonagle mjmogo@gmail.com Subject: Re: [PD] Outlet on 'struct'
object
To: pd-list@iem.at Date: Saturday, January 10, 2009, 1:06 AM Ok, I tried it on the sequence example, and it
only seems to
output stuff in Edit Mode. Is that correct? Plus, it
also seems to
only output 'select' and 'deselect'
messages. It
also seems to repeatedly output them when you 'select' and drag
an object.
Is this a new feature? (I seem to remember
reading
something about mouse events for structs in 42) Are there any
examples of
how these are used?
Mike
On Fri, Jan 9, 2009 at 4:42 PM, Frank
Barknecht
fbar@footils.org wrote:
Hallo, Mike McGonagle hat gesagt: // Mike
McGonagle wrote:
I was just curious, and looking at
the source was
not all that
obvious, but does anyone know what
the outlet on a
'struct' object is
used for?
It reports selected and clicked (and
maybe more) data
structure instances.
Connect a [print] to it and select some
objects to see
the messages. The
outlet sends messages composed of a
selector and a
gpointer, which you
can route to [get] objects for example.
It's
pretty useful!
Ciao
Frank
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
-- Peace may sound simple—one beautiful word—
but it
requires everything we have, every quality, every strength, every
dream, every
high ideal. —Yehudi Menuhin (1916–1999), musician
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
-- Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list