Options for printing to a file.

   1903   2   1
User Avatar
Member
39 posts
Joined: 1月 2012
Offline
I'm currently looking for options on taking position data from SOP's and printing to files. (Custom formatted .rib files)

I am replacing an old Maya script that replied heavily on the fprint .mel command. (opens files, writes to them etc.)

Would a python script be the best option for Houdini? I am a little hesitant, as I would be relying heavily on this, and might take a serious speed hit using python to iterate over a LOT of geometry.

I have found a few nodes in Houdini like the print vex node, but I am thinking it would not give me the flexibility to format the file how I would need it.

Anyone come up with a good solution for writing a lot of data to files?

I have a little python knowledge, and a touch of C++.

Cheers,
Aaron.
www.aaronauty.com
User Avatar
Member
299 posts
Joined: 1月 2010
Offline
If the speed was good enough with MEL it will probably be faster with python.

I would not use the print vex node for this.
Drive, monkey, drive!
User Avatar
Member
39 posts
Joined: 1月 2012
Offline
Righto, cheers, I'll work with python.
www.aaronauty.com
  • Quick Links