I am trying to spawn a random polygon primitive with a random number of subdivisions each time.
If my limited knowledge is correct I can't just spawn a random mesh. I would need to collect all types of meshes I could spawn into an array of numbers and then pull a random number which represents that mesh and spawn it.
However each mesh has a different command/way of subdividing itself.
import random
object = cmds.polySphere ( r=10, sx=random.randrange(10, 100), sy=random.randrange(10,100), name='mySphere#' )
I can spawn each mesh separately and randomize it based on specific commands but how would I get it to spawn either a cube, a cone or any other primitive with a random number of divisions?