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

Method refreshReadNodeInput

Engine/PrecompNode.cpp:652–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void
653PrecompNodePrivate::refreshReadNodeInput()
654{
655 assert(readNode);
656 KnobIPtr fileNameKnob = readNode->getKnobByName(kOfxImageEffectFileParamName);
657 if (!fileNameKnob) {
658 return;
659 }
660 //Remove all images from the cache associated to the reader since we know they are no longer valid.
661 //This is a blocking call so that we are sure there's no old image laying around in the cache after this call
662 readNode->removeAllImagesFromCache(true);
663 readNode->purgeAllInstancesCaches();
664
665 //Force the reader to reload the sequence/video
666 fileNameKnob->evaluateValueChange(0, _publicInterface->getApp()->getTimeLine()->currentFrame(), ViewIdx(0), eValueChangedReasonUserEdited);
667}
668
669void
670PrecompNodePrivate::launchPreRender()

Callers 1

onPreRenderFinishedMethod · 0.80

Calls 7

evaluateValueChangeMethod · 0.80
ViewIdxClass · 0.70
getKnobByNameMethod · 0.45
currentFrameMethod · 0.45
getTimeLineMethod · 0.45
getAppMethod · 0.45

Tested by

no test coverage detected