// Create a ClothVisual and set the bend mode constobj = scene.createSceneObject('Cloth'); constcloth = obj.addComponent('ClothVisual'); cloth.bendMode = Editor.Components.ClothVisual.BendMode.Isometric; cloth.bendStiffness = 0.5; console.log(`bendMode: ${cloth.bendMode}, bendStiffness: ${cloth.bendStiffness}`);
The same entity as in Lens Scripting.
See
Editor.Components.ClothVisual.
Example