Regular API function

simAddObjectToSelection / sim.addObjectToSelection

Description Deprecated. See the object selection functions.
C/C++
synopsis
int simAddObjectToSelection(int what,int objectHandle)
C/C++
parameters
what: indicates what we want to add. Valid values are sim.handle_single (adds just one object), sim.handle_all (adds all objects in the scene), sim.handle_tree (adds the tree with base objectHandle (inclusive)) and sim.handle_chain (adds the chain with tip objectHandle (inclusive))
objectHandle: handle of an object. Doesn't have a meaning if "what" is sim.handle_all
C/C++
return value
-1 if operation was not successful
Lua
synopsis
There are two versions of this function:
(1) sim.addObjectToSelection(int what,int objectHandle)
(2) sim.addObjectToSelection(int[] objectHandles)
Lua
parameters
(1) Similar to the C-function counterpart. The second argument can be omitted if "what" is sim.handle_all
(2) objectHandles: table of object handles. Can be nil
Lua
return values