Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. for area in bpy.context.screen.areas:
  2. if area.type == 'TEXT_EDITOR':
  3. space = area.spaces.active
  4. print(repr(space.text))
  5.  
  6. # Example output with one visible text editor:
  7. # bpy.data.texts['ui_menu_simple.py']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement