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

Method getBaseOutputPath

source/MaterialXView/Viewer.cpp:543–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543mx::FilePath Viewer::getBaseOutputPath()
544{
545 mx::FilePath baseFilename = _searchPath.find(_materialFilename);
546 baseFilename.removeExtension();
547 mx::FilePath outputPath = mx::getEnviron("MATERIALX_VIEW_OUTPUT_PATH");
548 if (!outputPath.isEmpty())
549 {
550 baseFilename = outputPath / baseFilename.getBaseName();
551 }
552 return baseFilename;
553}
554
555mx::ElementPredicate Viewer::getElementPredicate()
556{

Callers

nothing calls this directly

Calls 3

getEnvironFunction · 0.85
findMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected