how to get the current selected object INDEX from the total number of object in canvas?
For example I have 5 rectangles. If I select a rectangle and click a button it should display the current Index of the object
myCanvas.getObjects().indexOf(myObject)
Most helpful comment
myCanvas.getObjects().indexOf(myObject)