Nofew icon

Rotate3

Nofew | PRO | 09/13/17 04:25:00 PM UTC | 0 ⭐ | 463 👁️ | Never ⏰ | []
Python |

460 B

|

None

|

0 👍

/

0 👎

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

Comments