setText3d
setText3d
Signature
setText3d(
name: string,
settings: Partial<Text3DNodeSettings>
): Promise<Text3DNodeSettings>Parameters
Name
Type
Required
Description
Returns
Usage
// Change text content only
await api.setText3d("3D Text", {
text: "Hello World"
});
// Change font size only
await api.setText3d("3D Text", {
fontSize: 80
});
// Change multiple properties
const updated = await api.setText3d("3D Text", {
text: "Vectary",
fontSize: 50,
textAlign: "CENTER",
textHeight: "UPPERCASE"
});
console.log(updated); // Full updated settingsNotes
Last updated