12-16 bits of storage

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2004
12-16 bits of storage


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..


Keith Morrison
  02 February 2004
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
  02 February 2004
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

Last edited by Kramsurfer : 02 February 2004 at 12:33 AM.
  02 February 2004
Quote: 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
  02 February 2004
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!!

  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:05 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.