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

Method getFileName

Engine/KnobFile.cpp:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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