Notifications
Clear all

[Closed] Pre-Render script don't work in RenderNetwork. Why?

Hi all i need the help, the script is loaded in prerender roll out, but don’t work in network render, the ” execute locally” is disabled. :hmm:

the code:

– abilita/disabilita Xref

Frame = ((currentTime as integer)/TicksPerFrame)

if Frame < 1400 then
(
(objXRefMgr.GetRecord 1).enabled = false
)
else if Frame > 1475 then
(
(objXRefMgr.GetRecord 1).enabled = false
)
else
(
(objXRefMgr.GetRecord 1).enabled = true
)

– adatta la dimensione del rendering a seconda della telacamera

oldState = renderSceneDialog.isOpen()
if oldState do renderSceneDialog.Close()
c = (getActiveCamera()).name
if c == “Camera01 [1024576]” then
(
print “Camera01 [1024
576]”
RenderWidth = 1024
)
else
(
print “Camera02 [256*576]”
RenderWidth = 256
)

Thanks in advance

ektho