import bpy from math import pi from math import radians from random import randrange import random CurrentThingy = 0 for CurrentThingy in bpy.context.selected_objects: bpy.context.scene.objects.active = CurrentThingy DRAGON = random.choice([0, 1, 2, 3]) 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