Okay so this may actually be a bug in Studio v2.02.20 then cause when i call this it returns parameters and folders as well:
var presets = studio.project.model.EffectPreset.findInstances();
presets.forEach(function (preset){
if(preset.name == "Reverb" && preset.effect == "(ManagedObject:EffectChain)"){
preset.dump();
console.log("---------");
}
})
These are the only presets and effects chains/folders called “Reverb” in my project, as you can see in my presets window:
As you can see, There is 1 parameter, 1 Effect Chain, and 1 folder that the effect chain is a child of that are all called Reverb. I would expect with what you suggested above that this code should only return the Effect Chain called Reverb.
However this is the log that gets returned:
(ManagedObject:EffectPreset):
id: "{f6f31d09-2d69-41d1-a6dd-15c417e0498a}",
entity: "EffectPreset",
isValid: false,
relationships: (ManagedRelationshipMap:EffectPreset),
properties: (ManagedPropertyMap:EffectPreset),
isOfType: <function>,
isOfExactType: <function>,
note: undefined,
color: "Default",
name: "Reverb",
folder: null,
effect: (ManagedObject:EffectChain),
proxies: [],
dump: <function>,
document: <function>,
---------
(ManagedObject:EffectPreset):
id: "{df6a7ded-57f7-4a4b-97e5-c22e60c64b03}",
entity: "EffectPreset",
isValid: true,
relationships: (ManagedRelationshipMap:EffectPreset),
properties: (ManagedPropertyMap:EffectPreset),
isOfType: <function>,
isOfExactType: <function>,
note: undefined,
color: "Default",
name: "Reverb",
folder: (ManagedObject:EffectPresetFolder),
effect: (ManagedObject:EffectChain),
proxies: [(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect),(ManagedObject:ProxyEffect)],
dump: <function>,
document: <function>,
---------
(ManagedObject:EffectPreset):
id: "{6d5e601a-6549-4b2e-8ad7-6d4a238f307b}",
entity: "EffectPreset",
isValid: false,
relationships: (ManagedRelationshipMap:EffectPreset),
properties: (ManagedPropertyMap:EffectPreset),
isOfType: <function>,
isOfExactType: <function>,
note: undefined,
color: "Default",
name: "Reverb",
folder: null,
effect: (ManagedObject:EffectChain),
proxies: [],
dump: <function>,
document: <function>,
---------