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

Method getFileName

Engine/KnobFile.cpp:99–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99std::string
100KnobFile::getFileName(int time,
101 ViewSpec view)
102{
103 if (!_isInputImage) {
104 return getValue(0, view);
105 } else {
106 ///try to interpret the pattern and generate a filename if indexes are found
107 std::vector<std::string> views;
108 if ( getHolder() && getHolder()->getApp() ) {
109 views = getHolder()->getApp()->getProject()->getProjectViewNames();
110 }
111 if ( !view.isViewIdx() ) {
112 view = ViewIdx(0);
113 }
114
115 return SequenceParsing::generateFileNameFromPattern(getValue( 0, ViewIdx(0) ), views, time, view);
116 }
117}
118
119/***********************************KnobOutputFile*****************************************/
120

Callers 4

checkDecoderCreatedMethod · 0.80
getMethod · 0.80
updateGUIMethod · 0.80

Calls 3

getProjectMethod · 0.80
ViewIdxClass · 0.70
getAppMethod · 0.45

Tested by

no test coverage detected