v
v
gets/sets the v position of the vertex UV map.
Type: float
Sample
Code
###### get the vertex v position (UV map)
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# get v position of the vertex UV map
v_pos = vert.v
###### set the vertex v position (UV map)
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# set the the v position of the vertex UV map
vert.v = 1.0
|