Check if path is focused in a script

Hi!
Is there a way to check if path is focused with “Focus on Selected Paths” through a script? Seems like this property is not declared in both python and core APIs.

Thanks.

That is stored in the tool instance. This is not easy and quite fragile to access. (I change it for the next bigger version that it will be stored on the path itself.)

print(Font.currentTab.windowController().toolEventDelegate().currentTool().focusOnPaths())

You need to put that in try:except: as depending on the selected tool, it might not work.

1 Like