Announcement

Collapse
No announcement yet.

Accessing the renderable / currently rendering camera

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing the renderable / currently rendering camera

    Hi,

    I'm looking to add PreRender MEL scripts to my renders. I want to access the camera that is currently rendering to create some additional EXR metadata and there is no where in vraySettings that I've found this possible in MEL. Does anyone know if this is possible? Or a Python work around? Any help would be amazing.

    Jack

    EDIT: I've found this line tends to do the trick...
    rendCamList = [c for c in mc.ls (type='camera') if mc.getAttr (c + '.renderable')]
    Last edited by jackaroo88; 31-07-2012, 12:30 PM.
Working...
X