Hi,
I was thinking about something which might not be possible for now:
I have a window with some data structures. I wanted to click on any of
them cause something on an other point of the patch (play a sample, move
something, etc), like if it would be a gui object. So far as I know, for
now that's not possible to do, is it? I was considering creating a small
bang button near each structure, but when the window is rescaled the
proportions will be lost, and nothing will correspond with nothing.
By the way, is there any place with updated documentation about data-s? I
realised from some patches that it's possible to set the ranges of a float
with something like "float 10:20", but that's not documented.
Joao
By the way, is there any place with updated documentation about data-s?
I realised from some patches that it's possible to set the ranges of a
float with something like "float 10:20", but that's not documented.
the example I saw is [drawnumber h(0:127)(0:127) 0 h(0:127)(-18:-145)].
Who knows what's been done after that?
Joao
Hallo, João Miguel Pais hat gesagt: // João Miguel Pais wrote:
I was thinking about something which might not be possible for now:
I have a window with some data structures. I wanted to click on any of
them cause something on an other point of the patch (play a sample, move
something, etc), like if it would be a gui object. So far as I know, for
now that's not possible to do, is it? I was considering creating a small
bang button near each structure, but when the window is rescaled the
proportions will be lost, and nothing will correspond with nothing.
Some more ways to evaluate mouse events definitely would be nice to have in Pd. for now I would recommend [tot] for this. You use it with the subpatches name like [tot data] for a [pd data] subpatch, send it a [capture 1( message and then it will report from its third outlet messages like "motion x y" etc. which you can [route] and work with.
By the way, is there any place with updated documentation about data-s? I
realised from some patches that it's possible to set the ranges of a float
with something like "float 10:20", but that's not documented.
It's not documented in the reference patches yet, but in doc/4.data.structures/*.pd
"f(0:100)(0:20)" is documented in doc/4.data.structures/09.scaling.pd
Frank Barknecht _ ______footils.org_ __goto10.org__
It's not documented in the reference patches yet, but in doc/4.data.structures/*.pd
"f(0:100)(0:20)" is documented in doc/4.data.structures/09.scaling.pd
how about some of these features for the data structures:
mouse click detection
"set" flag or any other dynamic handling possibility
a consistent colour plan for the several parts of pd (gui-30?, gui-rgb,
data-s, gem) that would also be consistent with any of the present
standards (there was a thread about it some time ago). If you look at my
patch "farben-data-s" in my puredata folder (address below), you'll see
that there aren't that many colours for the data-s, since lots of them are
repeated.
I use the tot object from the toxy external to do this. It works beautifully. It has to have the name of the target window as its first argument, and if you send it a "capture 1" message, it will output all mouse and keyboard activity from the target window, which you can filter and map to scalars.
On 7/2/06, João Miguel Pais jmmmpais@googlemail.com wrote:
Hi,
I was thinking about something which might not be possible for now:
I have a window with some data structures. I wanted to click on any of them cause something on an other point of the patch (play a sample, move something, etc), like if it would be a gui object. So far as I know, for now that's not possible to do, is it? I was considering creating a small bang button near each structure, but when the window is rescaled the proportions will be lost, and nothing will correspond with nothing.
By the way, is there any place with updated documentation about data-s? I realised from some patches that it's possible to set the ranges of a float with something like "float 10:20", but that's not documented.
Joao
-- Lugostr. 14 79100 Freiburg i. Br. Deutschland +49 (0)761 7074997 jmmmpais@googlemail.com http://www.puredata.org/Members/jmmmp
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I use the tot object from the toxy external to do this. It works beautifully. It has to have the name of the target window as its first argument, and if you send it a "capture 1" message, it will output all mouse and keyboard activity from the target window, which you can filter and map to scalars.
in XP with pd-ext pd crashes everytime I try to load the help patch - but
not when I create a [tot] object. I've never used it before, can someone
send a working patch just to see if I can do something with it?