PDA

View Full Version : Delete aimConstraint


Marcel
04-10-2006, 02:35 PM
I'm trying to delete all aimConstraints from an object, but it's not really working out. For some reason I don't get the constraints when I try to list them using `listConnections -t aimConstraint $object`;

Is there an easy way to remove all constraints from an object?

Stucky
04-10-2006, 03:10 PM
try to do:

listConnections -type constraint $object;

it will list all constraint types....



-S

Robert Bateman
04-10-2006, 05:43 PM
Is there an easy way to remove all constraints from an object?

select -r `listConnections -type aimConstraint $object`;
delete `ls -sl`;

works every time.... (so long as $object is a transform node, if it's say a mesh, it won't work)

john_homer
04-11-2006, 01:04 AM
or.. if you want to save those typing fingers..

delete `listConnections -type aimConstraint $object`;

ps. works for me with either the transform or shape (mesh) node selected

.j

CGTalk Moderation
04-11-2006, 01:04 AM
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.