mstarktv Posted June 8, 2016 Share Posted June 8, 2016 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 Quote Link to comment Share on other sites More sharing options...
DennisSchmidt Posted June 11, 2016 Share Posted June 11, 2016 (edited) 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 constraint_visualize_v01.hipnc Edited June 11, 2016 by DennisSchmidt 1 Quote Link to comment Share on other sites More sharing options...
mstarktv Posted June 12, 2016 Author Share Posted June 12, 2016 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! Quote Link to comment Share on other sites More sharing options...
mstarktv Posted June 13, 2016 Author Share Posted June 13, 2016 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 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. Quote Link to comment Share on other sites More sharing options...
DennisSchmidt Posted June 14, 2016 Share Posted June 14, 2016 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 Quote Link to comment Share on other sites More sharing options...
Hamp Posted July 26, 2016 Share Posted July 26, 2016 (edited) 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 July 26, 2016 by Hamp Partially solved. Quote Link to comment Share on other sites More sharing options...
DennisSchmidt Posted July 26, 2016 Share Posted July 26, 2016 (edited) 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 July 26, 2016 by DennisSchmidt Quote Link to comment Share on other sites More sharing options...
Hamp Posted July 27, 2016 Share Posted July 27, 2016 Hey Dennis! Thanks for taking your time! Appreciated. My solution is surprisingly similar, there are some small differences though. Would love to see more approaches, always interesting! Attaching. constraint_visualize_v03_hampTest.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.