Skip to content

Export GetAnimationName function to libf3d #2699

@iommu

Description

@iommu

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 :

  1. export a getAnimationName -> std::string function in the Interaction class similar to other animation controls
  2. export the name in the f3d::options data 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

No one assigned

    Projects

    Status

    Discuss

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions