Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Node ID

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
in_ty

Node ID

Post by in_ty » 06 Dec 2012, 19:04

Hi,

Is it possible to get smth like node ID? I'd like to call a script method by several nodes and I want to know, which node is calling.

Sorry for my English, it's not native for me.

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: Node ID

Post by TobiTobsen » 07 Dec 2012, 10:07

Hi,
a good working flow would be to use a hierarchy container, make it an interface and put a container info node in your hierarchy container.

I think if you search the help for the container info node, you should be able to figure out how it works...

Good luck!

Cheers,
Tobi
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: Node ID

Post by Christian Krix Schmidt » 07 Dec 2012, 12:26

You can also use an event node between each of your nodes and the script. Use a different argument (the ID) for each event node. The argument gets passed to your custom C# function. You can access it with the arg variable inside the script. Combine that with Container system Tobi described by connecting the event node argument to the Container Info node and you can quickly duplicate and use any number of elements to trigger a method with your script and know which one it was.

in_ty

Re: Node ID

Post by in_ty » 07 Dec 2012, 13:05

Thank you very much!!!

in_ty

Re: Node ID

Post by in_ty » 07 Dec 2012, 13:21

I tryed to take smth from args, but its int and always 0.

Post Reply