Hey, I finally had time to look at that so here's the thing, all the channelBox commands are hard-coded to the mayaChannelBox, I had to modify 3 differents files.
On windows :
C:\Program Files\Autodesk\Maya2013\scripts\startup\generateChannelMenu.mel
C:\Program Files\Autodesk\Maya2013\scripts\startup\selectedChannels.mel
C:\Program Files\Autodesk\Maya2013\scripts\startup\channelBoxCommand.mel
In the generateChannelMenu.mel :: generateChannelMenu proc had this :
global proc generateChannelMenu( string $parent, int $popupMenu ) {
setParent -m $parent;
global string $gChannelBoxName;
string $popUpMenuParent = `control -q -p $parent`;
string $toks[]; tokenize $popUpMenuParent "|" $toks;
$gChannelBoxName = $toks[size($toks)-1];
Then replace all the 'mainChannelBox' by '$gChannelBoxName' in all the 3 files, add the line :
global string $gChannelBoxName;
If the string $gChannelBoxName is not declared in the proc.
Eveything works fine for me. I can send the files if needed.
Thanks,
m.