python vertex stuff...


(Piraniac) #1

Hi all,

need some help with moving vertices with python in realtime, mainly what the arguments are that the vertex functions need:

mesh.getVertexArrayLength()

only gives me something recognisable when i put a value in the (), but what is that value referring to?
the same with mesh.getVertex(), it says it needs two arguments, but what are they?

all help will be greatly appreciated, i feel kinda thick :-? :wink:

cheers
Piran


(wiseman303) #2

Mesh.getVertexArrayLength()

Requires an int representing which material youโ€™re reffering to. (If you have no materials on your mesh, than put 0)

Mesh.getVertex()

Requires two ints, one representing the amterial, and one identifying the vertex.

For example, to get the fourth vertex of the third material write Mesh.getVertex(2,3)