Executing a secondary write node depending on if specific channels exist

Hey Guys,

i have an conversion nk-script which writes scanline exrs in 16bit half.

the write-node is named "Write"

We also sometimes have channels like world position or depth.Z which we like to keep 32bit, so i introduced another writenode called "Write32"

I only want to execute this Write32 if channels e.g named "depth.Z" are present. I have no problem finding out if these channels are there, but my problem is to execute the additional node.

Nuke won’t let me execute another node via:
nuke.execute(‘Write32’,nuke.frame(),nuke.frame(),1 )
when its in batch mode…i get the message:
"I’m already executing something else"

Does anyone have a workaround for this?

cheers
Oliver

No Responses to “Executing a secondary write node depending on if specific channels exist”

Post a Comment