Hey,
Anyone knows if there is a way to print custom text from an IFD file while processing it?
Mantra logs archive reading logs, process, profiling info..etc, but what I would like (for now, probably more later) is a line at the end of the render saying that it's finished and some custom logging information (for renderfarm database stuff).
Also, is it possible to inject such custom text to a specific location from Houdini (ie..I don't just want it to be at the end of the IFD, but also to be logged at the end of the rendering process)? I've only found camera and object pre and post include.
I know IFDs can contain programming statements, just I'm not too familiar with the format yet, so hints welcome
Thanks,
Andras
Mantra - printing custom text from IFD
4639 5 0- k0diak
- Member
- 56 posts
- Joined: April 2007
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
maybe you can find a hint here:
http://odforce.net/wiki/index.php/IFDFormatDocument [odforce.net]
Georg
http://odforce.net/wiki/index.php/IFDFormatDocument [odforce.net]
Georg
this is not a science fair.
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
If you want things in specific places, you'll likely have to run the IFD through “sed” or Python or something similar to inject the comments.
You can use the pre and post script fields on Objects, Cameras, Lights etc to add comments directly into the IFD, but these will go in specific places, and may not be inserted exactly where you want.
Try it out, put something like “echo Obj pre-script” etc into the script fields on Objects and Cameras, then look in the IFD and you'll see where they get inserted.
Cheers
peter B
You can use the pre and post script fields on Objects, Cameras, Lights etc to add comments directly into the IFD, but these will go in specific places, and may not be inserted exactly where you want.
Try it out, put something like “echo Obj pre-script” etc into the script fields on Objects and Cameras, then look in the IFD and you'll see where they get inserted.
Cheers
peter B
- k0diak
- Member
- 56 posts
- Joined: April 2007
- Offline
Thanks Peter,
You were right, parsing is the easy way..I need to append a line just after ray_quit, that gets logged last, after rendertime.
Now..is there a way to send the IFD stream through a parser automatically? Does pipes and redirection work in the ROP text fields?
(Sorry for the stupid questions just I dont have access to H right now
Thanks RDG for the heads up on the IFD docs, handy.
You were right, parsing is the easy way..I need to append a line just after ray_quit, that gets logged last, after rendertime.
Now..is there a way to send the IFD stream through a parser automatically? Does pipes and redirection work in the ROP text fields?
(Sorry for the stupid questions just I dont have access to H right now
Thanks RDG for the heads up on the IFD docs, handy.
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
- k0diak
- Member
- 56 posts
- Joined: April 2007
- Offline
Ok, found a simpler way…logging it here just for the sake of completeness.
You can add a post frame script that just appends text (using cat or echo) to the already closed IFD for the given frame.
unix (echo “echo CUSTOMTEXT >>” “csphere.ifd”)
Notes: the first echo is a DOS command, the second echo goes in the IFD and it's a mantra command. Instead of hardcoding the filename, one could use channel referencing and reading the given ROP's “script” attribute (that's why I've split the quotation marks into two groups).
cheers
Andras
You can add a post frame script that just appends text (using cat or echo) to the already closed IFD for the given frame.
unix (echo “echo CUSTOMTEXT >>” “csphere.ifd”)
Notes: the first echo is a DOS command, the second echo goes in the IFD and it's a mantra command. Instead of hardcoding the filename, one could use channel referencing and reading the given ROP's “script” attribute (that's why I've split the quotation marks into two groups).
cheers
Andras
-
- Quick Links