Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for area in bpy.context.screen.areas:
- if area.type == 'TEXT_EDITOR':
- space = area.spaces.active
- print(repr(space.text))
- # Example output with one visible text editor:
- # bpy.data.texts['ui_menu_simple.py']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement