A user-friendly way of picking lines

Picking directly from the renderer instead of using any of the pickers did the trick:

renderer = self.GetCurrentRenderer()
assemblyPath = renderer.PickProp(self.start_x, self.start_y, self.end_x, self.end_y)
collection = renderer.GetPickResultProps()

renderer.PickProp returns the nearest prop while all picked props are stored in renderer.GetPickResultProps()

2 Likes