Regular API function

simGetObjectColor / sim.getObjectColor

Description Retrieves the color of a scene object. See also other rendering related functions.
C/C++
synopsis
simInt simGetObjectColor(simInt objectHandle,simInt index,simInt colorComponent,simFloat* rgbData)
C/C++
parameters
objectHandle: handle of the object
index: the zero-based index of the color, if the object has several colors
colorComponent: a color component.
rgbData (output): red, green and blue components of the color (3 values)
C/C++
return value
-1 if operation was not successful. 0 if the color index was not found in the object. 1 otherwise.
Lua
synopsis
int result,float[3] rgbData=sim.getObjectColor(int objectHandle,int index,int colorComponent)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int result,list rgbData=sim.getObjectColor(int objectHandle,int index,int colorComponent)

<