i have made an GOP abstraction that dynamically resizes itself when its settings are changed. this all works fine, except for one glitch:
the cables leading out of this object are not scaled or moved.
this is giving me half-cables, and cables coming out of the middle of an abstraction, etc..
temporary fix is just to turn edit mode on and move the abstraction by 1 pixel, but there must be a better way.
any ideas?
my best idea is to use [namecanvas $0-parent] on the parent,
..then get the coordinates of the abstraction, and dynamically send a message to the parent to move the abstraction by 1 pixel, and then move it back again.
but i searched the list archives and didn't find a satisfactory way to get the coordinates of an abstraction.
i could also do what i want by getting the position of my mouse relative to the parent patch. but again, my list archive search was fruitless.
ok, it's really hackish, but my current solution is to send a 'font' message to the parent, which forces a window redraw.
seems to work ok, but i'm not really fond of such way-out approaches, and it might start to get cluggy once i load in some sequencers and stuff with more gui graphics.
hard off a écrit :
ok, it's really hackish, but my current solution is to send a 'font' message to the parent, which forces a window redraw.
seems to work ok, but i'm not really fond of such way-out approaches, and it might start to get cluggy once i load in some sequencers and stuff with more gui graphics.
I'm curious to see wwhat you are working on, I tried several different designs of a pd graphical sequencer, my last one is a drumbox available in here:
http://megalego.free.fr/pd/patko/
Like always, this is not finished, I also worked on a tcl-tk script:
http://megalego.free.fr/pd/pianoroll/
but it is still at the experimental state...
What about having some space to share ideas an objects for building audio/signal sequencers?
I very very vaguely remember something like a loadbang or a something like a "pop" message that is used for some graphical update thing and you could try if that helps you with the GOP to make it redraw in the parent patch. this might not work at all, just an idea, and I am not sure about the situation, in which I used it, but I think it was in connection with dynamic creation of arrays. hmm, yes, maybe this is something completely different. marius.
hard off wrote:
ok, it's really hackish, but my current solution is to send a 'font' message to the parent, which forces a window redraw.
seems to work ok, but i'm not really fond of such way-out approaches, and it might start to get cluggy once i load in some sequencers and stuff with more gui graphics.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list