freaq Posted October 15, 2013 Share Posted October 15, 2013 I am working with a very large dataset that is divided into chunks, and I am getting the data from a file, and then creating the poitns and faces in Houdini. the points I make through a Python sop, and I want every chunk to be written out as a .bgeo (as my computer can;t handle all the chunks at once) so my logic was to do a for loop for every chunk and then use this code: saveToFile("Y:/points/file_" + string(i)+".bgeo") i should increment, and the command should work however I keep getting thrown this error: module has no object saveToFile I tried hou.saveToFile() but no luck there either... all help is appreciated! Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 15, 2013 Share Posted October 15, 2013 (edited) 1. And you are executing this on geometry(), right? pseudocode: chunk.geometry().saveToFile(somepath) 2. Also, maybe if you use double "\\" in path it will work better? Edited October 15, 2013 by mantragora 1 Quote Link to comment Share on other sites More sharing options...
freaq Posted October 15, 2013 Author Share Posted October 15, 2013 got it working, apparantly I'm just not thinking straight today xD it needed to be: geo.saveToFile("Y:/points/file_" + str(i)+".bgeo") geo.saveToFile (got to specify what to save in this case geo) str() instead of string, string() does not exist... Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted September 1, 2017 Share Posted September 1, 2017 Thanks to the past 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.