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

Method getAllKnobsKeyframes

Engine/Node.cpp:9732–9760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9730}
9731
9732void
9733Node::getAllKnobsKeyframes(std::list<SequenceTime>* keyframes)
9734{
9735 assert(keyframes);
9736 const KnobsVec & knobs = getKnobs();
9737
9738 for (U32 i = 0; i < knobs.size(); ++i) {
9739 if ( knobs[i]->getIsSecret() || !knobs[i]->getIsPersistent() ) {
9740 continue;
9741 }
9742 if ( !knobs[i]->canAnimate() ) {
9743 continue;
9744 }
9745 int dim = knobs[i]->getDimension();
9746 KnobFile* isFile = dynamic_cast<KnobFile*>( knobs[i].get() );
9747 if (isFile) {
9748 ///skip file knobs
9749 continue;
9750 }
9751 for (int j = 0; j < dim; ++j) {
9752 if ( knobs[i]->canAnimate() && knobs[i]->isAnimated( j, ViewIdx(0) ) ) {
9753 KeyFrameSet kfs = knobs[i]->getCurve(ViewIdx(0), j)->getKeyFrames_mt_safe();
9754 for (KeyFrameSet::iterator it = kfs.begin(); it != kfs.end(); ++it) {
9755 keyframes->push_back( it->getTime() );
9756 }
9757 }
9758 }
9759 }
9760}
9761
9762ImageBitDepthEnum
9763Node::getClosestSupportedBitDepth(ImageBitDepthEnum depth)

Callers 1

redoMethod · 0.80

Calls 14

getIsSecretMethod · 0.80
getKeyFrames_mt_safeMethod · 0.80
getTimeMethod · 0.80
ViewIdxClass · 0.70
sizeMethod · 0.45
getIsPersistentMethod · 0.45
canAnimateMethod · 0.45
getDimensionMethod · 0.45
getMethod · 0.45
isAnimatedMethod · 0.45
getCurveMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected