Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How to flush a parentConstraint

How to flush a parentConstraint

mcw0
Advisor Advisor
493 Views
2 Replies
Message 1 of 3

How to flush a parentConstraint

mcw0
Advisor
Advisor

I have a parentConstraint with several nodes that it's constraining to.  And each one has it's own offset values.  Now I add an additional object to constrain to with it's own offset values.  Everything is working fine.  

 

Now I want to reverse the process.  I want to remove the object I added.  Seems simple enough.  But I don't get the same results.  The parentConstraint has retained some values of the last added item.  The only way I've found to get around this is to recreate the parentConstraint.  Problem solved, right?

 

No...I'm working with a referenced file.  Oh, wait...a light bulb just went off.  Maybe if I track down the reference edit and just delete that...hhhmmmm.  Has potential.

0 Likes
494 Views
2 Replies
Replies (2)
Message 2 of 3

stephenkmann
Collaborator
Collaborator

You should be able to add and remove parent constraints to referenced nodes without any trouble. 

you can also try hitting the 'update' button on the parent constraint. 

or instead of removing the new object. just set it's weight to 0 

 

hth
-=s

0 Likes
Message 3 of 3

mcw0
Advisor
Advisor

Yes, I can add and remove all I want.  But the result doesn't match my default.  That's the problem.  Hitting the update button makes it worse because since after removal, the constrained node is not at the proper position.  So updating will update to the new position.  

 

I did a test where I recreate a new parentConstraint and copied all the values from the old one to the new.  And the resulting position is correct.  So that means the original parentConstraint is holding onto some value somewhere.

 

But since I don't have time to deal with this, I have a work around for it.  But it is irritating none the less.

0 Likes