Математика

Физика

Химия

Биология

Техника и    технологии

 

 

 

 

Тип ткани

bend
гибкость ткани

bCurve

stretch

shear

density
плотность ткани

thickness
толщина ткани

repulsion

damping

airres

dynFric

staticFric

selfFric

seamForce

vScale

offset

Satin

35.0

0.0

5.0

1.0

0.001

0.0

1.0

0.01

0.01

0.1

0.3

0.2

5000.0

1.0

1.0

--1. Применям модифекатор Cloth к  $Shape01

max modify mode -- open mod panel

myCloth=Cloth()

addModifier $Shape01 (myCloth) --Применяем модефекатор Cloth()

 

--2 Устанавливаем параметры

  $Shape01.Cloth.setObjectType $Shape01 2 true

 $Shape01.Cloth.setObjectProperty $Shape01 "bend" 35.0

 $Shape01.Cloth.setObjectProperty $Shape01 "bCurve" 0.0

 $Shape01.Cloth.setObjectProperty $Shape01 "stretch"  5.0

 $Shape01.Cloth.setObjectProperty $Shape01 "shear" 1.0

 $Shape01.Cloth.setObjectProperty $Shape01 "density" 0.001

 $Shape01.Cloth.setObjectProperty $Shape01 "thickness" 0.0

 $Shape01.Cloth.setObjectProperty $Shape01 "repulsion" 1.0

 $Shape01.Cloth.setObjectProperty $Shape01 "damping" 0.01

 $Shape01.Cloth.setObjectProperty $Shape01 "airres"  0.01

 $Shape01.Cloth.setObjectProperty $Shape01 "dynFric" 0.1

 $Shape01.Cloth.setObjectProperty $Shape01 "staticFric" 0.3

 $Shape01.Cloth.setObjectProperty $Shape01 "selfFric" 0.2

 $Shape01.Cloth.setObjectProperty $Shape01 "seamForce" 5000.0

 $Shape01.Cloth.setObjectProperty $Shape01 "vScale" 1.0

 $Shape01.Cloth.setObjectProperty $Shape01 "offset" 1.0

 

--$Shape01.Cloth.setObjectProperty $Shape01 "useEdgeSprings" 5

 --$Shape01.Cloth.setObjectProperty $Shape01 "useSolidFriction" 5

--добавляйте Jester к моделированию

addModifier $Jester (myCloth) --Применяем модефекатор Cloth()

$Jester.Cloth.setObjectType $Jester 1 true

 

$Jester.Cloth.setObjectProperty $Jester "offset" 0.25

$Jester.modifiers[#Cloth].useGravity = off

$Jester.Cloth.simulateLocal 1 50 true

$Jester.Cloth.stopLocalSimulation()

--On the Simulation Parameters rollout, turn off Use Sewing Springs.

$Jester.modifiers[#Cloth].useSewingSprings = off

--Turn Gravity back on,

$Jester.modifiers[#Cloth].useGravity = on

--and then back on the Object rollout, click Simulate Local again.

--useGravity (Use_Gravity) : boolean

--$Shape01.Cloth.useGravity  =off

--$Jester.Cloth.useGravity  = True

--$Jester.Cloth.simulateLocal 1 50 true

--Здесь надо поправить параметры 50

$Jester.Cloth.simulateLocal 1 50 true

$Jester.Cloth.stopLocalSimulation()

Назад

 

Hosted by uCoz