I'm currently trying to work out how to get random multiple bounding box values. In MEL this is quite simple, which is it's just -
rand($bBox[1], $bBox[2]) Where as in python i thought it'd be just as simple, i import the random function and tried the uniform command to get the random values, which is - random.uniform (stringBBList[0], stringBBList[1]) How ever this doesn't work and i'm at a loss as to why. I tried getting the average of a single bounding box value but this again does not work. It tells me i need three values and not the supplied two, though as far as i understood it you need two numbers for the random.uniform command. This is probably quite a simple problem to solve but i'd appreciate any help any one can give. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
