QUOTE(glassfairy @ 08/03/09, 09:59 AM) [snapback]312674[/snapback]
will this script work even when for transition of a part of body to another shape...
No, its also not a script, really. Its a journal of my session. So its basically just a recoding of what i did to achive this particular scene (its bascially copypasted form the script editor, names have just been variabelized). Each mesh in existence is separate and needs its own blend design.
PS: if your interested more in what i actually did in sequence then its possible to expand.
CODE
proc psrf(){
pause -sec 0;
refresh -cv;
}
{
$orig=polyCone -r 1 -h 2 -sx 20 -sy 17
-sz 12 -ax 0 1 0 -rcp 0
-cuv 3 -ch 1
;
move -r -os -wd 0 (2.0/3.0) 0;
makeIdentity -apply true -t 1 -r 1 -s 1 -n 0;
psrf;
$dup=duplicate
;
for($i=0;$i<10;$i++){
move -r (0.3) 0 0;
psrf;
}
for ($item in ls -fl ($orig[0]+".vtx[0:999]")
){
vector $vec;
$vec= pointPosition $item
;
$vec=unit($vec);
move -ws ($vec.x) ($vec.y) ($vec.z) $item;
psrf;
}
$blend=blendShape $orig[0] $dup[0]
;
delete $orig[0];
setKeyframe -t 0 -v 0 ($blend[0]+"."+$orig[0]);
setKeyframe -t 100 -v 1 ($blend[0]+"."+$orig[0]);
for($i=0;$i<10;$i++){
move -r (-0.3) 0 0;
psrf;
}
}