CUE Design Director Script Language User Manual
Page 7

Reference Manual Design Director Script Language
www.cuesystem.com
Page 7 of 94
The reference to element
The reference to element
Reference_to_Element -> Expression_Type_Object . element_name
where the element name is name of a property, method or an event. Every object type has a declared
allowed names and expression types to what name they refer to.
When the expression refers to a method or an event, the resulting type is always callable.
The list of allowed names for every type is stated in chapter 3 Objects – Properties Description.
Note: in the syntax description they are not explicitly stated that means a default property. Default object
property is a property that when in the expression a given type is required (property) and is stated only
expression type object. That means it is not required to write a reference for a default property through
a dot notation.
Default property is predominantly used for collection transmission from a property type object directly to
original object.
Collection
Getting the item from the collection:
Collection_Item ->Expression_Type_Object ! collection_item_name |
Expression_Type_Object
(Expression_Type_String)
Expression_Type_Object (Expression_Type_Uint)
Collection in the language is a simple list of other objects. In the language design an item of the
collection is always type object.
Expression type object always has to be a type that contains the collection itself.
The value of the expression is an object that in the collection is either on a position determined by an
expression type uint (numbered from zero) or the one whose name (assigned to an object in the design
environment) is identical to a given name respectively by the expression value type string.
If such an object does not exist in the collection then the expression value is noobject.
The function type object
In the language the following function is defined that returns type object.
Function
Description
RGB (Expression_Type_Uint,
Expression_Type_Uint_,
Expression_Type_Uint)
the value of object is object type ColorObject whose color best responds to
entered red, green, blue color value.
Note: More about defined object types see under chapter 3 Object –
Properties Description
The function value is already evaluated during the compilation – the entered
expressions therefore have to be constant.