SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 08-02-2005, 02: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, 03: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

Quote:
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, 04: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.