MCPcopy Create free account
hub / github.com/ImageEngine/cortex / getPresets

Function getPresets

src/IECorePython/ParameterBinding.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73dict getPresets( Parameter &that )
74{
75 dict result;
76 const Parameter::PresetsContainer &p = that.getPresets();
77 for( Parameter::PresetsContainer::const_iterator it=p.begin(); it!=p.end(); it++ )
78 {
79 result[it->first] = it->second->copy();
80 }
81 return result;
82}
83
84void setPresets( Parameter &p, const object &presets )
85{

Callers 4

valueValidMethod · 0.85
setValueMethod · 0.85
getCurrentPresetNameMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected