Jump to content

Move Points


Recommended Posts

I'm trying to figure out how to move lets say point0 90% in Y towards point 1. When it moved 90% then move both point0 and point1 90% in Y to point2.

What im trying to create is theater curtains and I gotten pretty far, but I want to make a lil better.

I drew a picture which might make it easier to understand. You can also check out the file what I got so far, of course I would need to have better settings etc.

 

Any idea highly appreciated!

 

movepoints.png

curtain_test_002.hiplc

Edited by dfmn
Link to comment
Share on other sites

@f1480187 is it possible to give each point a little delay before they start moving again? something like this:

 

pointmove.gif

 

I can just do it by hand, but I also trying to learn get better at houdini so this is very good learning for me!

Edited by dfmn
Link to comment
Share on other sites

curtain_constraint_ramped.gif

Sure, it is easy with a ramp. Input geo here must have a point per meter of height, to match with seconds of @Time variable. You also could multiply @Time by desired meters per second value.

// Point wrangle.
float timeramp = floor(@Time) + chramp("timeramp", frac(@Time));
@P.y += max(0, timeramp - @P.y) + @ptnum/10.0;

 

curtain_constraint_ramped.hipnc

Edited by f1480187
  • Like 6
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...