Notifications
Clear all

[Closed] Batch Render In Progress Dialog

Hello. Is there a way to access the “Batch Render In Progress Dialog” when using batch render by script? When i manually click render (in the batch render dialog) it shows up normally (image is in attachement) but when I call it from the script by using code “batchRenderMgr.render()” it just pops up for a second and disappears and the sequence keeps rendering without visually monitoring that progress. Does anyone have an idea how to call that progressbar from script just like it would be when clicking manually?
Thanks in advance.

Here’s the code and image is in the attachement:


try destroydialog ::BatchProgress catch()

global sCurrentUser = systemTools.getEnvVariable("USERPROFILE")

Rollout BatchProgress "BatchProgress" width:300
(

	button btnRender "Render" width:200 height:40 align:#center
	
	
	fn resetBatchRender = 
	(
		batchCount = batchRenderMgr.numViews
		for i = 1 to batchCount do
		(
			batchRenderMgr.DeleteView 1
		)
	)--end fn resetBatchRender
	
	
	local aCam = for o in cameras where classof o != targetobject collect o
	local sDir = (sCurrentUser + "\\Desktop\TestFolder\\")

	on btnRender pressed do
	
	(
		makeDir sDir

		resetBatchRender()

		wFront  = batchRenderMgr.CreateView aCam[1]
		wFront.enabled = true
		wFront.name = "Front"
		wFront.overridePreset = true
		wFront.startFrame = 0
		wFront.endFrame = 5
		wFront.width = 128
		wFront.height = 256
		wFront.outputFilename = (sDir + "testFront.png")

		wLeft  = batchRenderMgr.CreateView aCam[2]
		wLeft.enabled = true
		wLeft.name = "Left"
		wLeft.overridePreset = true
		wLeft.startFrame = 0
		wLeft.endFrame = 5
		wLeft.width = 128
		wLeft.height = 256
		wLeft.outputFilename = (sDir + "testLeft.png")

		wRight  = batchRenderMgr.CreateView aCam[3]
		wRight.enabled = true
		wRight.name = "Right"
		wRight.overridePreset = true
		wRight.startFrame = 0
		wRight.endFrame = 5
		wRight.width = 128
		wRight.height = 256
		wRight.outputFilename = (sDir + "testRight.png")

		wBack  = batchRenderMgr.CreateView aCam[4]
		wBack.enabled = true
		wBack.name = "Back"
		wBack.overridePreset = true
		wBack.startFrame = 0
		wBack.endFrame = 5
		wBack.width = 128
		wBack.height = 256
		wBack.outputFilename = (sDir + "testBack.png")
	
		batchRenderMgr.render ()
		
	)--end on btnRender

)--end Rollout

createDialog BatchProgress
2 Replies

You have to make “Batch Render In Progress” dialog topmost

I would do it using DialogMonitorOPS, SetWindowPos, and HWND_TOPMOST…

search these keywords on this forum to find examples of their using

Thanks for the info, Denis. I’ll do some research