Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --(
- delete $*
- pl = plane lengthsegs:3 widthsegs:3 length:100 width:100
- uvMat = physicalMaterial()
- uvMat.basecolormap = Bitmaptexture filename:(getDir #maxroot+"maps//uv-grid.png")
- pl.material = uvMat
- convertTo pl Editable_Poly
- polyop.breakVerts pl #all
- --lets get to uv offsetting
- randomMoveAmount = 1.0
- for face = 1 to getNumFaces pl do
- (
- faceVerts = polyOp.getMapFace pl 1 face
- (
- randomMove = (random randomMoveAmount -1 * randomMoveAmount)
- for vert in faceVerts do
- (
- polyOp.setMapVert pl 1 vert ((polyOp.getMapVert pl 1 vert) + [0,randomMove,0])
- )
- )
- )
- redrawViews()
- --)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement