Hi folks. Recently I've implemented improvements to cyclone/comment so it behaves like in Max. This is still a work in progress, but what I have is that I'm showing the inlet when I get into edit mode. Inlet disappears when I get out of edit mode. I'm still doing other things that depend on getting in and out of edit mode, like showing an outline.
I might do that for cyclone/scope~ as well
The thing is that I'm doing a quite dirty hack for that, which is listening to messages the patch gets, kinda like iemguts/receivecanvas and I don't like this hack, I'd rather it'd be possible to do it in an easier way.
And I know that the comments in Pd will also react to getting in and out of edit mode, to show the vertical line to the right. I don't really know how it does it and if it is possible to do it in the same way for an external.
If it's not possible - as I'm assuming it is not - what would need to change to allow this to be easily queried by an external object?
So yeah, this is basically a feature request :)
thanks Alex
On 4/3/20 9:42 PM, Alexandre Torres Porres wrote:
And I know that the comments in Pd will also react to getting in and out of edit mode, to show the vertical line to the right. I don't really know how it does it
since you already know *that* the built-in comment does that, why don't you just lookup the code and see what it does? https://github.com/pure-data/pure-data/blob/master/src/g_text.c#L1373
gfmsdr IOhannes
Em sex., 3 de abr. de 2020 às 17:31, IOhannes m zmölnig zmoelnig@iem.at escreveu:
since you already know *that* the built-in comment does that, why don't you just lookup the code and see what it does? https://github.com/pure-data/pure-data/blob/master/src/g_text.c#L1373
I had tried looking for it, couldn't really find it, and now that I know where it is, I don't really get it...
And it just seems, one way or another, that you can't use any of it with externals, right?
As I see it, it uses "gl_edit" to know if it is in edit mode or not. But that information needs to be queried, right? It's not like Pd gets a message somewhere whenever it got in or out of edit mode and we can just use it, so it seems.
Anyway, with my poor comprehension and low coding skills, I'm really just asking if something easier can be done for externals, and if we could change the code so we could easily allow externals to react to edit mode status.
What makes me bet it's not possible and something needed to be done is this earlier discussion I found https://lists.puredata.info/pipermail/pd-list/2018-09/123354.html
cheers