Regular API function

simGetObjectFromUid / sim.getObjectFromUid

Description Retrieves an object handle based on its unique identifier. See also sim.getObjectUid.
C/C++
synopsis
simInt simGetObjectfromUid(simInt64 objectUid,simInt options)
C/C++
parameters
objectUid: the object unique identifier.
options: bit-coded. bit0 set (i.e. 1): errors are silent.
C/C++
return value
handle of object or -1 if operation was not successful
Lua
synopsis
int objectHandle=sim.getObjectFromUid(int objectUid,table options={})
Lua
parameters
objectUid: the object unique identifier.
options: optional table indicating how the object should be searched. {noError=true} will generate a silent error if an object was not found.
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int objectHandle=sim.getObjectFromUid(int objectUid,dict options={})