# Saving from the VFB while rendering

**URL:** <https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959>\
**Category:** General\
**Created:** [December 11, 2024, 4:17pm UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959 "2024-12-11T16:17:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Marks](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dan\_Marks](https://forums.chaos.com/u/Dan_Marks)\
**Post date:** [December 11, 2024, 4:17pm UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/1 "2024-12-11T16:17:35Z")

</div>

Hello all, I hope you are well.

My request is as follows.

I am rendering via Deadline, my colleagues would like to save out progressive renders at any point during the render process from the VFB.

(Sometimes we have urgent requests ahead of meetings, we don’t necessarily have time to wait for the render to finish, so we RDP to the farm)

Currently when we press the save icon, we have to find the path, give the file name and extension. This is time consuming to do on each render node if say 20-40 renders are need saving out.

Is there a way that the path, the file name and the extension can be pre-populated from the VFB render settings, so we can just hit save and get the output.

Thanks for your assistance.  
Daniel

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [December 12, 2024, 11:06am UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/2 "2024-12-12T11:06:57Z")

</div>

> [@Dan\_Marks](#):
>
> Is there a way that the path, the file name, and the extension can be pre-populated from the VFB render settings, so we can just hit save and get the output.

The VFB browse menu path depends on where the location of the scene (by default) or the last chosen path. It cannot be manually changed. A few ideas:

1. Use the “Copy current channel to clipboard” (VFB \> Image) and paste the image elsewhere.

2. Use the “Save to History” button to quickly save the image (History folder can be chosen in the options). The images, however, will be .vrimg. They can be converted through the vrimg2exr tool (to EXR) or through ChaosPlayer.(multiple formats).

3. A not-so-elegant way: enable resumable rendering (to save the progress of the rendering) and set a post-render script like so:  
`vfbControl #saveimage ("G:\Shared drives\3D SUPPORT\Scenes-Forum\1222611\gosho" + ((timestamp() / 1000) as string) + ".jpg")`  
Basically, you stop the render, the file is saved through the script, and then you resume it. This works while local rendering; I’m not sure how it will do with a network job. It also depends on whether you send the jobs to V-Ray Standalone or 3ds Max batch.

---

<div class="post-metadata">

**Author:** ![Dan\_Marks](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dan\_Marks](https://forums.chaos.com/u/Dan_Marks)\
**Post date:** [December 12, 2024, 2:35pm UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/3 "2024-12-12T14:35:37Z")

</div>

Thanks for the reply,

I’ve also found this work-around. If the job is sent to deadline via the Deadline 3dsCmd submitter, the 3dsmax render dialogue is displayed on the nodes. This exposes the STOP and CANCEL buttons. RDP to the node and pressing STOP saves & cancels the render with the correct filename and in the correct location.

Wishing there was a way to do this from deadline, Ideally my organisation would to be able to suspend a a job from Deadline Monitor and all the part-processed renders would save out before Max exits.

Something similar was requested on the Deadline forums, but the response is the Vray API lacks the necessary functionality to make this happen, this is a (very) old post maybe things have changed?  
[https://forums.thinkboxsoftware.com/…stions/13194/3](https://forums.thinkboxsoftware.com/t/vray-dbr-questions/13194/3)  
_“Not that we are aware of. Currently, V-Ray provides no way to “kill a render and force it to still save out” via its API.”_ [MikeOwen](https://forums.thinkboxsoftware.com/u/MikeOwen)AWS Thinkbox Staff​

Here are other examples of people asking for this, here is someone is looking for the same functionality with Deadline and Vray  
[https://forums.thinkboxsoftware.com/…ping-job/13331](https://forums.thinkboxsoftware.com/t/vray-progressive-stopping-job/13331)  
And here on the Chaos forum (but for Maya)  
[https://forums.chaos.com/forum/v-ray…-in-batch-mode](https://forums.chaos.com/forum/v-ray-for-maya-forums/v-ray-for-maya-general/982201-progressive-render-in-batch-mode)

I’ve emailed [support@thinkboxsoftware.com](mailto:support@thinkboxsoftware.com) but they now require a AWS premium support account before I can have a response. Requested and waiting to be approved by my organisation.

I hope Aleksandar, or someone else on this forum can shed some more light on a possible path forward.

 ![image.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/b/e/be5afcdd2ec85ae506839de63d5b1f23ed22e8cc.jpeg)​

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [December 13, 2024, 11:28am UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/4 "2024-12-13T11:28:10Z")

</div>

> [@Dan\_Marks](#):
>
> I’ve also found this work-around. If the job is sent to deadline via the Deadline 3dsCmd submitter, the 3dsmax render dialogue is displayed on the nodes. This exposes the STOP and CANCEL buttons. RDP to the node and pressing STOP saves & cancels the render with the correct filename and in the correct location.

Glad you found a solution. We tested the script workaround (script loaded in the scene’s Post-Render slot) and stopping the render through the 3ds Max render dialogue, which made the script run correctly, unlike suspending the job from the Monitor (which seems to be another kind of “stop”). The script in question is a simple one:  
`vfbControl #saveimage ("G:\Shared drives\3D SUPPORT\Scenes-Forum\1222611\image" + ((timestamp() / 1000) as string) + ".jpg")`

> [@Dan\_Marks](#):
>
> Something similar was requested on the Deadline forums, but the response is the Vray API lacks the necessary functionality to make this happen, this is a (very) old post maybe things have changed?

I’m not aware of any changes.

> [@Dan\_Marks](#):
>
> Wishing there was a way to do this from deadline, Ideally my organisation would to be able to suspend a a job from Deadline Monitor and all the part-processed renders would save out before Max exits.

If there’s a way to link the Suspend Job to the 3ds Max dialogue _Stop_​​​​​​button, the script workaround should do it. But I’m not sure if that’s possible, try asking them.

---

<div class="post-metadata">

**Author:** ![Dan\_Marks](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dan\_Marks](https://forums.chaos.com/u/Dan_Marks)\
**Post date:** [December 13, 2024, 1:52pm UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/5 "2024-12-13T13:52:11Z")

</div>

Hey Aleksandar,

Unfortunately I’ve discovered the SMTD(3dsCmd) submitter for deadline to have a few problems, its not as user friendly as the SMTD submitter. For example changes to the frame range in the Render settings dialogue require the SMTD(3dsCmd) to be restarted to take effect. I don’t think this will float in our production environment.

**vfbControl #saveimage (“G:\Shared drives\3D SUPPORT\Scenes-Forum\1222611\image” + ((timestamp() / 1000) as string) + “.jpg”)**

I added this as a script in the Post-Render slot in the SMTD(3dsCmd) and as a Post-Frame script in the SMTD submitter, but it did not appear to work.

(It did save an output based on pressing STOP in the max render dialog, but to the location in the render settings dialogue, not the location I set out in the script)

It would be amazing if we could find a Post\_Frame script that does work form the SMTD submitter!

Thank you for your support.

Daniel

---

<div class="post-metadata">

**Author:** ![Dan\_Marks](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dan\_Marks](https://forums.chaos.com/u/Dan_Marks)\
**Post date:** [December 17, 2024, 10:20am UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/6 "2024-12-17T10:20:06Z")

</div>

I’ve been looking for help from Deadline to make the SMTD(3DsCMD) submitter more user friendly but but had no luck so far,

> **[3dscmd Deadline Submitter not updating frame range](https://forums.thinkboxsoftware.com/t/3dscmd-deadline-submitter-not-updating-frame-range/32885)**
>
> Hi, I am now using the 3DsCMD submitter, as when I do I now see the STOP button which allows me to stop and save a progressive render at any point with one click (very useful in an emergency) It seems to supply all the functionality we need. ...

If this is a dead-end, is there any hope for making the VFB save on render cancel using a post-frame script in the SMTD submitter? (the SMTD submitter would be preferable over the SMTD(3dsCMD) submitter in any case)

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [December 18, 2024, 2:41pm UTC](https://forums.chaos.com/t/saving-from-the-vfb-while-rendering/120959/7 "2024-12-18T14:41:01Z")

</div>

> [@Dan\_Marks](#):
>
> If this is a dead-end, is there any hope for making the VFB save on render cancel using a post-frame script in the SMTD submitter? (the SMTD submitter would be preferable over the SMTD(3dsCMD) submitter in any case)

Script-wise I can’t seem to make it work with SMTD. I even tried saving through the 3ds Max Frame Buffer via script, but to no avail. This is something that should be addressed to the Deadline support. Maybe they know how to set it up.

Either way, along with the above solution (clicking Stop in 3ds Max dialogue via the SMTD(3dsCMD) and the post-frame script), you could always use the _ **“Stop Render”** _ button in the VFB, which saves an image _in the folder, chosen in the Frame Buffer rollout_. Note that there are two buttons - Stop and Abort; you need to click and hold to choose which one you wish to use. More on the differences [here](https://docs.chaos.com/display/VMAX/V-Ray+Frame+Buffer).
