pre-render clear Vray Frame Buffer

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lpthebest's picture

Thnks

Thank you so much!

ctl's picture

Guys, this functions is build

Guys, this functions is build in in the vray settings.

http://oi68.tinypic.com/27zyyhs.jpg

lpthebest's picture

Thank you!)

Thank you!)

real08121985's picture

Here is a possible approach.

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
)
hippiearchitect's picture

AWESOME

thank you!

hippiearchitect's picture

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

shultzo3d's picture

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!

tiagodmed's picture

vfbControl ()

vfbControl (#clearimage)

juanlenin's picture

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.