Jump to content
Sign in to follow this  
Lucas van Rossum

Delete constraint based on the position of the simulation.

Recommended Posts

Hi

I try to remove the constraint with a sop solver plugged into a constraintnetwork node to have the updated states of the simulation.

 

The constraint network fall throught the bounding box but is not deleted...

 

Here is my hip file:

 

 

Help.hip

Share this post


Link to post
Share on other sites

Hi

I try to remove the constraint with a sop solver plugged into a constraintnetwork node to have the updated states of the simulation.

 

The constraint network fall throught the bounding box but is not deleted...

 

Here is my hip file:

It works well for me.

The bottom of constraint has be deleted.

Share this post


Link to post
Share on other sites

Sorry for my poor english, I was not very clear...

You are right the bottom of the constraint has be deleted.

But i try to delete constraints pieces that fall on ground (they enter in the delete node bounding box that is in the sop solver) 

Regards

 

lucas

Share this post


Link to post
Share on other sites

Sorry for my poor english, I was not very clear...

You are right the bottom of the constraint has be deleted.

But i try to delete constraints pieces that fall on ground (they enter in the delete node bounding box that is in the sop solver) 

Regards

 

lucas

Oh, my English was bad too.

I think i get what you mean.

Actually in the sop solver you can see the constraints network was stay still,it not follow the rbd object, so it was just delete the bottom constraints and although the rbd object fall on ground, its constraints was still the first frame postion, so it can't be deleted.

 

To do it ,add a another delete.

Hope it may help.

Help_2.hip

Share this post


Link to post
Share on other sites

Thank you.

 

I find it's dificult to debug the sop solver in this situation. I have no feedback when i dive in to the SOP solver.

 

You are right, in my exemple it's easy to have multiples delete nodes.

But in my actual project this is not an option.

 

Do you know any solution to import the updated position of the constraint network in the sop solver ?

 

Regards

Share this post


Link to post
Share on other sites
int parIx = findattribval(1,"point","name",s@name,0);
matrix tr = primintrinsic(1,"packedfulltransform",parIx);
v@P *= tr;

don`t forget to hook packed pieces in second wrangle input

  • Like 2

Share this post


Link to post
Share on other sites
On 11/4/2014 at 4:05 AM, Lucas van Rossum said:

Thank you rayman, it's work perfectly.

This code will be usefull for lots of other things!

 

 

lucas

how were you able to use that code by rayman? can you please share the hip?

Share this post


Link to post
Share on other sites
10 hours ago, Lucas van Rossum said:

Hi navneet sorry for the delay.

Here is an example...

Exemple.hip

Does this work if we have a static deforming object and then we are breaking the constraints?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×