Математика

Физика

Химия

Биология

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

 

 

Тип ткани

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

bCurve

stretch

shear

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

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

repulsion

damping

airres

dynFric

staticFric

selfFric

seamForce

vScale

offset

Spandex

20.0

0.01

35.0

83.9

0.007

0.0

1.0

0.1

0.005

0.3

0.6

0.7

100.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" 20.0

 $Shape01.Cloth.setObjectProperty $Shape01 "bCurve" 0.01

 $Shape01.Cloth.setObjectProperty $Shape01 "stretch"  35.0

 $Shape01.Cloth.setObjectProperty $Shape01 "shear" 83.9

 $Shape01.Cloth.setObjectProperty $Shape01 "density" 0.007

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

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

 $Shape01.Cloth.setObjectProperty $Shape01 "damping" 0.1

 $Shape01.Cloth.setObjectProperty $Shape01 "airres"  0.005

 $Shape01.Cloth.setObjectProperty $Shape01 "dynFric" 0.3

 $Shape01.Cloth.setObjectProperty $Shape01 "staticFric" 0.6

 $Shape01.Cloth.setObjectProperty $Shape01 "selfFric" 0.7

 $Shape01.Cloth.setObjectProperty $Shape01 "seamForce" 100.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