Re: "Click" and "Change" Notifications for Array Elements in Data Structures

Alexandre Torres Porres <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <CAEAsFmgoA2W-5oA6YYJ=MY72tRzeS9hyaLDtahyVNcz13huNtw@mail.gmail.com>
It seems that if you [print] from the element's struct you get 'click
messages' with pointers for every element in the array when clicking, is
that it?

I guess this same [struct] should then just also send a 'change' message
for the pointer of the element that is being changed. It does make sense
and seems like a natural thing given how stuff works in general. I'd like
to see that!

I haven't looked at the code, but I guess you could just open this request
on github.

cheers

Em sáb., 10 de ago. de 2024 às 12:06, Pier Bar <[email protected]>
escreveu:

> Thank you for the advice, I didn't know that Purr-Data had this capability
> for arrays! However, it seems that even there, structures behave similarly
> regarding this issue. It's true that "clicked" messages are sent, but they
> trigger when clicking on an undefined area of the canvas that represents
> the entire structure, even in the case of multiple arrays. Additionally,
> these messages return the coordinates of each element but not when clicking
> on the elements themselves...
>
> The goal would be to make the substructure that identifies each element
> able to detect multiple coordinates. I wonder how challenging this would be.
>
> Il giorno sab 10 ago 2024 alle ore 11:36 João Pais <[email protected]>
> ha scritto:
>
>> arrays do send click messages when clicked - unless you're dragging the
>> mouse for a long time, a partial solution could be to use the message to
>> trigger a time-limited polling (and when this polling finds differences,
>> activates itself again).
>>
>>
>> > Hello,
>> >
>> > I've noticed that while structures in Pure Data usually can send
>> > "click" and "change" notifications when modified, this behavior
>> > doesn't seem to apply to the elements of an array within these
>> > structures (apart from polling solutions like using [metro]).
>> >
>> > How difficult would it be to change this behavior in the future, or
>> > would Pure Data's architecture not easily allow for it?
>> >
>> > Best regards,
>> >
>> > Pierpaolo Barbiero
>>
>>  ---
>> Pd-list - [email protected]
>>
>> https://lists.iem.at/hyperkitty/list/[email protected]/message/RK37WCFHSPZ5PCM4UQJT3JUNNLO3EVAQ/
>>
>> To unsubscribe send an email to [email protected] mailing list
>> UNSUBSCRIBE and account-management -> https://lists.iem.at/
>>
>>  ---
> Pd-list - [email protected]
>
> https://lists.iem.at/hyperkitty/list/[email protected]/message/2P634W3NDLE5POKU2VW3VWVHQSYVD4N7/
>
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://lists.iem.at/

 ---
Pd-list - [email protected]
https://lists.iem.at/hyperkitty/list/[email protected]/message/YDSVY3L5CTWDJDU6VYOFNCBP3VAWQP7K/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.