Regular API function

simGetObjectSelection / sim.getObjectSelection

Description Retrieves all selected object's handles. See also simGetObjectSelectionSize, sim.addObjectToSelection and sim.removeObjectFromSelection.
C synopsis simInt simGetObjectSelection(simInt* objectHandles)
C parameters
objectHandles: pointer to object handles. Make sure to have at least simGetObjectSelectionSize simInts available
C return value
size of the selection (>=0) if operation was successful, -1 otherwise
Lua synopsis table[] selectedObjectHandles=sim.getObjectSelection()
Lua parameters
Lua return values
selectedObjectHandles: table containing the handles of all selected objects, or nil if no object is selected
Remote API equiv.
B0-based remote API: simxGetObjectSelection
Legacy remote API: simxGetObjectSelection