Daryl Dunlap Posted July 6, 2017 Share Posted July 6, 2017 (edited) I posted this on the sidefx forums as well with no luck after 70 views. Does anyone know how to use the 'rotation' constraint type in a Constraint Network? Bonus Points: How to use the condir and condof attributes as well. Edited July 6, 2017 by Daryl Dunlap Quote Link to comment Share on other sites More sharing options...
julian johnson Posted July 6, 2017 Share Posted July 6, 2017 I have no idea if this is any use to you but here's a scene that shows condir in action (with condof set to 2). The first .gif (condir.gif) has both position and rotation constrained whilst the second has just rotation. The constraint axis is Y. In the first gif you can see how movement is only allowed along Y and rotation is only allowed around Y. If you go into the pointwrangle and change the constraint to rotation only you get the second .gif where movement is allowed anywhere but rotation is still only allowed around Y. This scene does not work properly prior to version 16.0.642 as a bug with condir was fixed from that point onwards (i.e rotation about x was the same as rotation about z). hard_hinge_daryl.hip 4 3 Quote Link to comment Share on other sites More sharing options...
julian johnson Posted July 6, 2017 Share Posted July 6, 2017 If you switch the condof to 1 and constrain both rotation and position you're limiting movement to anywhere in the plane whose normal is y (which is why in the .gif below you can see the box only moves along x and z) and you're limiting rotation to any rotation axis that can sit on that plane.. hard_hinge_daryl2.hip 3 1 Quote Link to comment Share on other sites More sharing options...
julian johnson Posted July 6, 2017 Share Posted July 6, 2017 I haven't had time to explore the rest but you would imagine that a condof of 0 would allow the object to go anywhere and a condof of 3 would constrain it completely but, hopefully, with this scene you can check that all out. Quote Link to comment Share on other sites More sharing options...
Daryl Dunlap Posted July 6, 2017 Author Share Posted July 6, 2017 Dude...thanks! Scene and Breakdown with GIFs! Makes alot of sense now. Quote Link to comment Share on other sites More sharing options...
mestela Posted July 7, 2017 Share Posted July 7, 2017 Awesome examples, thanks for taking the time to make those! 1 Quote Link to comment Share on other sites More sharing options...
Daryl Dunlap Posted July 7, 2017 Author Share Posted July 7, 2017 (edited) After playing with this scene for a couple hours....I really love the flexibility this attribute based system provides. It makes me wish there was something similar in CHOPs for SOP constraints. CHOP Constraints just seems weird after understanding Constraint Networks in DOPs. What really made it clear for me was the Constraint Relationship Guide - set it to a primary color, move to Frame 1, and then change the constraint_type, condir, and condof attribute values - the Constraint Relationship Guide actually updates to display different Guide Geo based on these attributes. Makes it super clear why things are responding they way they are to forces. Edited July 7, 2017 by Daryl Dunlap Quote Link to comment Share on other sites More sharing options...
Daryl Dunlap Posted July 7, 2017 Author Share Posted July 7, 2017 (edited) What I'm STILL not crystal clear on is the relationship between the Anchor + Constraint + Constraint Relationship. Is it: I can have an Anchor, and an Anchor has a Constraint Type/Direction/DOF, and an Anchor Constraint can have a Relationship to one or more Anchor Constraint(s)? edit: I read the Docs one last time....summarizing: A Constraint is made up of (2) Anchors defined by a (2) point polygon. Each point in the polygon is an Anchor that can define a type/direction/dof. Edited July 7, 2017 by Daryl Dunlap Quote Link to comment Share on other sites More sharing options...
Popular Post julian johnson Posted July 7, 2017 Popular Post Share Posted July 7, 2017 (edited) 2 hours ago, Daryl Dunlap said: I read the Docs one last time....summarizing: A Constraint is made up of (2) Anchors defined by a (2) point polygon. Each point in the polygon is an Anchor that can define a type/direction/dof. Exactly. In the example below the position and rotation constraints have different condofs... walkerc.hipnc Edited July 7, 2017 by julian johnson 11 Quote Link to comment Share on other sites More sharing options...
Noobini Posted July 7, 2017 Share Posted July 7, 2017 hilarious !!! Thankyou !!! Quote Link to comment Share on other sites More sharing options...
mestela Posted July 7, 2017 Share Posted July 7, 2017 I feel a melbot style war is coming... Quote Link to comment Share on other sites More sharing options...
Sarayut112 Posted April 13, 2022 Share Posted April 13, 2022 Thank you guys, you're awesome! just one question, how could we give it the direction, let's say I have curve path and want it to follow that? Quote Link to comment Share on other sites More sharing options...
mestela Posted April 14, 2022 Share Posted April 14, 2022 You could try the technique in this example: https://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#RBD_coin_follow_path 1 Quote Link to comment Share on other sites More sharing options...
Keshaw singh Posted May 23, 2022 Share Posted May 23, 2022 goonna try this today 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.