MCPcopy Create free account
hub / github.com/MrKepzie/Natron / editBegin

Method editBegin

Engine/OfxImageEffectInstance.cpp:967–978  ·  view source on GitHub ↗

@brief Used to group any parameter changes for undo/redo purposes \arg paramSet the parameter set in which this is happening \arg name label to attach to any undo/redo string UTF8 If a plugin calls paramSetValue/paramSetValueAtTime on one or more parameters, either from custom GUI interaction or some analysis of imagery etc.. this is used to indicate the start of a set of a p

Source from the content-addressed store, hash-verified

965
966 */
967OfxStatus
968OfxImageEffectInstance::editBegin(const std::string & /*name*/)
969{
970 ///Don't push undo/redo actions while creating a group
971 boost::shared_ptr<OfxEffectInstance> effect = getOfxEffectInstance();
972
973 if ( !effect->getApp()->isCreatingPythonGroup() ) {
974 effect->setMultipleParamsEditLevel(KnobHolder::eMultipleParamsEditOnCreateNewCommand);
975 }
976
977 return kOfxStatOK;
978}
979
980/// Triggered when the plug-in calls OfxParameterSuiteV1::paramEditEnd
981///

Callers

nothing calls this directly

Calls 4

getOfxEffectInstanceFunction · 0.85
isCreatingPythonGroupMethod · 0.80
getAppMethod · 0.45

Tested by

no test coverage detected