Hi,
I am trying to randomly select a vertex between 0 and 55 from a cube in a list, and then modify the vertex
This is the code I have:
for i in range(0, len(listName)):
rand = random.randint(0, 55)
cmds.select(listName[i] + '.vtx[' + rand + ']')
cmds.move(random.uniform(-0.25, 0.25), random.uniform(-0.3, 0.3), random.uniform(-0.4, 0.4))
'listName' being the object in the list I am selecting the vertex from
The error message I get is:
# TypeError: coercing to Unicode: need string or buffer, int found #
Thanks in advance