
case '!control-all':
var m_obj = _.chain(msg.selected) // Start a chain of the selected objects
.map(function(s){
return getObj('graphic',s._id); // try to get each as a graphic (will be undefined for drawings, text, etc
})
.reject(_.isUndefined) // Remove those selected objects that were not graphics (drawings, text, etc)
.each(function(t){
log('t.controlledby ' + t.controlledby);
});
break;
"t.controlledby undefined" "t.controlledby undefined" "t.controlledby undefined" for object with or without controlling players PS: what I really want to do is a way to give all tokens "Controlled by All Players" in one fell swoop :)