Here's the script for 'do not animate' from the rig tutorials

The original script was in sample pack 09 on the rigging video page but I searched for a long long time before I gave up and wrote my own. The sample pack on the page is now 07 and does not contain the script file. So here you go! I didn’t make an icon though, I just used the default.

function TB_Set_Not_Animatable()
{
for(var sel_index = 0 ; sel_index < selection.numberOfNodesSelected(); sel_index++)
{
var node_name = selection.selectedNode( sel_index );
print( node.getTextAttr( node_name, 1, “CAN_ANIMATE” ) );
node.setTextAttr( node_name, “CAN_ANIMATE”, 1, “N” );
print( node.getTextAttr( node_name, 1, “CAN_ANIMATE”) );
}
}

I don’t know scripting very well but this works. To allow animating replace the “N” with “Y”