Bone Convert Method
Coming to the toughest part of the project personally for me,
bone_convert method took the maximum time and effort from my side. The main problems associated with this were that Lottie does not support affine transformations, so the mapping of equations for each parameter had to be done manually by me.
Bone convert of a vertices is complete and ready for export as is evident through this video : https://youtu.be/jKPbjOGxX-o . The
sif file for this is final.sif (18.8 KB) .
However, bone_convert method for the
transformation parameter of a group layer is still not complete yet and I will have to colloborate with @AnishG on this as we have not been able to come up with a solution to the problem of incorrect anchoring. I have shown this in the video : https://youtu.be/zJiJG_GIQN4 . The
sif file for this is lottie-bones-01.sif (194.8 KB) .
I will be working on fixing the
bone_convert for transformation parameter of a group layer after my coding period ends and complete it alongwith other stretch goals if they arise.
Something I have noticed about
Bone is that it is not documented very well, especially the underlying equations that are required to export it, that was a major problem for me.