Vizard 8 » Command Index » Vizard objects » node3d » <node3d:text3d>.setThickness
8.0

<node3d:text3d>.setThickness

Set the thickness of the 3D text node

<node3d:text3d>.setThickness(  
thickness  
)  
thickness
The thickness as a percentage of the character height.

Remarks

This command is used to control the depth of 3D text objects created using the <viz>.addText3D command.

The default global thickness can be specified with the viz.text.thickness option. The default value of the option is 0.1 .

Return Value

None

Example

# Create 3D text
text = viz.addText3D('The quick brown fox')

# Set depth to 50% of font height
text.setThickness(0.5)

See also

<node3d:text3d>.getThickness
<viz>.addText3D