It can be tedious running scripts from the script editor all the time, to make this easier we can add our scripts to the Maya shelf interface.
It can be tedious running scripts from the script editor all the time, to make this easier we can add our scripts to the Maya shelf interface.
The .split() method splits a string into a list:
We can use this method to find the relatives of an object, this follows on from the .objectType() documentation. Lets take a look as some example code:
Used to rename objects:
cmds.rename(oldName, newName)
Specify a range in Python
This is used to find the type of an object. Let’s take a look as some example code:
To get a list of items in Maya, this relies on the Maya commands library: We can run this to get a list of all…
Use this to select an object, example:
Set an attribute of an object:
Let’s say we have 2 shapes (a cube and a circle), and we want to parent one shape under the other.