[PD] Dynamic Object Connections through OSC

marius schebella marius.schebella at gmail.com
Wed Feb 20 18:50:41 CET 2008


it is possible, but it is tricky.
another way would be to turn on and off connections with spigot or switch~.
anyways, what you want is documented in help - browser - manuals/pd-msg 
(if you have pd-extended).
here's the short version:
put all your dynamically created objects in a subpatch outside the 
subpatch create an object [send pd-mysubpatch]
to wich you send all you commands as messages.
obj 100 100 metro 999 will create a new object at position 100/100.
all your objects get index numbers and you connect 2 objects with
connect ID1 OUTLET1 ID2 INLET2
for example connect 0 0 1 0 will connect the first objects first outlet 
(start counting with 0) to the second's object first inlet.
the difficult part is to keep track of your ID numbers, esp. when you 
add or delete objects. if not, then it should be easy...
marius.


Jonny Martyr wrote:
> Hi there, I'm new to this mailing list and I have a question regarding 
> dynamically connecting objects together using OSC commands. I would 
> appreciate any help that anyone can provide.
>  
> Essentially I am building a Flash application in which the user can 
> connect together different blocks to build synths, much like a 
> simplified version of PD. I am able to pass messages between Flash and 
> PD using OSC, and so can dynamically create objects and edit their 
> parameters from Flash. However, I do not know how to create the 
> connections between the various objects in PD without actually drawing 
> them manually.
>  
> Does anyone know of a way around this? Possibly using send and receive 
> commands?
>  
> Many thanks,
>  
> Jonny Martyr
> 
> ------------------------------------------------------------------------
> Messenger on the move. Text MSN to 63463 now! 
> <http://mobile.uk.msn.com/pc/messenger.aspx >
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list