ScriptSpot

Forum topic · Scripts Wanted

unhighlight or "deselect all" cameras from batch render dialogue list

By compuhms · 2021-06-06

Description

greetings.. incase if there is a scene with 20 cameras added in render batch render dialogue..is there a script to deselect all cameras from batch render dialogue so that i can manually select only certain jobs that i need to render?

Comments (5)

use this

obaida · 2021-07-02


(
	local nmv = batchRenderMgr.numViews
	for i = 1 to nmv do ((batchRenderMgr.GetView i).enabled = false)
)

Thank you so much :)

compuhms · 2021-11-29

Thank you so much for your reply.. may i have a question.. in case if i want to re-highlight certain range of views in batch render manager dialogue lets say from view 1-10 .. is there a solution for this?

obaida · 2022-01-11

for i = 1 to 10 ........... = true --instead of false
--or
num = #(5,7,10)
for i in num do ......... = true --instead of false

unfortunately not working

compuhms · 2022-01-17

it's not working for me i'm getting an error in max listner
is there something wrong or missing in the script?

obaida · 2022-01-17


for i = 1 to 10 do try((batchRenderMgr.GetView i).enabled = false)catch()

use try()catch() if you're not sure if Views (from 1 to 10) are exist .