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

Method onKnobAnimationLevelChanged

Engine/OfxParamInstance.cpp:358–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void
359OfxParamToKnob::onKnobAnimationLevelChanged(ViewSpec /*view*/,
360 int /*dimension*/)
361{
362 OFX::Host::Param::Instance* param = getOfxParam();
363
364 assert(param);
365
366 AnimationLevelEnum l = getKnob()->getAnimationLevel(0);
367
368 ///This assert might crash Natron when reading a project made with a version
369 ///of Natron prior to 0.96 when file params still had keyframes.
370 //assert(l == eAnimationLevelNone || getCanAnimate());
371 param->getProperties().setIntProperty(kOfxParamPropIsAnimating, l != eAnimationLevelNone);
372 param->getProperties().setIntProperty(kOfxParamPropIsAutoKeying, l == eAnimationLevelInterpolatedValue);
373}
374
375void
376OfxParamToKnob::onChoiceMenuReset()

Callers

nothing calls this directly

Calls 2

getAnimationLevelMethod · 0.80
getKnobFunction · 0.70

Tested by

no test coverage detected