Hello,
I'm working on a struct where I use the variable aa to calculate
something, and the variable bb [bb == aa - 1] to display it (due to screen
display). If I edit one of them with mouse-dragging is there a way to
update the other one directly, besides building a get aa -> set bb circuit
on the side (which has to be constantly triggered with a metro)?
I can't remember anything. I think it would be good to have also these
internal math applications on data-s, and / or a way to make some
variables dynamically (and directly) linked with each other, so that they
can be updated with no delays or other kind of external triggering (this
is actually connected with my request a few days ago about a mouse-click
detector for data-s. I think it would be a great improvement in terms of
usability).
Joao
Hallo, João Miguel Pais hat gesagt: // João Miguel Pais wrote:
I'm working on a struct where I use the variable aa to calculate
something, and the variable bb [bb == aa - 1] to display it (due to screen
display). If I edit one of them with mouse-dragging is there a way to
update the other one directly, besides building a get aa -> set bb circuit
on the side (which has to be constantly triggered with a metro)?I can't remember anything. I think it would be good to have also these
internal math applications on data-s, and / or a way to make some
variables dynamically (and directly) linked with each other, so that they
can be updated with no delays or other kind of external triggering (this
is actually connected with my request a few days ago about a mouse-click
detector for data-s. I think it would be a great improvement in terms of
usability).
I don't think, blowing up the data structures with many more functions (one could think of more than just math) is a practical approach, as in the end it would mean to build a kind of second Pd inside Pd's data structures.
As I see it, this is another case where some way to detect changes of data in a ds-instance would help a great deal. There already is the starting for this available with the [struct] object's outlet, that sends a pointer, if an instance is selected in Edit mode. One could do all math or list or symbol processing that Pd is capable of with this pointer using normal Pd objects.
However there still is no way to detect a change outside of edit mode and no way to detect changes through other means (though these originate somewhere in Pd anyways and thus they can be intercepted from there.)
Frank Barknecht _ ______footils.org_ __goto10.org__
As I see it, this is another case where some way to detect changes of data in a ds-instance would help a great deal. There already is the starting for this available with the [struct] object's outlet, that sends a pointer, if an instance is selected in Edit mode. One could do all math or list or symbol processing that Pd is capable of with this pointer using normal Pd objects.
However there still is no way to detect a change outside of edit mode and no way to detect changes through other means (though these originate somewhere in Pd anyways and thus they can be intercepted from there.)
true, if a "detect when active" flag is available, that would be enough,
all the rest can be made somewhere else.
edit mode only helps when the task is about moving an existing structure.
changing it with the mouse must be done outside of edit mode.
it is possible to change the structure with send, or also with external
gui->set combination, but that's not as intuitive as doing it directly on
the screen.
Hi all,
I'm working on haveing data struture templates 'catch' changes in fields so that they can react any way they want. It's hard to figure out how to make this efficient. The "0.40" pre-release has some of this now, although it isn't docvumented yet (messages appear on teh outlet of the 'struct' object when something gets cselected or dragged with the mouse...)
cheers M On Thu, Jul 06, 2006 at 01:29:36PM +0200, Jo?o Miguel Pais wrote:
As I see it, this is another case where some way to detect changes of data in a ds-instance would help a great deal. There already is the starting for this available with the [struct] object's outlet, that sends a pointer, if an instance is selected in Edit mode. One could do all math or list or symbol processing that Pd is capable of with this pointer using normal Pd objects.
However there still is no way to detect a change outside of edit mode and no way to detect changes through other means (though these originate somewhere in Pd anyways and thus they can be intercepted from there.)
true, if a "detect when active" flag is available, that would be enough,
all the rest can be made somewhere else.edit mode only helps when the task is about moving an existing structure.
changing it with the mouse must be done outside of edit mode. it is possible to change the structure with send, or also with external
gui->set combination, but that's not as intuitive as doing it directly on
the screen.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I'm working on haveing data struture templates 'catch' changes in fields so that they can react any way they want. It's hard to figure out how to make this efficient. The "0.40" pre-release has some of this now,
although it isn't docvumented yet (messages appear on teh outlet of the 'struct' object when something gets cselected or dragged with the mouse...)
for the patch I am making (but I think it would be useful to all), it
would be very nice if it could be detected when the value of a float is
changed by click+dragging with the mouse. That means, not in edit mode.
Would maybe a detector for the changes of values be possible?
something nice, if possible, would be also a "click-detector", or a
variable which would respond to when the user clicks on a struct, like a
bang. again, these two objects would be not in edit mode. I think would be
important, in case the patches would be handled only by "users", i.e., the
persons that didn't programmed the patch.
keep up the good work,
Joao
Hallo, João Miguel Pais hat gesagt: // João Miguel Pais wrote:
I'm working on haveing data struture templates 'catch' changes in fields so that they can react any way they want. It's hard to figure out how to make this efficient. The "0.40" pre-release has some of this now,
although it isn't docvumented yet (messages appear on teh outlet of the 'struct' object when something gets cselected or dragged with the mouse...)for the patch I am making (but I think it would be useful to all), it
would be very nice if it could be detected when the value of a float is
changed by click+dragging with the mouse. That means, not in edit mode.
Would maybe a detector for the changes of values be possible?
I think this is exactly what Miller is implementing currently. I didn't play yet with this part of 0.40, but you could give it a try (beware of the [pd $num] bug in current cvs, though, I'm not sure if this is fixed already)
something nice, if possible, would be also a "click-detector", or a
variable which would respond to when the user clicks on a struct, like a
bang. again, these two objects would be not in edit mode. I think would be
important, in case the patches would be handled only by "users", i.e., the
persons that didn't programmed the patch.
Or if you use a data structure in GOP mode, where you cannot go to edit mode for the structure subpatch anyway.
Frank Barknecht _ ______footils.org_ __goto10.org__
On Sun, Jul 09, 2006 at 10:36:07AM +0200, João Miguel Pais wrote:
I'm working on haveing data struture templates 'catch' changes in fields so that they can react any way they want. It's hard to figure out how
would be very nice if it could be detected when the value of a float is
changed by click+dragging with the mouse. That means, not in edit mode.something nice, if possible, would be also a "click-detector", or a
Heck yeah! I 2nd all of the above.
Best,
Chris.
chris@mccormick.cx http://mccormick.cx
On Jul 6, 2006, at 5:54 AM, Frank Barknecht wrote:
Hallo, João Miguel Pais hat gesagt: // João Miguel Pais wrote:
I'm working on a struct where I use the variable aa to calculate something, and the variable bb [bb == aa - 1] to display it (due
to screen display). If I edit one of them with mouse-dragging is there a way to update the other one directly, besides building a get aa -> set bb
circuit on the side (which has to be constantly triggered with a metro)?I can't remember anything. I think it would be good to have also
these internal math applications on data-s, and / or a way to make some variables dynamically (and directly) linked with each other, so
that they can be updated with no delays or other kind of external triggering
(this is actually connected with my request a few days ago about a mouse- click detector for data-s. I think it would be a great improvement in
terms of usability).I don't think, blowing up the data structures with many more functions (one could think of more than just math) is a practical approach, as in the end it would mean to build a kind of second Pd inside Pd's data structures.
As I see it, this is another case where some way to detect changes of data in a ds-instance would help a great deal. There already is the starting for this available with the [struct] object's outlet, that sends a pointer, if an instance is selected in Edit mode. One could do all math or list or symbol processing that Pd is capable of with this pointer using normal Pd objects.
However there still is no way to detect a change outside of edit mode and no way to detect changes through other means (though these originate somewhere in Pd anyways and thus they can be intercepted from there.)
I think a generic [cursor] object would be very useful here. It
would give you the screen coordinates, button press info, and cursor
icon (pointer, delete X, connect O, etc.). Krzysztof's [MouseState]
does the coords and button info already, but I haven't been able to
decipher the Pd GUI object API and the cyclone API enough to get
[cursor] working. I have taken tried the code from Günter's
[gcanvas] also, but it doesn't output anything. Could anyone give me
some pointers? My attempt is here:
externals/hcs/cursor.c
Also, any ideas on getting the cursor icon state?
.hc
On Thu, 6 Jul 2006, Frank Barknecht wrote:
As I see it, this is another case where some way to detect changes of data in a ds-instance would help a great deal. There already is the starting for this available with the [struct] object's outlet, that sends a pointer, if an instance is selected in Edit mode. One could do all math or list or symbol processing that Pd is capable of with this pointer using normal Pd objects. However there still is no way to detect a change outside of edit mode and no way to detect changes through other means (though these originate somewhere in Pd anyways and thus they can be intercepted from there.)
I want this *and* the ability to make custom renderers for those structures. I mean, one should be able to make an abstraction that plays the same role as [drawpolygon] yet uses [drawpolygon] as its implementation, so that e.g. if I want to draw stuff in polar or log coords (or anything else) I don't have to store both the "internal coordinates" and the "apparent coordinates" in the object. The system should also allow structures to respond to clicks in a user-defined way which could be included in [drawpolygon]-like abstractions, or as a separate object.
Those are again the same MVC ideas as developed at XEROX-PARC in the 1970's and which are getting popular in GUI design and web design these years (finally).
A way of detecting changes is central to MVC and is called Observable/Observer or Publish/Subscribe. However, MVC is more than just that.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada