I just tried the new pre/post render commands, and I have some questions:
- I would like to print the current frame number after a frame is rendered. In the long run I want to do this in command line mode, but for now I just tried it in GUI. It's not giving me the results I was hoping for. I have the following code saved as curr_frame.py and I use @D:/curr_frame.py as post frame command.
When I try to render range 1-5, it just prints 1 (5 times). I was using the post frame callback and my current time indicator was on frame 1 so I guess the current frame is not evaluated when rendering. Is there a way to get the current frame that renders? I also tried some hacky methods of setting a temp envrionment variable and then reading that each frame but it's not working. Ideas?
- What is the "Pre translate" command?
- Are the naming of these global for all VRay implementations? I prefer Nukes naming: Pre render, pre frame render, post frame render, post render.
- It would be super cool to have access to the names of the rendered frames when doing a post-render command. Would this be possible in the future? I'm not sure how thought. Could the vray.render_animation command could return filepaths? Or would we need python access to the vray scene for this? It would help a lot when for example adding metadata to renders.
- I would like to print the current frame number after a frame is rendered. In the long run I want to do this in command line mode, but for now I just tried it in GUI. It's not giving me the results I was hoping for. I have the following code saved as curr_frame.py and I use @D:/curr_frame.py as post frame command.
Code:
# Get current time in seconds. sel_svc = lx.service.Selection() curr_time = sel_svc.GetTime() fps = modo.Scene().fps # Print current time converted to frames. print curr_time*fps
- What is the "Pre translate" command?
- Are the naming of these global for all VRay implementations? I prefer Nukes naming: Pre render, pre frame render, post frame render, post render.
- It would be super cool to have access to the names of the rendered frames when doing a post-render command. Would this be possible in the future? I'm not sure how thought. Could the vray.render_animation command could return filepaths? Or would we need python access to the vray scene for this? It would help a lot when for example adding metadata to renders.
Comment