MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / get_active_text_block

Function get_active_text_block

modal_handler.py:534–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532 return min(max(value, min_value), max_value)
533
534def get_active_text_block():
535 return TextBlock(bpy.context.space_data.text)
536
537def is_event_in_text_editor(event):
538 area = get_area_under_mouse(event)

Callers 3

drawMethod · 0.85
selected_operatorMethod · 0.85

Calls 1

TextBlockClass · 0.90

Tested by

no test coverage detected