hey does anyone have experience using enhanced animations plugin?
Im having trouble figuring out what im doing wrong from trying to create an animation file from an array of predefined movements/rotations/scales...
//code
savemodelanimation:
if objselect=0 then message "Select an object to save Animation from first!"
if object exist(objselect)=1
file$=savedialog("Save Enhanced Animation... ","Enhanced Animation... [*.oac]|*.oac",mydocdir$())
if file exist(file$)=1 then delete file file$
if file$="" then return
EnAn_ObjMakeNewAnimation Objselect, file$
global mynew
mynew = EnAn_AnimLoad( file$ )
for t=1 to 16
gg=(t*15)-15
perform checklist for object limbs objselect
for y=1 to checklist quantity() step 1
make1 = EnAn_AnimInsertKey( mynew,y,t)
`message str$(make1)
if gg=0 then EnAn_AnimModifyKeyRot mynew, y, t, scene(objselect,y,7), scene(objselect,y,8), scene(objselect,y,9)
if gg<>0 then EnAn_AnimModifyKeyRot mynew, y, t, scene(objselect,y,7+gg), scene(objselect,y,8+gg), scene(objselect,y,9+gg)
if gg=0 then EnAn_AnimModifyKeypos mynew, y, t, scene(objselect,y,4), scene(objselect,y,5), scene(objselect,y,6)
if gg<>0 then EnAn_AnimModifyKeypos mynew, y, t, scene(objselect,y,4+gg), scene(objselect,y,5+gg), scene(objselect,y,6+gg)
if gg=0 then EnAn_AnimModifyKeyscale mynew, y, t, scene(objselect,y,1), scene(objselect,y,2), scene(objselect,y,3)
if gg<>0 then EnAn_AnimModifyKeyscale mynew, y, t, scene(objselect,y,1+gg), scene(objselect,y,2+gg), scene(objselect,y,3+gg)
next y
next t
EnAn_AnimSetPlaySpeed mynew, 50
EnAn_AnimSave mynew,file$
EnAn_AnimDelete mynew
message "Saved!"
endif
return
//end code
im wondering just in general if im missing some commands that are essential to get this to work.
also i know darkbasic uses 0 as a limb.... does enhanced animations do the same?
maby thats the problem?