I am trying to find a way to do such a code in Houdini:
importalembic.Abcasabctest=abc.IArchive("test.abc")archive_infos=abc.GetArchiveInfo(test)if"appName"inarchive_infos:app_name=archive_infos["appName"]print("\"{0}\" was created by \"{1}\"".format(filename,app_name))
And then, depending if the alembic file came from Houdini or Maya, I will do some treatment or some other.
I tried with : alembicGetSceneHierarchy but I haven't found a good way!
The “abcecho” command line tool will report this information. There is currently no convenient way to access the information through the Alembic HOM extensions.
derrick The “abcecho” command line tool will report this information. There is currently no convenient way to access the information through the Alembic HOM extensions.
Thanks a lot! It makes the trick using a subprocess.Popen, I can read anything inside the file so it works for me!