3/21/2023 0 Comments Qt creator tutorial pythonThis will allow Maya to automatically find your script file once converted. “C:\Users\Username\Documents\maya\scripts\makeCube.ui” So in our case the complete file path would be: “C:\Users\Username\Documents\maya\scripts\” To be able to use this information inside of Maya we will need to convert this file to a Python script. ui file is nothing more than a xml file describing the different elements of your UI. QDialogButtonBox::Cancel|QDialogButtonBox::OkĬonverting the. Here is an image of the UI used for the scripts in this tutorial. I am not going to go over this step as this is a rather straight forward part of the whole process. Maya 2014 allready comes with a version of QT designer and can be found under the QT folder of your Maya 2014 install.įor more information on how to use QT Designer you can have a look at the official manual: Getting your UI into Maya 2014 Creating a GUI But some a quick Google search should often help you adjust for example a tutorial script from PyQt to the equivalent PySide code. There will be some syntax difference between the two. Instead of all of this trouble we will use PySide instead of PyQt as it comes with Maya 2014 and will not require all of that hassle. All nice and simple but this is a very annoying and painful configuration where many things often can go wrong. Not only that but you also need a copy of Visual Studio to be able to run these scripts in order to run and compile the plugins. ![]() You need to download a couple of files, place them in specific locations and then run those scripts. There is also an official autodesk explanation on how to do this:įor most people who just want to add some simple and clean layouts to their scripts this will be the first big hurdle and often be the point where they just give up. Most of the tutorials you find online will try to explain how to implement PyQt for Maya 2014 and tell you it is a requirement to be able to implement GUI’s made with QT Designer. Not because it is a difficult process, but because there is very little information on how to do it to be found. And if you do find information, there are either missing steps in the process or require a certain amount of prior knowledge. So here is a short overview on how to get a custom UI made with QT designer working in Maya 2014. As it turns out trying to implement a custom GUI made with an external editor and using Python to interact with them can be quite a pain in Maya 2014.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |