I would like to ask you questions about hardware controls through Maya python.

I would like to ask you questions about hardware controls through Maya python.

Anonymous
Not applicable
402 Views
1 Reply
Message 1 of 2

I would like to ask you questions about hardware controls through Maya python.

Anonymous
Not applicable

Dear Autodesk MAYA2018 technical users

 

I am a researcher.

 

Our laboratory is currently developing a simulation plan for shooting performances using Autodesk Maya2018.

However, we are having difficulty judging the technical possibilities of Autodesk Maya2018.

So I ask the following questions.

please answer about my question.

 

 

⓵ Is it possible to do real-time network programming using Maya Python program?

Is it possible to control input / output of data?

: To be more specific, is it possible to have a network socket program?

Is it possible to receive data or to send the hexadecimal value to the hardware to open the comfort?

I heard that some another technical director can control Raspberry Pie. I think that if so, it will be possible.

: The comfort we are trying to use is trying to control each hardware through 442 communications.

: Our lab project needs to keep updating data in real time. What is the execution load of the Maya executable program at this time?

 

⓶ Is it possible to program for hardware control with Maya Python program?

Our lab is trying to control the hardware using the communication we talked about. If it is possible, ⓶ is also possible. The hardware control action we want to control is to control Pan, Tilt, and Zoom of the PTZ camera. Also, we want to control another hardware. For example, robot arm and mobile manuplator...

 

⓷ Is it possible to use the Maya Python program to import GUI design data into the Maya program? PyQt, and PySide can be done through Maya Python, and can I print or input values in Maya to the GUI through this GUI and Maya cmds. * Command? What difficulties do you have in doing this?

 

⓸ Can the camera image data shot in real time from the external Maya program be output to the Maya screen? If so, is that control possible with the Maya Python program?

: The program we are trying to do is to allow streaming video taken from several PTZ cameras to be viewed in a GUI created with Maya Python. Could you suggest a reference to this kind of research?

 

 

⓹ Finally, I wonder if it is reasonable to try the above experiment through Maya. If so, how much resources do you need? Or is it more reasonable to use other programs without importing the features mentioned above into Maya?

 

I think it is difficult questions. However, I would like to thank you for understanding if you would like to extend the base of research using Maya.

0 Likes
403 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

1&2, it is possible to be done with Python. But if you want a better performance and more real time in the scene, I'd suggest you to use C++ with MPxThreadedDeviceNode to get input from a hardware device or network. It creates a thread for I/O input and writes to a buffer.

 

3. You can create a QT window with PyQT5/PySide2. I am not sure about the "print or input values in Maya to the GUI through this GUI and Maya cmds. * Command". You could get outputs from Maya through callbacks, commands and connections etc... You could also use cmds and other APIs to query or modify scenes info. It depends on your requirement.

 

4.I think it is possible, if you've created a QT5 window through Maya python, you should be able to use QTMultimedia to get a camera and display it on screen. I haven't tried it yet but QtMultimedia is included in Maya's QT library so i don't think it should be a problem.

 

5.I am not sure about the full story so I can't give you further advice here.

 

Hope it helps.

 

Yours,

Li