MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetTempVarValue

Method SetTempVarValue

plugins/scripting/macro-segment-script.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void MacroSegmentScript::SetTempVarValue(const std::string &variableId,
104 const std::string &value,
105 int instanceId)
106{
107 std::lock_guard<std::mutex> lock(instanceMtx);
108 for (auto instance : instances) {
109 if (instance->_instanceId != instanceId) {
110 continue;
111 }
112 instance->SetTempVarValueHelper(variableId, value);
113 }
114}
115
116bool MacroSegmentScript::Save(obs_data_t *obj) const
117{

Callers

nothing calls this directly

Calls 1

SetTempVarValueHelperMethod · 0.45

Tested by

no test coverage detected