Hi there, I'm new to Python, and I have a simple question for you guys. How would I go about changing the attributes on group? In this case, it is a group of 3 spotlights. I just want to be able to change the intensity on them all at once, instead of individually.
Here is the code... cmds.spotLight( n='back_building_light_1', ca=20 ) cmds.move( -8,10,0 ) cmds.spotLight( n='back_building_light_2', ca=20 ) cmds.move( 0,10,0 ) cmds.spotLight( n='back_building_light_3', ca=20 ) cmds.move( 8,10,0 ) cmds.group( 'back_building_light_1', 'back_building_light_2', 'back_building_light_3', n='back_bldng_lgts_grp' ) cmds.rotate( -90,0,0 ) cmds.polyPlane( w=20, h=20, sx=10, sw=10 ) cmds.setAttr( 'back_building_lights.intensity=0.5) ???? Thanks -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
