View Full Version : select -hi `group` move 0 0 0

08 August 2005, 05:49 PM
Okay the title says what I want to do.

Select the hiarachy down and move them all to there 0 0 0 position.

The Problem is that when the script reaches a node which has its tx locked it just stops
and doesn't go further. Isn't there like a -force flag somewhere?

// Error: line 8: The attribute 'group4.translateX' is locked or connected and cannot be modified. //

This is what I get and it just stops!
Is there a mel cmd whoch overides the error?

08 August 2005, 07:11 PM
just found made a script which might do it ...
select -all;
string $cmd = "move 0 0 0 %s";
string $itemList[] = `ls -sl`;
select -d;
string $results[1] = executeForEachObject($itemList, $cmd);

EDIT: works

CGTalk Moderation
08 August 2005, 07:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.