ScriptSpot home

Forum topic · Scripts Wanted

pre-render clear Vray Frame Buffer

By daniel · 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)
Evgeniy

Thnks

Thank you so much!

real08121985

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
)
Reply to real08121985
shalom buberman

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

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!

Reply to daniel
daniel

remove script

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

tiagodmed

vfbControl ()

vfbControl (#clearimage)

Juan Lenin

I'm looking for the same script

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.