I need to select from one trace, when I have multiple traces

Hi community,

I have a problem, where I have two traces. One is a “lines+markers” the other is “markers”.
The “markers” trace has thousands of dots inside the data.

When I use the “box-select” action (“plotly_selected”) I want to filter the trace with “mode: lines+markers” ONLY.
I need to do this due to performance issues, because of the thousands of dots, the selection will be very slow.

I tried to use many solutions, but the problem remained the same. I need to exclude the “markers” trace BEFORE the selection action fires.

Is there a way to use select on a specific trace?