Jump to content

Saving Private Data


Recommended Posts

For future reference got this from support

I would *not* use the save/load methods of UT_IntArray. You

might want to do something like

int nints = array.entries();

UTwrite(os, &nints, 1);

UTwrite(os, array.data(), nints);

Then load it in a similar fashion.

Make sure that there's a UT_CPIO packet around the data though,

otherwise, Houdini will have a hard time dealing with it :-)

Oh, you might want to save out a version number, in case your save

format changes in the future...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...