maya

Item 'layer 7' already exists in the treeview : in Maya

Item 'layer 7' already exists in the treeview : in Maya Question: I want to add two different items that have the same name to a TreeView but they have a different parent. But I get the error: Item ‘layer 7’ already exists in the TreeView What should I do to avoid this. My code: …

Total answers: 2

Python for Maya: Change Display Layer to "Reference"

Python for Maya: Change Display Layer to "Reference" Question: Is there a way to set a display layer’s layer state to reference using python? It doesn’t matter if the change happens at the layer’s creation, or after the fact. To provide a little context: I’m writing a script that creates image planes, pulls in a …

Total answers: 2

Reading 5th TIFF's channel in Python?

Reading 5th TIFF's channel in Python? Question: I have some TIFF files that are the output of a Maya renderer, and I need to composite them with some real footage. The TIFF files have 5 channels, rgba + depth channel for compositing. However, all the TIFF loading libraries I have tried seem to discard the …

Total answers: 1

No module named PyQt5.QtWidgets in Maya 2018

No module named PyQt5.QtWidgets in Maya 2018 Question: Executing this code in Maya 2018 I’ve got an error: # Error: ImportError: file <maya console> line 3: No module named PyQt5.QtWidgets # Isn’t PyQt5 a part of Maya 2018? import maya.cmds as cmds import sys from PyQt5.QtWidgets import (QWidget, QToolTip, QPushButton) from PyQt5.QtGui import QFont class …

Total answers: 2

How to get the name of a selected Object Python Maya

How to get the name of a selected Object Python Maya Question: Hei all, I have this procedural program that creates different object in Maya through Python. After the creation of these elements I want to get the user the possibility to select some of these object and though a button to delete it…The problem …

Total answers: 1

How to access the Maya main menu and toolbar?

How to access the Maya main menu and toolbar? Question: I use Autodesk Maya 2016 + Python. I had a problem. I need to replace the functions of standard menu items and toolbars. For example, you must add the function to save a recording function. And because different people use different functionality, you have to …

Total answers: 2

How to find matching vertices in multiple maya meshes

How to find matching vertices in multiple maya meshes Question: I’m trying to compare the locations of vertices on one mesh to another and generate a list of paired vertices, (the ultimate purpose is to pair up vertices on a neck geo with the top verts of a body geo.) The way I’m ‘pairing’ them …

Total answers: 2

How to isolate group nodes in maya with python

How to isolate group nodes in maya with python Question: I have a selection that can reasonably contain most any node type. In python I need to filter out everything except the group nodes. The problem is that group nodes are read by maya as just transform nodes so its proving difficult to filter them …

Total answers: 3

Finding Blendshape from Target Maya Python API

Finding Blendshape from Target Maya Python API Question: I’m trying to find a blendshape deformer from a target mesh in the python maya api. I’m pretty sure I have to iterate through the dependency graph to get the blendshape. This is what i’m trying: import maya.OpenMaya as OpenMaya import maya.OpenMayaAnim as OpenMayaAnim #Name of our …

Total answers: 3

Convert pyQt UI to python

Convert pyQt UI to python Question: Is there a way to convert a ui formed with qtDesigner to a python version to use without having an extra file? I’m using Maya for this UI, and converting this UI file to a readable python version to implement would be really great! Asked By: Shannon Hochkins || …

Total answers: 13