comet.CElement¶
- class comet.CElement¶
This section describes all functions for the CElement class.
A CElement represents a subtemplate used or to be used in the repeating elements area build mode.
Methods¶
- CElement.getID()¶
Get the record ID for this element.
- Returns
The record ID
- Return type
- Available
- CScript
- CElement.setID(ID)¶
Set the record ID for this element.
- Parameters
ID (CIDType) – The new record ID
- Returns
None
- Available
- CScript
- CElement.getTemplateID()¶
Get the template ID for this element.
- Returns
The template ID
- Return type
- Available
- CScript
- CElement.setTemplateID(ID)¶
Set the template ID for this element.
- Parameters
ID (int) – The new template ID
- Returns
None
- Available
- CScript
- CElement.getClassID()¶
Get the class ID for this element.
- Returns
The class ID
- Return type
- Available
- CScript
- CElement.setClassID(ID)¶
Set the class ID for this element.
- Parameters
ID (int) – The new class ID
- Returns
None
- Available
- CScript
- CElement.getFormatString()¶
Get format string for this element.
- Returns
The format string
- Return type
- Available
- CScript
- CElement.setFormatString(formatString)¶
Set the format string for this element.
- Parameters
formatString (str) – The new format string
- Returns
None
- Available
- CScript
- CElement.getMasterFrame()¶
Get the main frame of a repeated element.
- Returns
Main frame of a repeated element.
The call only returns a valid value when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is None.
- Return type
- Available
- CScript
- CElement.getFrames()¶
Get the built frames of this element.
- Returns
The built frames.
The call only contains valid values when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is an empty list.
- Return type
- Available
- CScript
- CElement.getOrderNumber()¶
Get the order number of this element. Order numbers are usually in increments of 10.
- Returns
The order number. The call only contains valid values when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is -1.
- Return type
- Available
- CScript