Skip to content

Instantly share code, notes, and snippets.

@dgovil
Created April 11, 2014 18:59
Show Gist options
  • Save dgovil/10492446 to your computer and use it in GitHub Desktop.
Save dgovil/10492446 to your computer and use it in GitHub Desktop.
Snippet to go through all the cameras, turn off joints and IK handles, and only show curves in the default cameras
import maya.cmds as mc
panels = mc.getPanel(typ='modelPanel')
for pan in panels:
cam = mc.modelPanel(pan, q=1, camera=1)
startup = mc.camera(cam, q=1, sc=1)
mc.modelEditor(pan, e=1, joints=0, nurbsCurves=startup, ikHandles=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment