Em ter, 26 de fev de 2019 às 04:28, Liam Goodacre liamg_uw@hotmail.com escreveu:
My guess is that the message stream that [receivecanvas] taps into would let you listen to the edit-mode state changes, but not query its state.
Hi, earlier this year I was asking about querying edit status and Liam told me about [receivecanvas], the problem is that it only tells you about when the status changes. Now, if I create an object when I'm in edit mode, it won't know, and when I open a patch not in edit mode, it won't know either.
So how can I know about it?
thanks
Am 27. November 2019 20:53:46 MEZ schrieb Alexandre Torres Porres porres@gmail.com:
Em ter, 26 de fev de 2019 às 04:28, Liam Goodacre
escreveu:
My guess is that the message stream that [receivecanvas] taps into
would
let you listen to the edit-mode state changes, but not query its
state.
Hi, earlier this year I was asking about querying edit status and Liam told me about [receivecanvas], the problem is that it only tells you about when the status changes. Now, if I create an object when I'm in edit mode, it won't know, and when I open a patch not in edit mode, it won't know either.
So how can I know about it?
what do you want to do in the first place?
whenever the user creates an object, pd will switch to edit mode...
mfg.hft.fsl IOhannes
Em qui., 28 de nov. de 2019 às 04:45, IOhannes m zmölnig zmoelnig@iem.at escreveu:
what do you want to do in the first place?
It's a GUI abstraction that responds to mouse interaction, so, like a slider, if it's in edit mode, I don't want it to respond to clicks and stuff. This abstraction is based on an external that gets mouse interaction, so it needs to know if PD is in edit mode or not when it is instantiated.
So, how can a slider know what mode PD is in?
whenever the user creates an object, pd will switch to edit mode...
Sure, but there are other ways to instantiate an object, like when opening a patch or with dybanic patching, where PD won't switch to edit mode.
cheers
Am 28. November 2019 14:18:22 MEZ schrieb Alexandre Torres Porres porres@gmail.com:
Sure, but there are other ways to instantiate an object, like when opening a patch or with dynamic patching, where PD won't switch to edit mode.
but with dynamic patching
mfg.hft.fsl IOhannes
Em qui., 28 de nov. de 2019 às 10:47, IOhannes m zmölnig zmoelnig@iem.at escreveu:
but with dynamic patching
- you are breaking a lot of interaction expectations
how so? you just create an object you can interact with, but anyway not important
- you can control the edit-mode state at your will
nice, hadn't thought of that, but going into edit mode and back feels quite hacky to me. And anyway, you still have the case where when you open a patch, the objects are instantiated without being in edit mode.
IOhannes m zmölnig wrote:
Am 28. November 2019 14:18:22 MEZ schrieb Alexandre Torres Porres porres@gmail.com:
Sure, but there are other ways to instantiate an object, like when opening a patch or with dynamic patching, where PD won't switch to edit mode.
but with dynamic patching
- you are breaking a lot of interaction expectations
- you can control the edit-mode state at your will
i.e. you can "force" edit mode with a "editmode 1" message to the corresponding namecanvas, and also disable it with a dedicated message
(see attached examples)
best
oliver
answer: just ask for "canvas"->gl_edit
Em qui., 28 de nov. de 2019 às 11:09, oliver oliver@klingt.org escreveu:
IOhannes m zmölnig wrote:
Am 28. November 2019 14:18:22 MEZ schrieb Alexandre Torres Porres <
porres@gmail.com>:
Sure, but there are other ways to instantiate an object, like when opening a patch or with dynamic patching, where PD won't switch to edit mode.
but with dynamic patching
- you are breaking a lot of interaction expectations
- you can control the edit-mode state at your will
i.e. you can "force" edit mode with a "editmode 1" message to the corresponding namecanvas, and also disable it with a dedicated message
(see attached examples)
best
oliver _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Am 6. Dezember 2019 09:16:19 MEZ schrieb Alexandre Torres Porres porres@gmail.com:
answer: just ask for "canvas"->gl_edit
how to that on pd-list (as opposed to pd-dev)?
mfg.hft.fsl IOhannes