-
-
Notifications
You must be signed in to change notification settings - Fork 352
Description
Is your feature request related to a problem? Please describe.
The primary AnimationManager class supports a method GetAnimationName -> std::string which returns the name of the currently playing animation. This is used by the f3d GUI, but is not available by using libf3d.
Describe the solution you'd like
Add a method of libf3d users accessing this data.
Options include :
- export a
getAnimationName -> std::stringfunction in the Interaction class similar to other animation controls - export the name in the
f3d::optionsdata type similar to the animation indices option
note : this would presumable be an immutable option which would be a bit of a bad design pattern.
Describe alternatives you've considered
There is a possible alternative of manually loading the parser plugins, parsing the current file again and then getting the animation name from the plugins function e.g.
Additional context
The animation handling in libf3d is possible due for an overhaul anyway. The current method of pausing/playing/setting/scrubbing animations feels a bit inconsistent jumping between the interactor and the options data and maybe a seperate f3d::engine.animator may be an options
Contribution
I would be happy to contribute this code :)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status