Any CG item processed by the CG plugin such as a ticker, graphic, text, image, or video, inherits a set of base attributes. The attributes are defined in the XML description. This article describes these attributes in the table below.
The described attributes belong to the cg-item node.
| XML property | Description | Values | Example |
|---|---|---|---|
| id | A unique identifier of the CG item. Used to distinguish the item inside the CG plugin. | string | id="text-item-001" |
| pos-x | Horizontal position of the item on the screen. The value is defined as a percentage of the frame resolution. Can be negative. | float | pos-x="0.05" |
| pos-y | Vertical position of the item on the screen. The value is defined as a percentage of the frame resolution. Can be negative. | float | pos-x="0.05" |
| size-x | Width of the item. The value is defined as a percentage of the frame resolution. | non-negative float | size-x="0.25" |
| size-y | Height of the item. The value is defined as a percentage of the frame resolution. | non-negative float | size-y="0.25" |
| group-type | Defines the type or category of the group the item belongs to (for example: ticker, graphic, text, image, video). |
| group-type="ticker" |
| group-show | Defines the direction or behavior used when the group appears on the screen. |
| group-show="right" |
| group-hide | Defines the direction or behavior used when the group disappears from the screen. |
| group-hide="left" |
| on-show | Defines the animation direction or behavior when the item appears on the screen. |
| on-show="top" |
| on-hide | Defines the animation direction or behavior when the item disappears from the screen. |
| on-hide="bottom" |
| on-show-time | Defines the duration of the element’s on-show appearance animation in seconds. If the attribute is not specified, the element appears instantly. | non-negative float | on-show-time="0.5" |