Notifications
Clear all

[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?

4 Replies

because archive was made before assetManager was made.
Bo not use it, u need your own solution.

1 Reply
(@viriato)
Joined: 11 months ago

Posts: 0

But others like V-Ray proxies (also an asset) are collected :shrug:

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.