MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / writeTextFile

Function writeTextFile

source/MaterialXView/Viewer.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89const std::string UDIM_SEPARATORS = "._";
90
91void writeTextFile(const std::string& text, const std::string& filePath)
92{
93 std::ofstream file;
94 file.open(filePath);
95 file << text;
96 file.close();
97}
98
99void applyModifiers(mx::DocumentPtr doc, const DocumentModifiers& modifiers)
100{

Callers 2

saveShaderSourceMethod · 0.85
saveDotFilesMethod · 0.85

Calls 2

openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected