moneitor Posted July 26, 2016 Share Posted July 26, 2016 Hi all, I am wondering how can I measure the length of a constraint inside pops, I need to compare it against the original restlength attribute in order to change some parameters based on rules, is it possible through vex? Thank you very much. Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted July 26, 2016 Share Posted July 26, 2016 1 hour ago, moneitor said: Hi all, I am wondering how can I measure the length of a constraint inside pops, I need to compare it against the original restlength attribute in order to change some parameters based on rules, is it possible through vex? Thank you very much. Because constraints are just polylines between points you can use the nearpoint o neighbors vex functions to iterate through the points you want to compare the distances (modo chambon ), or you can already use the arrays created internally by the grains solver (way faster). Then if you want to manually break a constraint, you can just set your weight attribute for the constraint. Hope that this helps! Saludos! 1 Quote Link to comment Share on other sites More sharing options...
moneitor Posted July 26, 2016 Author Share Posted July 26, 2016 Hey Viejo Alejandro, thanks for your answer, helps me a lot, I forgot constraints were just primitive lines, modo chambon rules. I own you another pola. Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted July 26, 2016 Share Posted July 26, 2016 24 minutes ago, moneitor said: Hey Viejo Alejandro, thanks for your answer, helps me a lot, I forgot constraints were just primitive lines, modo chambon rules. I own you another pola. jejejejej Todo Bien!! Saludos!! 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.