Математика

Физика

Химия

Биология

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

 

 

Тип ткани

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

bCurve

stretch

shear

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

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

repulsion

damping

airres

dynFric

staticFric

selfFric

seamForce

vScale

offset

Burlap

150.0

0.3

250.0

500.0

0.01

0.5

2.0

0.2

0.01

0.4

0.7

0.8

5000.0

1.0

0.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" 150.0

 $Shape01.Cloth.setObjectProperty $Shape01 "bCurve" 0.3

 $Shape01.Cloth.setObjectProperty $Shape01 "stretch" 250.0

 $Shape01.Cloth.setObjectProperty $Shape01 "shear" 500.0

 $Shape01.Cloth.setObjectProperty $Shape01 "density" 0.01

 $Shape01.Cloth.setObjectProperty $Shape01 "thickness" 0.5

 $Shape01.Cloth.setObjectProperty $Shape01 "repulsion" 2.0

 $Shape01.Cloth.setObjectProperty $Shape01 "damping" 0.2

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

 $Shape01.Cloth.setObjectProperty $Shape01 "dynFric" 0.4

 $Shape01.Cloth.setObjectProperty $Shape01 "staticFric" 0.7

 $Shape01.Cloth.setObjectProperty $Shape01 "selfFric" 0.8

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

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

 $Shape01.Cloth.setObjectProperty $Shape01 "offset" 0.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