For this example we will be generating a type called “Animal”
For this example we will be generating a type called “Animal”
The init method within a class is run each time a new instance of the class is created. These are used to set initial values and attributes.
Length of something, for example lets create a list which contains a number of integers:
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…