Guest User

Untitled

a guest
Dec 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. objectType = bpy.context.object.type
  2.  
  3. "MESH"
  4. "CURVE"
  5. "SURFACE"
  6. "META"
  7. "FONT"
  8. "ARMATURE"
  9. "LATTICE"
  10. "EMPTY"
  11. "GPENCIL"
  12. "CAMERA"
  13. "LIGHT"
  14. "SPEAKER"
  15. "LIGHT_PROBE"
  16.  
  17. import bpy
  18.  
  19. types = bpy.context.object.bl_rna.properties['type'].enum_items
  20.  
  21. for t in types:
  22. print('type %s: %s' %(t.identifier, t.name))
Add Comment
Please, Sign In to add comment