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()
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
vert = mesh.getVertex(0,v)
uv = vert.getUV2()
uv[1] = uv[1]+speed

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


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

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

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