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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2004   #1
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
 
Old 02 February 2004   #2
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
 
Old 02 February 2004   #3
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.
 
Old 02 February 2004   #4
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
 
Old 02 February 2004   #5
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
 
Old 01 January 2006   #6
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 09:45 AM.


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