Script: test-paste

test-paste picture
Type
Typescript logo indicatortypescript
Author
erics
Date Created
Oct 4, 2025, 8:48:14 AM
Last Edit Date
Oct 4, 2025, 8:48:14 AM

Project Information

collection of scripts while learning

View Full Project

Script Code

let text = "Hello erics!";

const start = async () => {
    const textOpt = new Bit.Advanced.Text3D.Text3DDto();
    textOpt.text = text;
    textOpt.fontVariant = Bit.Advanced.Text3D.fontVariantsEnum.BoldItalic;
    textOpt.originAlignment = Bit.Advanced.Text3D.recAlignmentEnum.centerBottom;
    textOpt.direction = [0, 0, -1];
    textOpt.rotation = -90;
    const text3D = await bitbybit.advanced.text3d.create(textOpt);

    bitbybit.draw.drawAnyAsync({
        entity: text3D
    });

    const gridOptions = new Bit.Inputs.Draw.SceneDrawGridMeshDto();
    bitbybit.draw.drawGridMesh(gridOptions);
}

start();