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

Method editBegin

Engine/OfxImageEffectInstance.cpp:987–998  ·  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

985
986 */
987OfxStatus
988OfxImageEffectInstance::editBegin(const std::string & /*name*/)
989{
990 ///Don't push undo/redo actions while creating a group
991 OfxEffectInstancePtr effect = getOfxEffectInstance();
992
993 if ( !effect->getApp()->isCreatingPythonGroup() ) {
994 effect->setMultipleParamsEditLevel(KnobHolder::eMultipleParamsEditOnCreateNewCommand);
995 }
996
997 return kOfxStatOK;
998}
999
1000/// Triggered when the plug-in calls OfxParameterSuiteV1::paramEditEnd
1001///

Callers

nothing calls this directly

Calls 4

getOfxEffectInstanceFunction · 0.85
isCreatingPythonGroupMethod · 0.80
getAppMethod · 0.45

Tested by

no test coverage detected