ScriptSpot

Forum topic · Scripts Wanted

pre-render clear Vray Frame Buffer

By hippiearchitect · 2014-03-19

Description

Hi, I was hoping someone could wright a pre-render maxscript that would clear all the channel data from the vray frame buffer before the start of a new render.

3ds max 2014 sp4
vray 3.00

Thank you!

Comments (9)

Thnks

lpthebest · 2018-02-21

Thank you so much!

lpthebest · 2018-02-21

Thank you!)

real08121985 · 2016-01-22

Here is a possible approach. Executing this script before rendering will clear the Vray framebuffer and suppress the messagedialog of vray.


(
	local callbacksId = #c18ad78asgd89q9a7da9s0d123
	callbacks.removeScripts id:callbacksId
	
	fn dialogCallback =
	(
		local pHwnd = dialogMonitorOPS.GetWindowHandle()
		local tText = (UIAccessor.GetWindowText pHwnd) as string
		if tText == "VFB Confirm" then UIAccessor.PressDefaultButton()
		true
	)
		
	global clearVfb = fn clearVfb =
	(
		vfbControl (#clearimage)
	)
	
	dialogMonitorOPS.Enabled = true
	dialogMonitorOPS.registerNotification dialogCallback id:callbacksId
	callbacks.addScript #preRenderFrame "clearVfb()" id:callbacksId
	--dialogMonitorOPS.unregisterNotification id:callbacksId
)

The script does not supress the message dialog of vray-Plse Help

shultzo3d · 2016-04-06

Hi,Thanks so much for the script it could be a huge help, and I'm surprised it's not built into the function.
Anyway it's great but it doesn't supress the message, so it only rebder one image of a sequence and waits
for the user to allow it to clear the data. so it's not so effective at this point.
Please help!
Thamk you!

AWESOME

hippiearchitect · 2016-04-21

thank you!

remove script

hippiearchitect · 2016-04-29

i used the script works great, but like shultzo3d the window is not suppressed, also after removing the script, it still runs every time now. please help

vfbControl ()

tiagodmed · 2014-10-21

vfbControl (#clearimage)

I'm looking for the same script

juanlenin · 2014-10-05

One of the best enhancements of Vray 3.0 version is render mask. But maybe Chaosgroup team forgot to make a "clear pre-render" checkbox for long sequence corrections beside Render Mask list. It's the solution to avoid render again the entire sequence.