Skip to content

DurationInfo

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  801974559["models.DurationInfo"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 801974559
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

The sampled time span and how it was chosen.

Source code in src/framesheet/models.py
class DurationInfo(BaseModel):
    """The sampled time span and how it was chosen."""

    seconds: float
    method: Literal["override", "detected", "fallback", "media"]
    looping: bool
    """True if at least one animation repeats forever (or motion is JS-driven)."""
    detail: str
    animations: list[AnimationTiming] = Field(default_factory=list)

looping instance-attribute

looping: bool

True if at least one animation repeats forever (or motion is JS-driven).

:fa-brands-github: Show source on GitHub