Nofew

Rotate3

Sep 13th, 2017
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 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 CurrentThingy in bpy.context.selected_objects:
  9.     bpy.context.scene.objects.active = CurrentThingy
  10.     DRAGON = randrange(1, 4)
  11.     bpy.ops.transform.rotate(value=((radians(DRAGON*90)), axis=(1, 0, 0))
  12.     bpy.ops.transform.rotate(value=((radians(DRAGON*90)), axis=(0, 1, 0))
  13.     bpy.ops.transform.rotate(value=((radians(DRAGON*90)), axis=(0, 0, 1))
Advertisement
Add Comment
Please, Sign In to add comment