[Closed] Why "archive" is not collecting my own asset?
I’ve made my own type of object (SDK/C++) that contains an asset, if I execute this script:
for i = 1 to AssetManager.GetNumAssets() do
(
local AUIO = AssetManager.GetAssetByIndex i--get the AssetUser IObject
local AID = AUIO.GetAssetId()--get the Asset's ID
local AType = AUIO.getType()--get the Asset's Type
local AFile = AUIO.getfilename()--get the Asset's File Name
format"ID:% Type:% File:%
"AID AType AFile--format the info
)
it prints this one:
Type:#ExternalLink File:C:\Users\Frman\Documents\TestC.xml
Obviously file exists etc, also there are other assets on the same path like
Type:#bitmap File:C:\Users\Frman\Documents\exampletex.jpg
That have been collected without problems! So I’m driving totally nuts
Any tip?
because archive was made before assetManager was made.
Bo not use it, u need your own solution.
using atsops still way better for collecting thing, also you can use getclassinstances…but if youre using max under 2011 version I believe using atsops still way better to do collecting asset.
As of today, Asset Metadata Stream is the best way to pull assets in the scene,
http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=files/GUID-2AF2AFE0-1B22-4DA2-B0F9-CA3ADABCB6C6.htm,topicNumber=d30e705615