usdview Python interpreter has a built-in object called usdviewApi that gives you access to the currently selected prims.
from typing import List
from pxr import Usd
prims: List[Usd.Prim] = usdviewApi.selectedPrims
usdview Python interpreter has a built-in object called usdviewApi that gives you access to the currently selected prims.
from typing import List
from pxr import Usd
prims: List[Usd.Prim] = usdviewApi.selectedPrims