Notifications
Clear all

[Closed] file's #custom properties

I need to store data in .max file’s #custom properties and later read it, but i can’t find a way to do it for Maxscript without the .max opened in 3dsmax. Anyone knows???

I’ve tried it by .net but i couldn’t find a way…

4 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

you can’t do it without opening using maxscript.
if you use max 2010 you can do it using max file metadata (see MXS help -> MAX File Asset Metadata Stream Access)

You have to save with uncompressed off, else max compresses the info and can’t read it…

Also see recent thread on those fields being erased by render preset loads as well, it’s not a very safe place to store data.
http://forums.cgsociety.org/showthread.php?f=98&t=839963

thanks to both of you for your fast anwsers, i’ll read the thread and i’ll read the metadata help.

When I did some research into getting the 3ds max file thumbnail with dotnet, I’m pretty sure you could get and set these properties with dotnet and com interop. You will have to use dsofile.dll from microsoft and code a managed dotnet class to expose these properties. I think, like microsoft office it uses structured storage to store this info. Check my blog for the information about this.