Skip to content

Instantly share code, notes, and snippets.

@BigRoy
Created January 25, 2021 09:41
Show Gist options
  • Save BigRoy/bc12cfa1da65128d42026833a5f2914d to your computer and use it in GitHub Desktop.
Save BigRoy/bc12cfa1da65128d42026833a5f2914d to your computer and use it in GitHub Desktop.
Maya Render Setup has the option to disable showing Renderlayer / Rendersetup nodes visibility in Outliner and other editors. This script allows to toggle that easily, even when currently in legacy renderlayer mode whilst the option is hidden away.
from maya import cmds
import maya.app.renderSetup.model.initialize as init
# Get node types from Render Setup
node_types = init.renderSetupNodeNamesToShowInOutliner
display = True
for node_type in node_types:
cmds.setNodeTypeFlag(node_type, display=display)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment