MCPcopy Create free account
hub / github.com/Tencent/libpag / GetProjectPath

Function GetProjectPath

exporter/src/utils/AEHelper.cpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84QString GetProjectPath() {
85 AEGP_ProjectH projectHandle = nullptr;
86 Suites->ProjSuite6()->AEGP_GetProjectByIndex(0, &projectHandle);
87 AEGP_MemHandle pathMemory;
88 Suites->ProjSuite6()->AEGP_GetProjectPath(projectHandle, &pathMemory);
89 std::string filePath = AeMemoryHandleToString(pathMemory);
90 Suites->MemorySuite1()->AEGP_FreeMemHandle(pathMemory);
91 if (!filePath.empty()) {
92 std::replace(filePath.begin(), filePath.end(), '\\', '/');
93 }
94 QString projectPath =
95 QDir::cleanPath(QDir::fromNativeSeparators(QString::fromStdString(filePath)));
96 QFileInfo fileInfo(projectPath);
97 return fileInfo.absolutePath();
98}
99
100AEGP_ItemH GetActiveCompositionItem() {
101 AEGP_ItemH activeItemHandle = nullptr;

Callers 1

getOutputPathMethod · 0.85

Calls 2

AeMemoryHandleToStringFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected