Send/Receive Data using UDP?

Send/Receive Data using UDP?

Anonymous
Not applicable
1,109 Views
2 Replies
Message 1 of 3

Send/Receive Data using UDP?

Anonymous
Not applicable
Anybody knows how to send and receive data such as a coordination of a specific object using UDP in Maya?
My purpose is to communicate Maya with other interface such as processing.

I found from the following link that it's possible but couldn't figure out how.

http://data-tribe.net/wework4her/index.php?entry=entry090616-145744
0 Likes
1,110 Views
2 Replies
Replies (2)
Message 2 of 3

chaneyx
Advocate
Advocate
It is unclear to me how he did it . He mentions UDP but says it is too slow and uses the commandPort . Does he use the commandPort for everything or just for the maya events ?

Either way :

Check out the commandPort command - simple and very useful .
Check out the old devkit/mocap example - should be fast .
Check out the libraries the guy mentions on his blog - hypermedia UDP libraries and OpenFrameWorks community .
http://www.openframeworks.cc/about
Ask the Blogger .

Good Luck - It all looks very interesting
0 Likes
Message 3 of 3

Anonymous
Not applicable
p5 to maya link via UDP :

p5 sends and recieves via UDP port using hyper media libraries.
maya sends and recieves via UDP port using a custom plug-in that internally uses openFrameWorks
network classes.

It becomes tedious to have maya listen to the port all the time. So p5 sends a maya command to trigger maya to start or stop listening - i.e to open or close the port. Once open , maya listens to the port at refresh rate.

hope this helps.

shajay.
0 Likes