Sunday, 8 August 2010

python list comprehension

this is quite nice use for python list comprehension in Maya:

cams = [ mc.listRelatives( c, parent=1 )[0] for c in mc.ls( type='camera' ) ]
Post a Comment