Gets a pointer to a task's current value.
- Parameters
-
- Returns
- Pointer to the float value, or nullptr if not found
Convenience wrapper for Engine::get_line_value() on the default engine.
Definition at line 89 of file Chronie.cpp.
90{
92 auto cur_val = task->get_state<float>("current_value");
93 if (cur_val) {
94 return cur_val;
95 }
96
97 MF_ERROR(Journal::Component::API, Journal::Context::CoroutineScheduling,
"line value not returned from task. Verify that tasks has not returned");
98 return nullptr;
99 }
100 MF_ERROR(Journal::Component::API, Journal::Context::CoroutineScheduling,
"Task: {} not found. Verify task validity or if its been scheduled, or its set to retain after completion", name);
101 return nullptr;
102}
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
References MayaFlux::Journal::API, MayaFlux::Journal::CoroutineScheduling, get_scheduler(), and MF_ERROR.