2,576 questions
1 vote
0 answers
61 views
Is there a way to set all Qt qss properties to original state, as if they had never been set (ie prevent cascading up to a point)?
We have written a number of python / Qt tools, which when run standalone, look fine. Generally, the are using the platform style, and QLayouts, with very little specified in stylesheets. But we also ...
1 vote
1 answer
48 views
Why doesn't Maya's "closeTab" flag actually close the tab?
Long story short: I can't seem to get Maya's "closeTab" flag to actually close the tab I give it. I need to run a function when a tab closes so I can't just use the default method of closing ...
0 votes
0 answers
58 views
How to delete an outliner panel child to a PySide2 window in Maya?
I am trying to convert the Maya outliner to a QWidget. It works fine and shows up on screen as expected except the cleanup of it's outliner panel. I am tracking the panel of each instance through a ...
0 votes
0 answers
49 views
correct way to use the ‘dragCallback’ parameter of the channelBox command?
I have been at this for an hour, with various variations but have not had any success with it. Here is a very basic sample of one approach I tried: def foo(dragControl, x, y, modifiers, *args): ...
0 votes
1 answer
96 views
why is maya failing to import my python library and run a function defined within it
My library is saved at C:\Users\user1\Documents\maya\scripts\test_lib.py and its entire content is: def my_func(): print("hello world!") When I run the following in the script editor, I ...
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
127 views
Maya Python script to import USD wont import Animation Data
I am currently creating a custom python script for maya 2023 that imports usd files that contain animation. The issue im having is my script is importing the contents of the usd without any animation ...
0 votes
0 answers
17 views
Curve World Space not recognizing curve adjustment
I would like to place locators on every vertex of a curve then have the locators fallow the curve. The script works fine if the curve is not altered after creation. If the curve is rebuild, add knots ...
0 votes
0 answers
39 views
Assigning audio by similar name in Maya's sequencer
In the sequencer of Maya I want to select a shot or more and with a dialogue choose where the audio is and assign it by name(each audio and shot have the same name) using python. This code imports ...
2 votes
1 answer
30 views
How can I use a variable for my skipTranslate argument within my parentConstraint command with Python in Maya?
I am trying to use a variable for my skipTranslate argument in my parentConstraint command in Maya. What I want is for "x" to be inserted into the skipTranslate argument by my variable &...
0 votes
0 answers
75 views
Maya command line render with a render setup (json) error
I've been on this issue for over a week and it's been quite frustrating. So here is the scenario: I have a few cameras in the scene and I've created a render layer setup for each camera and have used ...
-1 votes
1 answer
207 views
Two sided lighting in Maya with no GUI
I've got a quick question. Is there a way to activate the two-sided lighting when working with mayapy.exe? I've been creating playblasts with it and the results have been almost satisfactory, except ...
0 votes
1 answer
62 views
Three.js issues with models (Rotating them whilst they are in the scene)
import * as THREE from 'three'; import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; const canvas = document.querySelector('#frontPageCanvas'); const scene = new THREE.Scene(); const ...
0 votes
1 answer
70 views
Incorrect Bezier curve in Maya
I have implemented Bezier Curve that complies to the mathematical rules, using de casteljau's algorithm. I have tested my implementation with other libraries, such as OpenNURBS, and our results match. ...
1 vote
1 answer
247 views
Maya declaring variables are not defined, but all cases are correct
I'm trying to write a Maya table that allows the user to put in inputs and a name, and then it will spawn an object with those attributes. import maya.cmds as cmds def spawn_cylinder(*args): ...