170 questions
0 votes
1 answer
63 views
Struggling to provide a correct value to 'OpenMaya.MItMeshPolygon.center()'
Am taking first steps into the Open Maya API, the Python version. I've gone through a Maya API series, and did some tasks such as printing to the script editor. I am now trying to write my own small ...
0 votes
1 answer
50 views
Make custom MPxManipulatorNodes selectable with Maya C++ Api
I have created a custom MPxManipContainer, which contains two instances of a custom MPxManipulatorNode. One of the MPxManipulatorNode has been created inside the createChildren() function of the ...
1 vote
0 answers
24 views
Maya shader access instance attributes
I try to write an openmaya viewport 2.0 shader in maya that read couple of vec4 custom attributes on instances for the logic of the shader. Ideally bifrost instances but it can be geo instanced in ...
0 votes
1 answer
110 views
Maya scriptJob on quitApplication not working after choosing save in save prompt
I'm trying to link a piece of code on application quit of autodesk Maya, using scriptJob. It works when you choose "don't save" or "cancel" in the maya save prompt window, but if ...
-1 votes
1 answer
206 views
maya 2024 Unable to dynamically load
I am new to C++ and English, I am trying to write some tools using Maya C++ api, but I have some problems when trying to use third-party libraries. I am using Microsoft. Ml. Onnxruntime. Gpu. 1.16.3 ...
-1 votes
1 answer
75 views
In Maya C++ API, how to limit max value of an attribute of MPxNode to half of another attribute value?
I'm developing a custom mpxnode that has 3 attributes (length, width, fillet) and one output. I want fillet attribute 'maxValue' to be the half of min(length, width) but can't get it to work. For ...
0 votes
1 answer
500 views
How to setup shortcut to toggle joint xray in Maya
Is there a MEL command to toggle the "joint xray" mode in the viewport? (so that I can set it as a shortcut)
0 votes
1 answer
410 views
How to add a joint to an existing skin cluster and set weights to zero with Maya MEL
In Maya how do you add a joint influence to an existing skin cluster and set that joint skin weight to 0 using MEL script?
1 vote
1 answer
183 views
Cannot call value of non-function type '[Observable<Event>.Type]'
Xcode 15 Mac book M1 Moya/RxSwift (15.0.0): Moya/Core RxSwift (~> 6.0) Cannot call value of non-function type '[Observable.Type]' private func bindingsStrongify<Event, O, WeakOwner>(_ ...
0 votes
0 answers
156 views
mel command ('rendersequence;') is not working whille trying to open maya from command line
So basically I am trying to open maya from command line using subprocess in python and executing a python script (.py) file like below: command = [ "C:/Program Files/Autodesk/Maya2020/bin/...
0 votes
1 answer
196 views
How can I use CPP algorithm library when writing a Maya CPP plugin
I am writing a C++ plugin for Maya using CLion and CMake. When I add the C++ algorithm library to my code I get an error saying "No member named 'clamp' in namespace 'std'". As soon I add ...
0 votes
1 answer
801 views
Loading Python script as plug-in in Maya not working
I am trying to make a plug-in that loads a menu with a simple print command attached to a button. I got two files: test_menu.py import maya.cmds as cmds import maya.mel as mel def say_hello(): ...
0 votes
2 answers
147 views
Get the corresponding controlPoint from a component
The following commands will convert a given controlPoint index to the corresponding object's component type: import maya.cmds as mc print (mc.ls('pCube1.controlPoints[3]')) # ['pCube1.vtx[3]'] ...
0 votes
0 answers
97 views
How can I avoid getting my shaders and shading engine named as MAT1 and MATSG1 and so on?
So basically this is the code I have written which is getting the required paired meshes of character in maya and I need to assign similar shader to Leg, Arm and Hand respectively. And I was able to ...
0 votes
1 answer
925 views
Maya Python exporting selected objects as separate files and generating a Maya thumbnail for use with the content browser
Thank you for any help/guidance that you can provide, I'm really hoping someone can help me with this problem. The script is supposed to go through a selection of objects and export each one into a ...