SHARE
TWEET

Untitled

a guest Dec 15th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import bpy
  2. import random
  3. from random import randint
  4.  
  5. bpy.ops.object.editmode_toggle()
  6. bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='FACE')
  7. bpy.ops.mesh.select_all(action='SELECT')
  8. bpy.ops.mesh.edge_split()
  9.  
  10. for i in range(6):
  11.    
  12.     bpy.ops.mesh.select_all(action='DESELECT')
  13.     bpy.ops.mesh.select_random(percent=25, seed=randint(0, 9999), action='SELECT')
  14.     bpy.ops.mesh.select_random(percent=25, seed=randint(0, 9999), action='SELECT')
  15.     bpy.ops.mesh.subdivide(smoothness=0)
  16.     bpy.ops.mesh.select_all(action='SELECT')
  17.     bpy.ops.mesh.edge_split()
  18.  
  19. bpy.ops.object.editmode_toggle()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top