Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Extending an Operator

General discussion about anything TouchDesigner

Extending an Operator

Postby h-windows » Mon Jul 01, 2019 1:49 pm

Hello everyone,
I would like to know if it is possible to extend an opearator.

In particular I would like to extend the Joystick CHOP.

I have a DualShock4 and I was able to connect it but I would also like to get the acellerometer's values that are not present by default in the operator.

Where can I find the class and see how it is develop? How can I create a new class and use it modified.

Is it something possible?

Thanks a lot
A.
h-windows
 
Posts: 14
Joined: Fri Jun 14, 2019 9:57 am

Re: Extending an Operator

Postby malcolm » Tue Jul 02, 2019 1:51 pm

Hey,
For something like this you would need to create it from scratch by creating a Custom Operator. There is no way to take the existing functionality and just add a little bit on top of that. You can find examples on how to make Custom Operator in our wiki and some sample projects in our installation folder.
User avatar
malcolm
Staff
 
Posts: 4396
Joined: Tue Nov 13, 2007 1:11 am

Re: Extending an Operator

Postby h-windows » Tue Jul 02, 2019 3:01 pm

Hello malcolm,
thanks for your answer.

Ok, but if I cannot see the code I think it would be impossible to make it.

I am trying to send the data signal from the joytstick via UDP to TouchDesigner.

With other softwares I can see the data on the port I set for the joystick but not on TD. The channel is always blank.

Do you have any recommendation?

Thanks a lot
h-windows
 
Posts: 14
Joined: Fri Jun 14, 2019 9:57 am

Re: Extending an Operator

Postby malcolm » Tue Jul 02, 2019 3:12 pm

Can you elaborate? What app is sending the data over UDP? You should be able to see data coming in via the UDP In DAT if someone is sending to the correct port
User avatar
malcolm
Staff
 
Posts: 4396
Joined: Tue Nov 13, 2007 1:11 am

Re: Extending an Operator

Postby h-windows » Tue Jul 02, 2019 3:44 pm

Yes, sorry.

I am using a DualShock4 on Windows, so I am using DS4Windows to emulate the XBOX controller.
http://ds4windows.com/

This software can also send UDP signal to a specific port.

I can easily get the data with MAX MSP or others like PadTest. But no signal on TD.

I tried both with a DAT UDP In and a CHOP OSC In.

Thank you
h-windows
 
Posts: 14
Joined: Fri Jun 14, 2019 9:57 am


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 9 guests