Hello,
I'm using the Tuio Simulator and I've a basic question cause I'm a
beginner. How can I tell PD to do something like an if query. for
example: I want to say if it is marker nr 1 do this colour. i know
how to get the Marker ID (fid_get fid).
would be cool if someone can help me :)
And sorry I first sent this email to the announce mailing list. sorrrrry
Thanks Cheers L
Hi...
GMX wrote:
Hello,
I'm using the Tuio Simulator
Haven't got a clue what it is :) but...
and I've a basic question cause I'm a beginner. How can I tell PD to do something like an if query. for example: I want to say if it is marker nr 1 do this colour. i know how to get the Marker ID (fid_get fid).
If you have an id like myid_1 you can use [route] and [select] (aka [sel] (have a look at the help patches)
Lorenzo
would be cool if someone can help me :)
And sorry I first sent this email to the announce mailing list. sorrrrry
Thanks Cheers L
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
to import data from the tuio simulator in pd, just use the Tuioclient available with reacTIVision (http://reactivision.sourceforge.net/).
The simulator (which you probably also got from the reaTIVision page) should send data to the appropriate udp port (3333), which you could import using [updreceive] and [unpackOSC], however, it is much more easy to use [TuioClient], offered on the reacTIVision website. The client will output a list, that you can unpack using [unpack]. This is prefixed with symbols indicating the kind of event (enter, update, exit). There are exaple patches in the client zipfile. One of the items from [TuioClient] list will be the id of the fiducial (marker), allowing you to program pd to react to a certain number in a certain way. So you could unpack the list, and attach the [sel] object to the outlet that outputs fiducial id, etc.
Goodluck, Menno.
On Mon, Nov 22, 2010 at 3:55 PM, Lorenzo Sutton lsutton@libero.it wrote:
Hi...
GMX wrote:
Hello,
I'm using the Tuio Simulator
Haven't got a clue what it is :) but...
and I've a basic question cause I'm a beginner. How can I tell PD to do something like an if query. for example: I want to say if it is marker nr 1 do this colour. i know how to get the Marker ID (fid_get fid).
If you have an id like myid_1 you can use [route] and [select] (aka [sel] (have a look at the help patches)
Lorenzo
would be cool if someone can help me :)
And sorry I first sent this email to the announce mailing list. sorrrrry
Thanks Cheers L
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list