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

Method refreshReadNodeInput

Engine/PrecompNode.cpp:651–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

onPreRenderFinishedMethod · 0.80

Calls 8

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

Tested by

no test coverage detected