#!BPY """ Name: 'Function Documentation | Ctrl I' Blender: 246 Group: 'TextPlugin' Shortcut: 'Ctrl+I' Tooltip: 'Attempts to display documentation about the function preceding the cursor.' """ # Only run if we have the required modules try: import bpy from BPyTextPlugin import * except ImportError: OK = False else: OK = True def main(): txt = bpy.data.texts.active if not txt: return (line, c) = current_line(txt) # Check we are in a normal context if get_context(txt) != CTX_NORMAL: return # Identify the name under the cursor llen = len(line) while c