Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- from bpy import context
- scene= context.scene
- obj = bpy.context.active_object
- face = obj.data.polygons[0]
- scene.cursor.location = face.normal
- scene.cursor.rotation_euler = face.normal
- rot = context.scene.cursor.rotation_euler.copy()
- loc = context.scene.cursor.location.copy()
- bpy.ops.mesh.primitive_plane_add(location=loc, rotation= rot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement