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:


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:


(wiseman303) #2


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


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)