getText3d

getText3d

Returns the settings of a 3D Text object.

Signature

getText3d(name: string): Promise<Text3DNodeSettings | null>

Parameters

Name
Type
Required
Description

name

string

Yes

Name of the 3D Text object

Returns

Promise<Text3DNodeSettings | null> — Text settings, or null if object not found.

type Text3DNodeSettings = {
  text: string;
  fontFamily: string;
  fontSize: number;
  weight: string;
  distanceX: number;
  distanceY: number;
  textAlign: 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFY';
  textHeight: 'DEFAULT' | 'CAMELCASE' | 'UPPERCASE' | 'LOWERCASE';
  curveSegments: number;
  amount: number;
  contourOffset: number;
};

Usage

Notes

  • Returns null for non-existent objects

  • Throws error for non-3D-Text objects

Last updated