MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ every()

ChimeraBuilder & MayaFlux::Kriya::ChimeraBuilder::every ( double  seconds,
std::function< void(Chimera &)>  action 
)

Call an action on the running Chimera every this many seconds.

Runs in the pipeline after the layers are fed, on the frame clock, first one interval after start(). The action may call any control, such as cut, set, speed or level. It does not belong to a layer.

Parameters
secondsInterval, at least one frame.
actionCalled with the running Chimera.

Definition at line 315 of file Chimera.cpp.

316{
317 m_actions.push_back({ .seconds = seconds, .run = std::move(action) });
318 return *this;
319}
std::vector< Action > m_actions
Definition Chimera.hpp:322

References m_actions.