Preparing search index...

    The same entity as in Lens Scripting.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    // Create a ClothVisual and set the bend mode
    const obj = scene.createSceneObject('Cloth');
    const cloth = obj.addComponent('ClothVisual');
    cloth.bendMode = Editor.Components.ClothVisual.BendMode.Isometric;
    cloth.bendStiffness = 0.5;
    console.log(`bendMode: ${cloth.bendMode}, bendStiffness: ${cloth.bendStiffness}`);
    Index

    Enumeration Members

    Enumeration Members

    Isometric: number

    Isometric bending model preserving cloth surface area.

    Linear: number

    Linear bending model for simpler cloth simulation.