Математика

Физика

Химия

Биология

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

 

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

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

--Применить модифекатор Cloth к объекту Shirt

--Click the Object Properties button.

--In the left column of the Object Properties dialog,

--click the Shirt entry and then choose the Cloth radio

--button on the right.

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

max modify mode -- open mod panel

myCloth=Cloth()

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

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

$Shape02.Cloth.setObjectType $Shape02 2 true

 $Shape02.Cloth.setObjectProperty $Shape02 "bend" 25.0

 $Shape02.Cloth.setObjectProperty $Shape02 "bCurve" 0.0

 $Shape02.Cloth.setObjectProperty $Shape02 "stretch" 75.0

 $Shape02.Cloth.setObjectProperty $Shape02 "shear" 225.0

 $Shape02.Cloth.setObjectProperty $Shape02 "density" 0.01

 $Shape02.Cloth.setObjectProperty $Shape02 "thickness" 0.2

 $Shape02.Cloth.setObjectProperty $Shape02 "repulsion" 2.0

 $Shape02.Cloth.setObjectProperty $Shape02 "damping" 0.1

 $Shape02.Cloth.setObjectProperty $Shape02 "airres" 0.02

 $Shape02.Cloth.setObjectProperty $Shape02 "dynFric" 0.1

 $Shape02.Cloth.setObjectProperty $Shape02 "staticFric" 0.5

 $Shape02.Cloth.setObjectProperty $Shape02 "selfFric" 0.5

 $Shape02.Cloth.setObjectProperty $Shape02 "seamForce" 5000.0

 $Shape02.Cloth.setObjectProperty $Shape02 "vScale" 1.0

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

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

 $Shape02.Cloth.setObjectProperty $Shape02 "offset" 1.0

 

 

 

 

 

--Применить модифекатор Cloth к объекту Shirt

--Click the Object Properties button.

--In the left column of the Object Properties dialog,

--click the Shirt entry and then choose the Cloth radio

--button on the right.

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

max modify mode -- open mod panel

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

--$Shape02.Cloth.useGravity  =off

--$Jester.Cloth.useGravity  = True

--$Jester.Cloth.simulateLocal 1 50 true

----**********************************************

--Здесь надо поправить атребуты

$Jester.Cloth.simulateLocal 1 50 true

----**********************************************

$Jester.Cloth.stopLocalSimulation()

Назад

 

Hosted by uCoz