Lets start again with our example Animal class:
Lets start again with our example Animal class:
We create instances of classes in python in the same way we create instances of any other types. Let’s take an example class:
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)