Jump to content

Grains restlength vs constraint length


moneitor

Recommended Posts

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.

Link to comment
Share on other sites

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!

  • Like 1
Link to comment
Share on other sites

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!!

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...