I want to Create GUI which have two inputs texel density and texel resolution and one button applies if I click on the button it sets the texel density of a particular face or object. I am a beginner in Maya so I need some guidance. Thanks and also I write some code but it ..
I’m trying to create a virtual environment using a custom python build e.g. mayapy.exe -m venv myVenv but I keep getting the following error: Error: [WinError 2] The system cannot find the file specified This is a known issue -> https://bugs.python.org/issue43749 and has something to do with the fact that I’m working with a renamed ..
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 ..
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..
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 ..
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 ..
Background info Polygonal meshes use UV sets to map image textures to their surface. Using UDIM textures you can use integer tiles to apply different textures as within what integer bounds the UV tile is, e.g. tile [0, 0] can have a different texture than UV tile [0, 1]. Given the UV shells/points I want ..
I am trying to get the flags and default values for any given maya command. In python I would generally use the inspect module, but as pymel is only a wrapper I don’t see that as an option here. I was hoping the api would have something that could accomplish this, but haven’t run across ..
I’m trying to create a MASH in Maya and set the input mesh using the Python API. This is incredibly simple in the GUI but I’ve spent hours and can’t figure out how to make it work in the API. Here’s my code so far: from maya import cmds import MASH.api as mapi #create backplate ..
I am trying to create a sphere with lines and dots on it. But since I am plotting the sphere, the lines and the points separately in the code, I don’t think Mayavi recognized it as a whole figure. So the lines and points on the rear face of the sphere are also visible. Is ..