Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 08-02-2005, 03:51 PM   #1
Velusion
Registered User
 
Velusion's Avatar
 
Join Date: May 2004
Location: Utah, USA
Posts: 368
Thanks: 0
Thanked 0 Times in 0 Posts
Default Left overs

I have a series of parented objects constrained to a series of other parented objects.

I put together a script that breaks the constraint connections, unparents all of the objects then re-assigns the parent-child relationships (in a new order), then re-establishes the constraints just the way they were before.

The bi-product of this action is a bunch of unused constraints cluttering up the outliner. When I broke the connection of the constrains I assumed that it would be like deleting them but it didn't. The connections were gone but the constrain nodes(?) stuck around.

What I end up doing is, occasionally going into the outliner and performing a little house cleaning. I select the unused constraints and delete them. Each time I run the script again, they start to build up again.

How can I break the constrains so that they are GONE?

By the way, the reason I break the constrains before unparenting is because I discovered that if I unparent objects that have a constraint on them, sometimes they shift position.

Any thoughts?
__________________
James Rogers
www.morphicmotion.com
Velusion is offline   Reply With Quote
Old 08-02-2005, 04:28 PM   #2
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

By the way, the reason I break the constrains before unparenting is because I discovered that if I unparent objects that have a constraint on them, sometimes they shift position.
You can stop that by doing using the "preserve position" option when you unparent them.

As far as deleting the constraints you will probably need to write a script that will grab all of the constraints in the scene and then find any unconnected ones and bin them. Shouldn't be too hard try using lictConnections on the constraints.

Alan
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 08-02-2005, 05:06 PM   #3
Velusion
Registered User
 
Velusion's Avatar
 
Join Date: May 2004
Location: Utah, USA
Posts: 368
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmmm, preserve position..... If that works for me, I won't have to delete the constrains!! All problems would be solved! Thanks Pure_Morning. I'll take a look at that later.

Funny, but when you get use to using sortcuts you forget that there are options available when you access a function thru the menu.
__________________
James Rogers
www.morphicmotion.com
Velusion is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.