Skip to content

Instantly share code, notes, and snippets.

@DCubix
Created February 22, 2017 01:53
Show Gist options
  • Save DCubix/ca3780034366c55d8bd38ae23d2c6a28 to your computer and use it in GitHub Desktop.
Save DCubix/ca3780034366c55d8bd38ae23d2c6a28 to your computer and use it in GitHub Desktop.
if mouse.events[events.LEFTMOUSE] == 1:
hit = P.mOver.hitObject
if hit is not None:
mesh = hit.meshes[0]
for v in range(mesh.getVertexArrayLength()):
vert = mesh.getVertex(0, v)
uv = vert.getUV()
uv[0] += 0.5
vert.setUV(uv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment