is it possible to write an arbitrary file to disk?

   2076   5   0
User Avatar
Member
28 posts
Joined: Nov. 2015
Offline
Normally I might fire up bash and write a quick script to generate some test data for whatever reason. For example, 100 random numbers in the range of 0-1. Then I started wondering if my new favorite tool (hint: Houdini) could do this.
User Avatar
Member
8525 posts
Joined: July 2007
Offline
well, it has Python, so yes, it can write arbitrary files to disk
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
7710 posts
Joined: July 2005
Offline
Other ways:
- Use hscript, which is like a shell language and so you just do stuff like “echo foo $tx >> file_path”
- Use VEX and just redirect Houdini output to a file.

Personally, I like Python though.
User Avatar
Member
8525 posts
Joined: July 2007
Offline
and of course there is a Shell ROP
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Staff
637 posts
Joined: Aug. 2013
Offline
Nobody has explicitly mentioned the Python SOP, so I'll throw that in there as well.

It'll execute its script whenever it cooks, which may be really convenient or really annoying depending on what you're doing.
Kai Stavginski
Senior Technical Director
SideFX
User Avatar
Member
28 posts
Joined: Nov. 2015
Offline
Python! Of course…*facepalm*

Thx everyone!
  • Quick Links