You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use Lottiegen so I can play lottie-files in c++/winrt WinUI3 project. For this test I have been using the LottieLogo1.json file.
So LottieGen does create files that compile (mostly, a couple of places the generated code had treated a function call like it was a property). And once compiled the page xaml recognizes the generated type as a valid source for an AnimatedVisualPlayer. But when running the application no animation is played.
For C# I can generate and play (a few tweaks to the generated code again due to some casts being done that Win2d did not like).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been trying to use Lottiegen so I can play lottie-files in c++/winrt WinUI3 project. For this test I have been using the LottieLogo1.json file.
So LottieGen does create files that compile (mostly, a couple of places the generated code had treated a function call like it was a property). And once compiled the page xaml recognizes the generated type as a valid source for an AnimatedVisualPlayer. But when running the application no animation is played.
For C# I can generate and play (a few tweaks to the generated code again due to some casts being done that Win2d did not like).
Parameters used:
C++: LottieGen.exe -InputFile .\LottieLogo.json -L cppwinrt -WinUIVersion 3.0
C#: LottieGen.exe -InputFile .\LottieLogo.json -L cs -WinUIVersion 3.0
Has anyone had any luck getting C++/winrt files to play?
Beta Was this translation helpful? Give feedback.
All reactions