syFormulaWindowAlpha


#1

//source syFormulaWindowAlpha;syFormulaWindowAlpha
//
//to test this on the syflex example simple_skirt.ma
//
/*
STEP 1:
open the simple_skirt file
STEP 2: enter this into script editor

select -r syCloth1ShapeTrf ;
duplicate -rr -n skirt -rc;
move -r 3 0 0;
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;

STEP 2: enter this into script editor
// make the cloth
select skirt;
source syFormulaWindowAlpha;syFormulaWindowAlpha

STEP 3:
select the preset “simple_skirt”
click create…

STEP 4: enter this into script editor
//create the nail
select -r skirt.vtx[1472:1599] ;
syCreateNail;
//copy the nail animation
select -r syNail1Trs ;
copyKey -t “:” -f “:” -at “tx” -at “ty” -at “tz” -at “rx” -at “ry” -at “rz” -at “sx” -at “sy” -at “sz” syNail1Trs;
//paste the nail animation
select -r syNail2Trs ;
pasteKey -connect true -time 1 -at “tx” -at “ty” -at “tz” -at “rx” -at “ry” -at “rz” -at “sx” -at “sy” -at “sz” syNail2Trs;
//move the nail pivot
select -r syNail2Trs ;
move -r 3 0 0 syNail2Trs.scalePivot syNail2Trs.rotatePivot ;

STEP 5:
//set playback options to continuous
//then play!

//adjust values inside syFormulaWindowAlpha
click apply…

fiddle with units info, length and mass to fine tune,

NOTES: a few things to keep in mind,

keep an eye on global damp mult, make sure global damp values don’t excede or get too close to 1,
good numbers for global damp attr usally are .09 to .001 , etc…
so keep the global damp mult low…

collider damp mult should stay close to 1.

For units info, I like length at “inch” - 0.0254
and mass at 1/4 a pound, i.e. 111

treat lenght and mass as fine tunning numbers, it also acts similar to maya cloth solver scale attr.

rmb in some fields present presets based off of selections Surface area

a good place to start is to use
surface area for inital total mass
surface area *2 for stretch mult
surface area *1.5 for shear mult
surface area *.1 for stretch
and leave self env off

spring damp mult = 1
static damp mult = 1
dynamic damp mult =1
global damp mult = .0001
col damp = 1

then use units, lenght and mass to fine tune…
start with
lenght = cm
mass = pounds

then solve and change units info for different passes…


#2

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.