Check if path is focused in a script

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.


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.)


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

1 Like