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)