Text
Outline text objects can be created from TrueType and OpenType fonts. Extruding the outline text will result in 3D text.
Creating Text Objects
- Select Tools > Create > Text.
- Enter the desired text in the Tool Parameters, and click in the Figure Window to create the text.
- Check the font, position, size, amount to extrude, and letter spacing, then click Apply.
Text Tool Parameters
- Textbox
- Enter the desired text.
- Font Button
- Select the font and size for the text from the Font dialog.
- Position
- Sets the starting position of the text.
- Extrude
- Sets the distance to extrude the text.
- Character
- Sets the spacing between characters.
- Line
- Sets the spacing between lines.
See alsoText Spacing (Character & Line)
- Vertical
- creating vertical text.
See alsoVertical
- Apply Button
- Applies the above settings and creates the text.
Using Scripts to Create Text
From the Script Window check Record, and then use the Text tool in the Toolbox to create the text. A script will be recorded.
- Example: xshade.scene().create_primitive_text(None, 0, True, [0, 0, 0], 2, 0, [0, 0, -90], "Shade", "Arial", 72, 18, 400, False)
-
Arguments :
string : If "None", the default name is used.
Arguments :
int : Object type : 0 : Standard (in Shade 3D ver.15, 0 only)
Arguments :
bool : Assigned UV : True : Assigned, False : None. Only valid for polygon meshes. (Not valid in Shade 3D ver. 14)
Arguments :
vec3 : Position
Arguments :
int : Creation plane : 0 : YZ plane, 1 : XZ plane, 2 : XY plane
Arguments :
int : Flip text direction : 0 : Not flipped, 1 : Flipped horizontally, 2 : Flipped vertically, 3 : Flipped both horizontally and vertically
Arguments :
vec3 : The vector of the height direction
Arguments :
strings : Output text
Arguments :
strings : Font name
Arguments :
int : Font size
Arguments :
float : Text spacing
Arguments :
int : Font thickness : Windows only
Arguments :
bool : Italics : True : Italic, False : Not italic (Windows only)