from pymxs import runtime as rt # pylint: disable=import-error
NASSETS = rt.AssetManager.GetNumAssets()
print(f"There are {NASSETS} assets created")
for i in range(NASSETS):
a = rt.AssetManager.GetAssetByIndex(i + 1)
#print(f"Asset id = {a.GetAssetId()}, type = {a.getType()}, file = {a.getfilename()}")
if str(a.getType())=="bitmap":
print(f"贴图:{a.getfilename()}")
if str(a.getType())=="xref":
print(f"max文件名:{a.getfilename()}")
3dsmax python获取场景里的贴图名及文件名路径
最新推荐文章于 2024-10-15 20:09:00 发布