Hi,
I’m currently working on a C++ Plugin who’s about getting sounds path from “Time Editor” in Maya.
My problem is that I can’t find the corresponding “MFn” to be able to deal with sound clip, like getting the name of the sound, the length, the offset, etc…
What am I doing right now is just a loop on all DependencyNodes present in the scene and print there type :
MItDependencyNodes dagIter(MFn::kDependencyNode);
MStatus status = MStatus::kFailure;
while (!dagIter.isDone()) {
MObject ob(dagIter.item());
if (ob.isNull()) {
std::cout << status.errorString() << std::endl;
} else {
std::cout << dagIter.item().apiTypeStr() << std::endl;
}
dagIter.next();
}
I know that I could set the “MFn::kDependencyNode” to “MFn::kTimeEditorClip” but I can’t find a way to use the kTimeEditorClip returned.
How can I get all those informations using only C++ objects and non MEL command ?
Best regards,
Peaceandlove