MCPcopy Create free account
hub / github.com/christophhart/HISE / getIdList

Method getIdList

hi_scripting/scripting/api/ScriptingApi.cpp:5864–5888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5862}
5863
5864var ScriptingApi::Synth::getIdList(const String &type)
5865{
5866 if (getScriptProcessor()->objectsCanBeCreated())
5867 {
5868 Processor::Iterator<Processor> it(owner);
5869
5870 Array<var> idList;
5871
5872 while (Processor* p = it.getNextProcessor())
5873 {
5874 // don't include selfie-boy
5875 if (dynamic_cast<Processor*>(getScriptProcessor()) == p)
5876 continue;
5877
5878 if (p->getName() == type)
5879 idList.add(p->getId());
5880 }
5881
5882 return var(idList);
5883 }
5884 else
5885 {
5886 return var();
5887 }
5888}
5889
5890ScriptingObjects::ScriptingEffect *ScriptingApi::Synth::getEffect(const String &name)
5891{

Callers 7

checkSubClassMembersMethod · 0.45
toStringInternalMethod · 0.45
getModuleListMethod · 0.45
getOptionsForMethod · 0.45
ScriptMultipageDialogMethod · 0.45

Calls 6

varFunction · 0.85
objectsCanBeCreatedMethod · 0.80
getNextProcessorMethod · 0.80
getNameMethod · 0.65
addMethod · 0.45
getIdMethod · 0.45

Tested by 1