Vizard 7 » Command Index » Vizard modules » viz » <viz>.addText3D
7.6

<viz>.addText3D

Adds a 3D text object to the scene

<viz>.addText3D(  
value  
parent = viz.WORLD  
scene = viz.MainScene  
)  
value
The initial value of the text object
parent = viz.WORLD
viz.WORLD
viz.SCREEN
viz.ORTHO
<node3d> object
scene = viz.MainScene
If the parent is viz.WORLD or viz.SCREEN, then the argument represents the scene to add the object to.
If the parent is viz.ORTHO, then the argument represents the window to add the object to.
If the parent is a valid node3d object, then the argument is ignored.

Remarks

This command creates a 3D polygon-based node for displaying text. The depth/thickness of the 3D text can be controlled using the <node3d:text3d>.setThickness command.

When adding text objects to viz.ORTHO, use the <node3d:text3d>.fontSize command to adjust the size. Text objects are aligned to the bottom left corner by default.

Return Value

<node3d:text3d> object

Example

text = viz.addText3D('The quick brown fox')

See also

<viz>.addText
<node3d:text3d>.getThickness
<node3d:text3d>.setThickness