Difference between revisions of "AxisOption new"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:Axis set modifying CGScript functions]]
 
[[Category:Axis set modifying CGScript functions]]

+
{{HelpFiles}}
  
 
====AxisOption_new====
 
====AxisOption_new====

Revision as of 11:36, 12 December 2011



AxisOption_new

This function is the axis option object's constructor and will return an array which must have 4 elements, configured like specified below:

  • OBJECT_TYPE: Object type information. It must have the same value as TYPE_AXIS_OPTION constant.
  • AXIS_OPTION_NAME: The name of the axis option, it is the value of the argument name passed to the constructor function
  • AXIS_OPTION_VALUE: The value expression for the axis option, it is the value of the value argument which might be passed to the constructor function.

Syntax

AxisOption_new(name [, value])

Arguments

name: Is a string expression. It is the name of the axis option.

value: Is a string expression. It is a bool CGS expression.

Return type

array

Examples

array axisOption = AxisOption_new("Adult");

axisOption[AXIS_OPTION_VALUE] = "Age == [18-55]";

Availability

Version 5.5