Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. bpy.ops.object.editmode_toggle()
  2. bpy.ops.uv.smart_project(angle_limit=66, island_margin=0, user_area_weight=0)
  3. bpy.ops.uv.reset()
  4. bpy.ops.mesh.uvs_rotate()
  5.  
  6. >>> import bpy
  7. >>> bpy.context.area.type
  8. Traceback (most recent call last):
  9. File "<console>", line 1, in <module>
  10. AttributeError: 'NoneType' object has no attribute 'type'
  11. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement