
python - Set size of object in Maya - scale values vs. exact units ...
May 29, 2018 · I'd like to adjust the width and height of a poly plane using the "xform" command, or any other python command that can accomplish the desired result. I know the exact size in …
scale command - Autodesk Knowledge Network
The scale command is used to change the sizes of geometric objects. The default behaviour, when no objects or flags are passed, is to do a relative scale on each currently selected object …
maya - Writing a MEL/Python script for changing scale values
Jul 13, 2012 · Here's a simple python script. frames = [frame for frame in cmds.keyframe(dag, q=1)] for frame in frames: attrib_vals = [cmds.getAttr(dag+'.'+attr, time=frame) for attr in attrs] …
Maya Python: Building Generator - Getting Width and Height of Object
Dec 13, 2018 · - Get the attribute of the window section that has the xmax, xmin, ymax, ymin values and tell the script to duplicate x times, translate each window section equal distance …
How can I set the length of an edge in Maya via Python?
Mar 17, 2018 · def getEdgeLengthFunc (*pArgs): global referenceLength referenceLength =[] sel1=cmds.ls(sl=True,fl=True) cmds.ConvertSelectionToVertices() …
Python - Scale a cube to fit the bounding box of another cube
Jul 21, 2022 · I have this script which should work fine for cubes without frozen transforms and default scale values. But in this case I have frozen the transforms of the original …
Intro to Python Scripting for Maya | by Cheryl Lao - Medium
Jan 10, 2019 · This tutorial is going to take you through writing a Python script in Maya using cmds, step-by-step! As an example, we’ll be writing a script to generate party hats in random …
Using the Maya Python API - Autodesk Knowledge Network
It is possible to write basic scripts that use the wrapper, iterator and function set classes of the Maya API. These scripts can query and manipulate the Maya model but are not fully integrated …
Change Object U V position by python - Autodesk Community
Jan 10, 2022 · It's not perfect because it only works with a single object, but maybe you can build on it. def moveUVtoPosition(u = None, v = None): """Moves selected objects UV's to specified …
scale command - Autodesk
The scale command is used to change the sizes of geometric objects. The default behaviour, when no objects or flags are passed, is to do a relative scale on each currently selected object …
- Some results have been removed