mccollom73
10-21-2010, 04:35 AM
Hey,
If you remember thread a little while ago it was about shift clicking. Anyways, I made it so that you have to put a name in for your character, and it renames everything off that. Anyways, is this code right for that?
global string $CharacterName;
$CharacterName = `textField -query -text preprefix`;
string $myBtn0 = `button -label "Head" -command "string $object=\($CharacterName + "_Head_Turn_Controller")\;
int $mods = `getModifiers`;
if (($mods/1)%2==1)select -add $object;else select $object;"`;
Thanks,
Josh
If you remember thread a little while ago it was about shift clicking. Anyways, I made it so that you have to put a name in for your character, and it renames everything off that. Anyways, is this code right for that?
global string $CharacterName;
$CharacterName = `textField -query -text preprefix`;
string $myBtn0 = `button -label "Head" -command "string $object=\($CharacterName + "_Head_Turn_Controller")\;
int $mods = `getModifiers`;
if (($mods/1)%2==1)select -add $object;else select $object;"`;
Thanks,
Josh
