Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 16, 2014 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/99de000cc7d6ef531143 to your computer and use it in GitHub Desktop.
Save fereria/99de000cc7d6ef531143 to your computer and use it in GitHub Desktop.
import maya.OpenMaya as om
sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(sel)
obj = om.MObject()
sel.getDependNode(0,obj)
camAccess = om.MFnCamera(obj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment