sibarrick Posted May 26, 2007 Share Posted May 26, 2007 I've been looking at the SOP_BlindData example has anyone here done anything similiar but with float arrays or numbers not strings? I notice UT_Vector* has save and load methods but can't find anything for floats or arrays. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 29, 2007 Author Share Posted May 29, 2007 For future reference got this from support I would *not* use the save/load methods of UT_IntArray. Youmight 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.