Well, i found this scrip over at some closed long time ago thread in Cgtalk.
It works really well for me... i managed to do the animation at a satisfaction level
Thanks guys, for the replys and help!
Code:
set oSelList = GetValue("SelectionList")
set oItem = oSelList(0)
strStringedSel = oItem
set oGeometry = oItem.obj
oNumberOf0DGeometries = oGeometry.Nb0D
SetUserPref "SI3D_CONSTRAINT_COMPENSATION_MODE", 1
for i=0 to (oNumberOf0DGeometries -1)
set PrevNull = GetValue("SelectionList")
CreateClusterCenterWithNull strStringedSel & ".pnt" & "[" & i & "]"
if i>0 then
set CurNull = GetValue("SelectionList")
ApplyCns "Distance",CurNull ,PrevNull , true
end if
next
SetUserPref "SI3D_CONSTRAINT_COMPENSATION_MODE", 0
'_________________________________________________'
''''Change the variable below to change the number of bones'''''
'--------------------------------------------------------------'
NumberOfbones = 5
CreateChainfromCurve oItem, NumberOfBones , True