Nofew icon

Rotate2

Nofew | PRO | 09/13/17 02:02:45 PM UTC | 0 ⭐ | 367 👁️ | Never ⏰ | []
Python |

430 B

|

None

|

0 👍

/

0 👎

import bpy
from math import pi
from math import radians
from random import randrange
 
CurrentThingy = 0
 
for i in bpy.context.selected_objects:
    bpy.context.scene.objects.active = i
    DRAGON = randrange(1, 4)
    bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(1, 0, 0))
    bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(0, 1, 0))
    bpy.ops.transform.rotate(value=(DRAGON*90)*(pi/180), axis=(0, 0, 1))

Comments