You should be able to tweak the code to do this. It will be something like adding the lines:Render passes are ignoring pass visibility. Using Modo native or Vray it is extremely useful to be able to toggle off a pass using the little camera icon in the groups panel. Say you have a dozen passes but three of them you do not need to run, it can save a lot of wasted time. When I run the script for Octane it renders all passes ignoring that state.
- Code: Select all
pass_state = lx.eval('layer.enable enable:?')
if pass_state == "off":
continue
after the line
- Code: Select all
render_pass_group = modo.item.RenderPassGroup(current_pass_group_name)
Remember to make sure the indentation is correct. If you have trouble, please PM me the code and I will take a closer look.
Paul