User Tools

Site Tools


channel_enum

Description

Defines properties of an enum-valued channel. A channel_enum channel type can support a pre-determined mapping from a string to an integer index value.

Parent Objects

Extends

Properties

Name Description Default Required
value An int representing the default index value for the parameter. 0 no
enum_values An array of string values representing the enumerated values for the parameter. {empty} no

Details

The current_value attribute is overridden anytime an animation is associated with the channel.

Example

{
	"id" : "Lighting Model",
	"type" : "enum",
	"name" : "Lighting Model",
	"label" : "Lighting Model",
	"value" : 0,
	"enum_values" : [ "Plastic", "Metallic", "Skin", "Glossy (Plastic)", "Matte", "Glossy (Metallic)" ]
}