i am not sure if u r asking this…but if u want to freeze controllers, try this…
- If your controller is parented to world:
//select the controller and run the command.
string $select[] = `ls -sl`;
string $tempgrp = ("freeze_" + $select[0]);
group -em -name $tempgrp;
parent $tempgrp $select[0];
move -ls 0 0 0 $tempgrp;
rotate -os 0 0 0 $tempgrp;
scale 1 1 1 $tempgrp;
parent -w $tempgrp;
parent $select[0] $tempgrp;
- If your controller is parented to some other node…
//select the controller and run the command.
string $select[] = `ls -sl`;
print $select[0];
string $tempgrp = ("freeze_" + $select[0]);
group -em -name $tempgrp;
string $getParent[] = `listRelatives -parent $select[0]`;
print $getParent;
parent $tempgrp $select[0];
move -ls 0 0 0 $tempgrp;
rotate -os 0 0 0 $tempgrp;
scale 1 1 1 $tempgrp;
parent $tempgrp $getParent;
parent $select[0] $tempgrp;
let me know if some lines explode. hope it will not.
and if that was it, don,t forget to mark it useful.