Is it possible to use the C API to output the RIB to a stream instead of all the way to a file?
It seems the only options for RiBegin() are NULL for going to stdout and a string for a file name-- is that correct? It'd be quite useful not to have to write a temporary file and then read it back in, as I'm doing now-- is this somehow possible?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to use the C API to output the RIB to a stream instead of all the way to a file?
It seems the only options for RiBegin() are NULL for going to stdout and a string for a file name-- is that correct? It'd be quite useful not to have to write a temporary file and then read it back in, as I'm doing now-- is this somehow possible?
Thanks.
Calling RiBegin(), with an empty string as its argument (""), directs RIB output to stdout. From there you can use stream redirection.
Hope this helps.
.mm