sim.setObjectColor

Sets the color of a scene object

Synopsis

sim.setObjectColor(int objectHandle, int index, int colorComponent, list rgbData) sim.setObjectColor(int objectHandle, int index, int colorComponent, float[3] rgbData)

Arguments

  • objectHandle: handle of the object
  • index: zero-based index of the color, if the object has several colors
  • colorComponent: color component
  • rgbData: red, green and blue components of the color (3 values)


See also: