Jump to content

Copying Constraints?


mstarktv

Recommended Posts

I am super stuck on trying to create constraints across multiple copied geometry. I attached my file to make more sense of it. If you open the DOP Network you can see that from left to right I have a position constraint>rotation>rotation. However, I'm confused on why the second rotation constraint isn't connecting to the 1st. It acts as if it's just a position constraint with a rotation constraint on it.

Hopefully my file explains more. It's kind of a mess because I tried to copy the constraints across instead of making a new line each time. Trying to learn the most basic form of using constraints so any help is much appreciated. 

constraint.hipnc

Link to comment
Share on other sites

The reason why it's not connecting is because you are connecting to a nonexistent box3. When creating constraints, you got a primitive with two points(your line). The name attribute of each point tells the constraint net which geo it should connect. So point 0 connects to box0 and point 1 to box1. Point 0 and point 1 are one primitive and therefore hold together. I hope the image makes it a bit clearer what I mean. Attached there is your scene with the constraint visualization. Note that if you want to use that setup you would have to scale down the points since I left them apart for visualization purposes only.

Hope that helps.
Dennis

 

constraintNameCreation.jpg

constraint_visualize_v01.hipnc

Edited by DennisSchmidt
  • Like 1
Link to comment
Share on other sites

This cleared a lot up for me. For some reason I was only paying attention to the constraints and not the boxes themselves. I was looking at "box*" as just a name and totally forgot that it's an actual object. Brainfart... Thanks, Dennis!

Link to comment
Share on other sites

On 6/11/2016 at 6:10 AM, DennisSchmidt said:

The reason why it's not connecting is because you are connecting to a nonexistent box3. When creating constraints, you got a primitive with two points(your line). The name attribute of each point tells the constraint net which geo it should connect. So point 0 connects to box0 and point 1 to box1. Point 0 and point 1 are one primitive and therefore hold together. I hope the image makes it a bit clearer what I mean. Attached there is your scene with the constraint visualization. Note that if you want to use that setup you would have to scale down the points since I left them apart for visualization purposes only.

Hope that helps.
Dennis

 

constraintNameCreation.jpg

constraint_visualize_v01.hipnc

When I started diving down into your setup I noticed something that I was going to ask. Which was that, you made it so that the box count could be copied to the line count. However, once I went to 4 boxes (box3). It seemed to just break and only the first 3 were connected. Is there any specific reason for this? Again, thanks! I'm just trying to really understand.

Link to comment
Share on other sites

It works for me. I just changed the copy of the boxes from 3 to 4(did you do the same?) and the copy of the lines also to 4. That was it. I think you forgot to add to the number of line copies. So there is no constraint created. A good way to check is looking at your geo spreadsheet. There you would see if there is a point connected to box3. If you select the OUT_ROT1 and look in the spreadsheet of the attached file you can see that point 5 is connected to box3. The second point belonging to that primitive is point 4 and it is connected to box2. Therefore, it should hold box2 and 3 together.
Hope that clears it up a bit.

constraint_visualize_v02.hipnc

Link to comment
Share on other sites

  • 1 month later...

Hello! Sorry for awakening this thread again.

But what about copying the whole setup multiple times? I played with loops but didn't get it right.

Are loops even a worthwhile approach?

Thanks in advance.

Edit: Partially solved, I just put the assemble in the wrong place, no loops this time.

Now on to massage the old % to get the first piece of every copy cluster to points on another rigid body.

Edited by Hamp
Partially solved.
Link to comment
Share on other sites

If you could share your file, would be interesting. As always there are a ton of ways to do this. It all depends on the needs and how procedural it should be.
Attached you can find a quick and "dirty" approach. The changed or added nodes are colored yellow. Maybe later i will find some time to build a more elegant version.

constraint_visualize_v03.hipnc

Edited by DennisSchmidt
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...