setText3d
Sets new settings for a 3DText object. We are using the Google Fonts API, so you can use any combination of fontFamily and weight from that service. If the provided weight option is not found, the first option available will be used.
Make sure to check the get-setText3d sandbox for a working example.
setText3d(
objectName: string,
settings: Text3DNodeSettings
): Promise<Text3DNodeSettings>Parameters
Description
Type
objectName
Specifies what 3d text object do we want to retrieve its settings from.
string
Usage:
await modelApi.getText3d('3D Text', {
fontFamily: "Roboto",
weight: "100"
});Return value:
{
"text": "Example",
"fontFamily": "Roboto",
"fontSize": 50,
"weight": "100",
"distanceX": 0,
"distanceY": 0,
"textAlign": "CENTER",
"textHeight": "DEFAULT",
"curveSegments": 5,
"contourOffset": 0
"amount": 15,
}Last updated