Notifications
Clear all

[Closed] 12-16 bits of storage

Hello;

I wish to attach approximately 12-16 bits of info to each object in a max scene, what is the best way to do this. The info does not need to be visible to the user, strickly accessed via MaxScript…

Thanks

Keith Morrison

4 Replies

setAppData might be an option for you, the only drawback being that it only takes strings… So you’d need to convert integers to strings (and visa versa with getAppData).

Another option might be custom attributes.

good luck

  • Martijn

I looked at Custom Attributes, but if you’ve 10000-15000 objects in your scene… ha ha… they seems to start killing a max file around the 2000 objects with CA’s point…

I’ll try the AppData… thanks…

ummm… not exactly a safe place to keep data huh? Seems it open to any plugin that might write data there??

Keith Morrison

Originally posted by Kramsurfer
ummm… not exactly a safe place to keep data huh? Seems it open to any plugin that might write data there??

setAppData uses an integer, which can range from -2,147,483,648 to 2,147,483,647… Just pick a number within that range and I think you’ll be safe

  • Martijn

and it’s fast too…

I just appdata’d 22,000 objects with 50 data sets in about 1.5 seconds… yes this is the answer!! thanks!!

Keith