Finding other objects with Vision sensor

Is it possible to find the x position of an object that isn’t the largest in it’s color signature? For example can I find the x position of the 3rd largest object in signiture 2?

What would the code look like?

(I feel like I’m missing something, but I can’t figure out why theres like 5 different take snapshot functions, and how the whole ObjectID system works)

Those are called overloads. The same function name but with different choices for arguments.

As for objects other than the largest, use the


objects

array which is a property of the vision sensor.


visionSensorName.objects[2].centerX

would be the center X position of the third largest object, if it exists. If there aren’t three objects, this will cause problems, so check the number of objects with


visionSensorName.objectCount

before you try it.