Created
January 25, 2021 09:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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