Regular API function

simGetObjectSel / sim.getObjectSelection

Description Retrieves the handles of selected objects. See also the other related functions.
C/C++
synopsis
simInt* simGetObjectSel(simInt* cnt)
C/C++
parameters
cnt: the number of selected objects
C/C++
return value
a pointer to the selected objects. The user is in charge of releasing the buffer via simReleaseBuffer
Lua
synopsis
int[] selectedObjects=sim.getObjectSelection()
Lua
parameters
Lua
return values
selectedObjects: the handles of selected objects
Python
synopsis
list selectedObjects=sim.getObjectSelection()