Advertisement
Nofew

Rotate2

Sep 13th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. import bpy
  2. from math import pi
  3. from math import radians
  4. from random import randrange
  5.  
  6. CurrentThingy = 0
  7.  
  8. for i in bpy.context.selected_objects:
  9.     bpy.context.scene.objects.active = i
  10.     DRAGON = randrange(1, 4)
  11.     bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(1, 0, 0))
  12.     bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(0, 1, 0))
  13.     bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(0, 0, 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement