Two UV`s scroll, or the first UV should be constant

Plz help me, I need the script with UV1 UV2 and UV3. UV1 is constant, UV2 and UV3 is move.
I do not know as to reconstruct individual Scroll UV.
I could make here so :

import GameLogic as g
cont = GameLogic.getCurrentController()
g.setLogicTicRate(60.0)
own = cont.getOwner()
mesh = own.getMesh()
array = mesh.getVertexArrayLength(0)

speed = own.speed
axis1 = own.axis1

if axis1 == “x”:
axis1 = 0
if axis1 == “y”:
axis1 = 1

for v in range(0,array):
vertex = mesh.getVertex(0,v)
UV1 = vertex.getUV()
UV1[axis1] = UV1[axis1]+speed
vertex.setUV(UV1)
vert = mesh.getVertex(0,v)
uv = vert.getUV2()
uv[1] = uv[1]+speed
vert.setUV2(uv,1)


Here two ГМ move.
But the first is necessary to me the free.
Should move 2 and 3.

Attachments

uv2scroll.blend (145 KB)

Not sure I understand you but this is the script I got from somewhere:

import GameLogic
from math import *

Always sensor to python

requires speed property

Own = GameLogic.getCurrentController().getOwner()
Mesh = Own.getMesh()

len = Mesh.getVertexArrayLength(0)

speed = Own.speed / 2

vertexindex=0
while vertexindex < len:
vertex = Mesh.getVertex(0,vertexindex)
uv=vertex.getUV()

# setting "U" (X)
#uv[0] = uv[0]+ speed
# setting "V" (Y)
uv[1]=uv[1]+ speed
vertex.setUV(uv)
# go to next vertex and set its UV coord
vertexindex = vertexindex+1