code: def simxGetObjectSelection(clientID, operationMode):
      '''
      Please have a look at the function description/documentation in the V-REP user manual
      '''
      objectCount   = ct.c_int()
      objectHandles = ct.POINTER(ct.c_int)()
      ret = c_GetObjectSelection(clientID, ct.byref(objectHandles), ct.byref(objectCount), operationMode)
  
      newobj = []
      if ret == 0:
          for i in range(objectCount.value):
              newobj.append(objectHandles[i])
  
      return ret, newobf simxGetObjectSelection(clientID, operationMode):
      '''
      Please have a look at the function description/documentation in the V-REP user manual
      '''
      objectCount   = ct.c_int()
      objectHandles = ct.POINTER(ct.c_int)()
      ret = c_GetObjectSelection(clientID, ct.byref(objectHandles), ct.byref(objectCount), operationMode)
  
      newobj = []
      if ret == 0:
          for i in range(objectCount.value):
              newobj.append(objectHandles[i])
  
      return ret, newobj
docs: Please have a look at the function description/documentation in the V-REP user manual