Not sure if Blender has a built in mechanism that "knows" the order the user selects Objects in 3D view or Components by Index.
I wanted to achieve this using Python for later usage incorporated into node in Sverchok or Animation Nodes.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
bmesh records (or provides access to) the selection history of a mesh.
import bpy import bmesh obj = bpy.context.object if obj.mode == 'EDIT': bm = bmesh.from_edit_mesh(obj.data) elif obj.mode == 'OBJECT': bm = bmesh.new() bm.from_mesh(obj.data) for i in bm.select_history: print(type(i),i.index)
Notice the use of
type() as the history list can contain verts, edges and faces at the same time and in any order.