[Closed] ghost assets driving me nuts
Hi all,
I have this issue.
I have 1 object in the scene. The object has 1 bitmap assigned as material.
In the Asset Tracker everything shows fine: only asset is 1 texture file, which is found.
However.
If I query the assetmetadata of the file via maxscript, I get, apart from the correct texture file, one asset of type #bitmap that don’t exist elsewhere.
This is annoying as I am performing checks to see whether there are any missing textures.
Method to query asset metadata:
metaArray = getMAXFileAssetMetadata (maxfilepath + maxfilename)
if (metaArray != undefined) then
(
print metaArray
)
Result below. The material appears 3 (!) times. The asset marked in bold is not correct, I’m guessing that it was set when creating the model, and a typo was made when assigning the material.
#((AssetMetadata_StructDef assetId:”{D7EA9075-F1A8-4198-8166-92BF88C39748}” filename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\0413.00000-3D-012-05-01.tga” type:#bitmap resolvedFilename:””), (AssetMetadata_StructDef assetId:”{87EC3A10-EBD1-41EB-B61D-384B6F4E1D67}” filename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\I0413.00000-3D-012-05-01.tga” type:#bitmap resolvedFilename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\I0413.00000-3D-012-05-01.tga”))
(AssetMetadata_StructDef assetId:”{D7EA9075-F1A8-4198-8166-92BF88C39748}” filename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\0413.00000-3D-012-05-01.tga” type:#bitmap resolvedFilename:””)
(AssetMetadata_StructDef assetId:”{87EC3A10-EBD1-41EB-B61D-384B6F4E1D67}” filename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\I0413.00000-3D-012-05-01.tga” type:#bitmap resolvedFilename:”\alecto\SIMULATIONS\Development\Models\INSTALLATION\I0413\I0413.00000\I0413.00000-3D-012-05-01\Materials\I0413.00000-3D-012-05-01.tga”)
OK
I’ve tried saving selected to a new, clean file but still.
Also tried cleaning the material editor slots to standard materials.
I cannot find that missing asset… Any suggestions?
thanx
try two things to do:
#1 delete all objects and do gc(). and check missing textures. if any texture is still missed it means that it’s in materials, global tracks or scene custom attributes
#2 merge all objects from your file to new empty and clean scene. if a missing texture exists it means it’s in materials, modifiers, or cust attributes of these objects
Thanks a lot for the reactions and apologies for the late reaction!
My problem was solved by reseting the material editor. I use this little script as a callback script whenever I open the file:
fn resetMaterialEditor =
(
for m in 1 to 24 do
(
meditmaterials[m] = Standard name:(“Standard – “+(substring ((100+m) as string) 2 2))
)
)
Really a curious way to do it!
I used to do it through a while loop, pre-adding “0”. @PolyTools3D then shew me ‘formattedPrint’ command.