How can I do multiple pickers using the Picking library?
in
Contributed Library Questions
•
3 years ago
Hi,
I'm in the process of writing a sketch using a database. I'm trying to link picking ids to database row ids. I've got several tables I'm pulling data from and would like to have a separate picker for each table for different visualizations.
Does anyone have an idea on how to distinguish which picker an object is associated with?
For example, I draw 1000 circles and 1000 squares. The circles have a picker and the squares have a picker. I can get the ids from each picker if I mouse over an object, but how do I distinguish if it's a circle or square that the mouse is over?
Or will the library work as long as the buffer colors are not the same? Or as long as the objects aren't overlapping?
Thanks,
Max
1