TextExtrusion


The TextExtrusion class describes a 3D text scene object.

Properties

PropertyDescription

backMaterial

(get) (Not Available) (set) backMaterial: MaterialBase

Specifies the material of the back cap of 3-d text.

depth

(get) depth: ScalarSignal (set) depth: ScalarSignal

Text extrusion is only made through straight paths. This specifies the depth of the straight path of extrusion, starting from the position of textExtrusion scene object.

Note: Default value is 10 mm.

faceMaterial

(get) (Not Available) (set) faceMaterial: MaterialBase

Specifies the material of the caps or face of 3-d text.

font

(get) (Not Available) (set) font: Font

Sets the given font from the fonts registry. i.e: myText.font = require('Fonts').get("myFontName")

frontMaterial

(get) (Not Available) (set) frontMaterial: MaterialBase

Specifies the material of the front cap of 3-d text.

letterSpacing

(get) letterSpacing: ScalarSignal (set) letterSpacing: ScalarSignal

Specifies the letter spacing value.

lineSpacing

(get) lineSpacing: ScalarSignal (set) lineSpacing: ScalarSignal

Specifies the line spacing value.

sideMaterial

(get) (Not Available) (set) sideMaterial: MaterialBase

Specifies the material of the extrusion part of 3-d text.

text

(get) text: StringSignal (set) text: StringSignal

Specifies the text displayed.

boundingBoxVisible (inherited from SceneObjectBase)

(get) boundingBoxVisible: BoolSignal (set) (Not Available)

Represents whether or not the bounding box for the object is visible.

cameraVisibility (inherited from SceneObjectBase)

(get) cameraVisibility: CameraVisibility (set) (Not Available)

Represents the CameraVisibility that contains a set of flags that specify the scene object (and its descendants) visibility depending on the active camera.

hidden (inherited from SceneObjectBase)

(get) hidden: BoolSignal (set) hidden: BoolSignal

Specifies whether the scene object and its descendants are hidden.

identifier (inherited from SceneObjectBase)

(get) identifier: String (set) (Not Available)

Specifies the scene object unique identifier. This value is specified internally in AR Studio.

materialIdentifier (inherited from SceneObjectBase)

(get) materialIdentifier: String (set) (Not Available)

Specifies the unique material identifier assigned to scene object. This value is specified internally in AR Studio.

name (inherited from SceneObjectBase)

(get) name: String (set) (Not Available)

Specifies the scene object name. This is the unique identifier of the object within the list of its siblings (immediate child objects of the same parent object).

Note: the object name is specified in AR Studio UI during design time.

Note: the object name must only be unique withing the list of direct siblings. There can be more than object with the same name in the scene as soon as they have different parents.

See Also: SceneObjectBase.child, SceneObjectBase.find, SceneModule.root.

outputVisibility (inherited from SceneObjectBase)

(get) outputVisibility: OutputVisibility (set) (Not Available)

Represents the OutputVisibility that contains a set of flags that specify the scene object (and its descendants) visibility depending on the output.

parentWorldTransform (inherited from SceneObjectBase)

(get) parentWorldTransform: TransformSignal (set) (Not Available)

Specifies a TransformSignal object describing the parent's transformation relative to world coordinate system.

transform (inherited from SceneObjectBase)

(get) transform: Transform (set) transform: TransformSignal

Represents the object transformation, in object's local coordinate system.

worldTransform (inherited from SceneObjectBase)

(get) worldTransform: WorldTransform (set) worldTransform: TransformSignal

Specifies a TransformSignal object describing the object's transformation relative to world coordinate system. World transform in not yet supported for Canvas and Legacy canvas. Accessing this property from such objects or any of their children is not allowed.

Methods

MethodDescription

child (inherited from SceneObjectBase)

child(name: string): SceneObjectBase

Returns a child object by name. An exception is thrown if the object isn't found.

See Also: SceneObjectBase.find, SceneModule.root.

find (inherited from SceneObjectBase)

find(name: string): SceneObjectBase

Returns a descendant object by name. An exception is thrown if the object isn't found or if more than one is found.

Note: object D is considered to be a descendant of object P if either D is a child of P or if such an object C which is a child of P exists that D is a descendant of C.

See Also: SceneObjectBase.child, SceneModule.root.