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. But you should be able to simulate a query by applying the following logic:
--When a patch is opened, assume that edit mode is on (is this a safe assumption to make??) --When you hear a message "editmode 0", assume edit mode is turned off. --When you hear "editmode 1", assume it is turned on. ________________________________ From: Alexandre Torres Porres porres@gmail.com Sent: 25 February 2019 23:52 To: Liam Goodacre Cc: Pd-List Subject: Re: [PD] Query if Pd is in Edit mode for a GUI
this shows it's possible to query if Pd is in edit mode in an external :) - this is what I need and I don't mean to do this in vanilla.
Though at first glance it still seems tricky to me, but I guess it's a good start.
thanks
Em seg, 25 de fev de 2019 às 04:04, Liam Goodacre <liamg_uw@hotmail.commailto:liamg_uw@hotmail.com> escreveu: If I remember correctly, [iemguts/receivecanvas] sends a message when you change the edit mode. Not sure that you'll find a way of doing it in Vanilla though. ________________________________ From: Pd-list <pd-list-bounces@lists.iem.atmailto:pd-list-bounces@lists.iem.at> on behalf of Alexandre Torres Porres <porres@gmail.commailto:porres@gmail.com> Sent: 24 February 2019 17:20 To: Pd-List Subject: Re: [PD] Query if Pd is in Edit mode for a GUI
Em dom, 24 de fev de 2019 às 13:27, Alexandre Torres Porres <porres@gmail.commailto:porres@gmail.com> escreveu: But if it's impossible, I'm fine with that.
Coming to think of it, Pd actually changes the appearance of its comments when in Edit mode, where it shows where to change the size of comments. So yeah, it's totally possible. But I still hope you can help me out with the golden hint of which built function to use from pd's source, cause I've been browsing the code for about an hour and couldn't find it :/ _______________________________________________ Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list