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

◆ set()

template<typename Self>
void MayaFlux::Nodes::Network::NetworkOperator::set ( this Self & self,
const typename Self::Controls & incoming )
inline

Apply the members of this operator's Controls struct that hold a value.

An operator opts in with using Controls = ..., a struct of Control members declared with MF_DESCRIBE, and holds the reference declare_controls() returns. Members left empty are untouched, so op->set({ .drag = 0.1 }) changes only drag. A node source maps in BROADCAST and a network source in ONE_TO_ONE. A number may be set from any thread while a block renders. Attaching or removing a node or network source belongs outside process. The string based set_parameter stays for names a user invents.

Definition at line 100 of file NetworkOperator.hpp.

101 {
102 static_cast<NetworkOperator&>(self).m_controls_store.merge(incoming);
103 }

References m_controls_store.