Lottie tutorial?
-
@nesta99 I think you should press "Compress" and copy the data.
then in Hise you make a reference to it like this:const var animData = ("here goes your compressed data");
in the panel:
panel.setAnimation(animData);
-
@ulrik thanks a lot. Will try it now!
-
-
@UrsBollhalder Huh, what you want?
-
@d-healey I should have quoted your reply. Your solution on how to include the lottie library in packages just saved my life!
-
@UrsBollhalder Aha now I get it. @Christoph-Hart mentioned at some point rlottie might be included directly in HISE (now that that the rlottie license is compatible) so we don't have to deliver it to the user with each install.
-
@d-healey said in Lottie tutorial?:
I found a solution for the installer. I just added the library as a separate package and gave it "librlottie" as the identifier. I also set the package to be required. I'll add this to my exporter tool when I do the next round of updates.
Where do you set the destination for the librlottie? Because on MacOSX it lives in a hidden folder...
-
@UrsBollhalder I can't remember, I haven't used it since I posted that comment. I was doing it for someone else's project.
-
@d-healey Ok. But it worked in the end? I also put it in the AdditionalSOurceCode folder... I'll find a way.
-
@UrsBollhalder Yeah it definitely worked.
-
@d-healey said in Lottie tutorial?:
@UrsBollhalder Yeah it definitely worked.
The library is to be found in (and should be installed into) MacintoshHD/usr/local/lib/librlottie.dylib on MacOS... You just have to press ⌘. to show all hidden files and folders in Packages.
In case anybody else runs into the same problem...
Edit: This is the macOS path obviously... for Windows and Linux it should be the following:
Windows:
%APPDATA%/Company/Product/rlottie_x86.dll (for 32bit builds)
%APPDATA%/Company/Product/rlottie_x64.dll (for 64bit builds)GNU/Linux:
/usr/lib/