titles
The titles module provides a means to place text in the non-transformable 2D overlay of the viewer. The text is not transformed by viewer transformations and is positioned using sliders in the titles user interface.
The title text supports an expression editor with variables that can be connected via ports. Text formatting can be performed with a limited subset of Markdown and HTML syntax, including bold, italic, headings, lists, monospaced text, horizontal rules, colored text, font size, and font changes.
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input String | String | Text containing the string used to create the title. |
| Input | Number 1 | Number | A value to use as a variable. |
| Input | Number 2 | Number | A value to use as a variable. |
| Input | String 1 | String | A string to use as a variable. |
| Output | Output Object | Renderable | A renderable object displaying the title. |
Properties
| Property | Type | Description |
|---|---|---|
| Title | Expression | The text to use for the title. Supports the variables {N1}, {N2}, and {S1}. Disabled when the Input String port is connected, in which case the port text is used. |
Text Settings
| Property | Type | Description |
|---|---|---|
| Title Size | Double | How large the title text will be. |
| Title Color | Color | The color to use for the title. |
| Title Font | Font | The font face used for the title. |
| Title Alignment | Horizontal Alignment | The horizontal alignment for the title text. |
Positioning
| Property | Type | Description |
|---|---|---|
| Anchor Side | Choice: Top, Bottom | Determines whether the title text is positioned off the top or bottom edge of the viewer. |
| Anchor Margin | Double | How far from the anchor side the near edge of the text will be. |
| Left Margin | Double | How close to the left edge of the viewer the text is allowed to be. |
| Right Margin | Double | How close to the right edge of the viewer the text is allowed to be. |
| Rotation | Double | Spins the title text around the point where its center would be if not rotated. |
| Overlay | Choice: Behind Scene, In front of scene | Places the title behind the model or in front of it. |
Variables
| Property | Type | Description |
|---|---|---|
| N1 | Double | A double value that can be used as the variable {N1} in the expression. |
| N2 | Double | A double value that can be used as the variable {N2} in the expression. |
| S1 | String | A string value that can be used as the variable {S1} in the expression. |