nuke.getGeoSelection

nuke.getGeoSelection() Returns the selection as a dictionary
Returns

Currently selected geometry