Forum: Poser Python Scripting


Subject: Faster operation on a list of vectors?

damir_prebeg opened this issue on Jan 17, 2007 ยท 5 posts


adp001 posted Thu, 18 January 2007 at 3:37 AM

Because Python is an interpreter, it has to check the types of both parameters for every myVectors[vec[0]] = vec[1]

Doing typechecking 20000 times needs time. This is the reason why numeric should be used if computations with values stored in arrays are needed. Sometimes it may be required to change program logic to be able to use numeric.

Numeric is a built-in package with Poser Python, but a lower version.