Category : maya-api

I’ve been trying to select all the geometry that is visible from my camera only and I’ve found this code on the internet, which was supposed to be the solution to my problem. import maya.OpenMayaUI as omu import maya.api.OpenMaya as om view = omu.M3dView.active3dView() om.MGlobal.selectFromScreen(0, 0, view.portWidth(), view.portHeight(), om.MGlobal.kReplaceList) However, this doesn’t work the way ..

Read more

I installed TensorFlow using mayapy pip install tensorflow I then tried import tensorflow as tf, but Maya crashes on this call: _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) Full crash log: https://pastebin.com/yVimvEJa Am I missing any library? Tested on: Python: 2.7 Maya 2020 Linux CentOS7 Tensorflow 1.14 Source: Python..

Read more

So I’m creating a basic multiply node which can have multiple inputs. I want to multiply 2 attributes and get output in third attribute. It is working fine but its not live. so basically I have created 3 attribute 2 input 1 output and created compound attribute and added all 3 in that. I can ..

Read more

While trying some basic programming in Maya I came across the "MitMeshPolygon" method. Which was described as: "This class is the iterator for polygonal surfaces (meshes)." (https://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__py_ref_class_open_maya_1_1_m_it_mesh_polygon_html) This seemed to be what I needed, so I looked into iterators more and from what I can tell, iterators should themselves be iterable, and have a iter ..

Read more