|
14th June 2008, 01:39 AM | #1 |
Member
Advanced member
Join Date: May 2006
Posts: 36
|
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 |
14th June 2008, 05:42 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
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. |
15th June 2008, 06:28 PM | #3 |
Member
Advanced member
Join Date: May 2006
Posts: 36
|
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 |
17th June 2008, 07:45 AM | #4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: ac_object_set_userdata
Possibly - but just insert the above lines into your and you shoudl be fine.
Andy |
17th June 2008, 09:47 AM | #5 |
Member
Advanced member
Join Date: May 2006
Posts: 36
|
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 **/ |
17th June 2008, 01:42 PM | #6 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
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 |
|
|