titles

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

DirectionNameTypeDescription
InputInput StringStringText containing the string used to create the title.
InputNumber 1NumberA value to use as a variable.
InputNumber 2NumberA value to use as a variable.
InputString 1StringA string to use as a variable.
OutputOutput ObjectRenderableA renderable object displaying the title.

Properties

PropertyTypeDescription
TitleExpressionThe 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

PropertyTypeDescription
Title SizeDoubleHow large the title text will be.
Title ColorColorThe color to use for the title.
Title FontFontThe font face used for the title.
Title AlignmentHorizontal AlignmentThe horizontal alignment for the title text.

Positioning

PropertyTypeDescription
Anchor SideChoice: Top, BottomDetermines whether the title text is positioned off the top or bottom edge of the viewer.
Anchor MarginDoubleHow far from the anchor side the near edge of the text will be.
Left MarginDoubleHow close to the left edge of the viewer the text is allowed to be.
Right MarginDoubleHow close to the right edge of the viewer the text is allowed to be.
RotationDoubleSpins the title text around the point where its center would be if not rotated.
OverlayChoice: Behind Scene, In front of scenePlaces the title behind the model or in front of it.

Variables

PropertyTypeDescription
N1DoubleA double value that can be used as the variable {N1} in the expression.
N2DoubleA double value that can be used as the variable {N2} in the expression.
S1StringA string value that can be used as the variable {S1} in the expression.