Математика |
--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" 125.0 $Shape01.Cloth.setObjectProperty $Shape01 "bCurve" 0.0 $Shape01.Cloth.setObjectProperty $Shape01 "stretch" 250.0 $Shape01.Cloth.setObjectProperty $Shape01 "shear" 500.0 $Shape01.Cloth.setObjectProperty $Shape01 "density" 0.05 $Shape01.Cloth.setObjectProperty $Shape01 "thickness" 0.6 $Shape01.Cloth.setObjectProperty $Shape01 "repulsion" 1.0 $Shape01.Cloth.setObjectProperty $Shape01 "damping" 0.1 $Shape01.Cloth.setObjectProperty $Shape01 "airres" 0.01 $Shape01.Cloth.setObjectProperty $Shape01 "dynFric" 0.3 $Shape01.Cloth.setObjectProperty $Shape01 "staticFric" 0.6 $Shape01.Cloth.setObjectProperty $Shape01 "selfFric" 0.75 $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() |
||||||||||||||||||||||||||||||||