//KeySelected 快捷键建议用a
string $myObjects[]=`ls -sl`;
string $myAttr[]=`channelBox -q -sma mainChannelBox`;
for($myNode in $myObjects)
{
for($myNodeAttr in $myAttr)
{
setKeyframe($myNode+"."+$myNodeAttr);
}}
/*Flags:
-q -query
-sma -selectedMainAttributes*/