Message 1 of 2
Porting MaxPlus.AssetManager to 3ds Max 2021

Not applicable
07-07-2020
07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I have to porting python script for getting assets path on 3ds Max 2021(witch not include MaxPlus).
I tried pymxs.runtime.AssetManager, but return a little different assets list.
Code from Listener in 3dsMax 2020.
>>> textures_MaxPlus = set([assets.ResolvedFileName for assets in MaxPlus.AssetManager.GetAssets()])
>>> len(textures)
28
>>> am = pymxs.runtime.AssetManager
>>> textures_pymxs = set([am.GetAssetByIndex(i).getfilename() for i in range(1,am.GetNumAssets())])
>>> len(names)
57
>>> textures_MaxPlus.difference(textures_pymxs)
set([u'Z:\\test\\samples\\test_scene\\T-OTGums.TGA'])
How porting "[assets.ResolvedFileName for assets in MaxPlus.AssetManager.GetAssets()]" on 3dsMax 2021?
Thanks
Przemyslaw