Математика

Физика

Химия

Биология

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

Скрипт для обработки

Загрузить исходник здесь WumonPlate2.rar

max modify mode -- open mod panel

select $Shape01

myCloth=Cloth()

 

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

 

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

 

$Shape01.Cloth.setObjectType $Shape01 2 true

 

 $Shape01.Cloth.setObjectProperty $Shape01 "bend" 25.0

 

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

 

 $Shape01.Cloth.setObjectProperty $Shape01 "stretch" 75.0

 

 $Shape01.Cloth.setObjectProperty $Shape01 "shear" 225.0

 

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

 

 $Shape01.Cloth.setObjectProperty $Shape01 "thickness" 0.2

 

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

 

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

 

 $Shape01.Cloth.setObjectProperty $Shape01 "airres" 0.02

 

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

 

 $Shape01.Cloth.setObjectProperty $Shape01 "staticFric" 0.5

 

 $Shape01.Cloth.setObjectProperty $Shape01 "selfFric" 0.5

 

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

 

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

 

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

 

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

 

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

 

--добавляйте 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 0.02 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 0.5 true

 

$Jester.Cloth.stopLocalSimulation()

 

Назад

 

Hosted by uCoz