Created
February 22, 2017 01:53
-
-
Save DCubix/ca3780034366c55d8bd38ae23d2c6a28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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