[PD-dev] Dynamic inlet or outlet management

Jamie Bullock jamie at postlude.co.uk
Fri Mar 17 14:09:20 CET 2006


Hi,

Does anyone know if there is a way to force an object to redraw itself (other than by moving it)?

For example, I have attached the code for a simple object, which instantiates itself with the number of inlets and outlets given by its creation argument. If I call its del method, the in/outlets are deleted, but the visual representation of the object retains them until it is moved. When it is moved, the in/outlets are detached from the object but remain on the canvas! When the add method is called, the in/outlets are created, but again I have to move the object to see them. At this point previously deleted in/outlets disappear from the canvas...

Any suggestions..?

Jamie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: varlet.c
Type: text/x-csrc
Size: 1347 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20060317/359b9a21/attachment.c>


More information about the Pd-dev mailing list