Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 14th June 2008, 01:39 AM   #1
conzar
Member
Advanced member
 
conzar's Avatar
 
Join Date: May 2006
Posts: 36
Question ac_object_set_userdata

Is there anyway to persist the data that is put in the ac_object_set_userdata function in the ac3d save file?

If not, is there an alternative?

Thanks
conzar is offline   Reply With Quote
Old 14th June 2008, 05:42 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,366
Default Re: ac_object_set_userdata

use:

Prototype void ac_object_set_data(ACObject *ob, char *dat);
Prototype char *ac_object_get_data(ACObject *ob);

this sets the text data which is visible in the Tools->Object-Property-Editor and is saved inside .ac files.
Andy is offline   Reply With Quote
Old 15th June 2008, 06:28 PM   #3
conzar
Member
Advanced member
 
conzar's Avatar
 
Join Date: May 2006
Posts: 36
Default Re: ac_object_set_userdata

Humm ... I don't see the function ac_object_set_data in my ac_plugin.h file. Do I have an older version?

Thanks
conzar is offline   Reply With Quote
Old 17th June 2008, 07:45 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,366
Default Re: ac_object_set_userdata

Possibly - but just insert the above lines into your and you shoudl be fine.

Andy
Andy is offline   Reply With Quote
Old 17th June 2008, 09:47 AM   #5
conzar
Member
Advanced member
 
conzar's Avatar
 
Join Date: May 2006
Posts: 36
Default Re: ac_object_set_userdata

So it seems like the functions below would do the trick. Is that right?

void object_set_userdata(ACObject *ob, char *dat); /** set the objectdata string **/
char *object_get_userdata(ACObject *ob); /** get the objectdata string **/
conzar is offline   Reply With Quote
Old 17th June 2008, 01:42 PM   #6
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,366
Default Re: ac_object_set_userdata

It does look like you have an old version - PM me your email and I'll send you a later header file.

Andy
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 12:15 PM.


AC3D Forum
(C) Inivis Limited 2020