Jump to content
Sign in to follow this  
avak

moving

Recommended Posts

Hi I have a closed nurbs curve, then resample node, now how can I for example in frame 2 say point1 go to point 2 , p2 to p3 p3 to p4 ,...and again in next frame this continues? so basically every next frame every point goes to its next point position ?

 

Share this post


Link to post
Share on other sites

you can use a sort node with "shift" parameter + this code in the offset : ($F-1)%npoints(0) 

Share this post


Link to post
Share on other sites

Thanks for your opinions,

Actually I am looking for a way so they move in 3d space rather than changing their point number,

mathematically if I want to move a point from one position to another position I should multiply its initial position to a vector (a direction)

please correct me if I am wrong. but how can I do it ?

moveit.hip

Share this post


Link to post
Share on other sites

@AntonieSFX , yes carve is an option, but I am looking for doing it in real 3d space. Thanks anyway

@fenser, thanks for you input, is there any way we can do this without the solver ?

Share this post


Link to post
Share on other sites
17 minutes ago, avak said:

@AntonieSFX , yes carve is an option, but I am looking for doing it in real 3d space. Thanks anyway

@fenser, thanks for you input, is there any way we can do this without the solver ?

maybe)

moveit_v03.hip

  • Like 1

Share this post


Link to post
Share on other sites

That's amzing for me fencer, I am very excited to learn houdini deep but just my mind is not good for math,  sorry for nob question how can I reveres the motion or spead up slow down it abit, I appreciate man

Share this post


Link to post
Share on other sites
2 hours ago, avak said:

That's amzing for me fencer, I am very excited to learn houdini deep but just my mind is not good for math,  sorry for nob question how can I reveres the motion or spead up slow down it abit, I appreciate man

Sorry, I'm away from pc, there is should be parameter "spee" (speed)), play with it, try negative as well.

  • Thanks 1

Share this post


Link to post
Share on other sites

hold it right there....you guys should inspect things more carefully.

open up file moveit_v03, display point numbers, scrub....you'll see the numbers SHIFTING....not just moving but also shifting...it does this after each segment increment.

Edited by Noobini
  • Like 1

Share this post


Link to post
Share on other sites

OUCH,...that's right Noobini, it is like cycling every each 11 frames. I my self have no idea how it happens.

Share this post


Link to post
Share on other sites

oh sorry for my missunderstanding , i need to rise up my english level for the futur :)

hope this file will help you ... even if fencer/noobini have ever done the job : just pushing further my "sort way mistake" to achieve same result with differents nodes 

++

moveit-sort way.hiplc

Edited by yglemarec
  • Like 2

Share this post


Link to post
Share on other sites
16 minutes ago, yglemarec said:

oh sorry for my missunderstanding , i need to rise up my english level for the futur :)

hope this file will help you ... even if noobini has ever done the job : just pushing further my "sort way mistake" to achieve same result with differents nodes 

++

moveit-sort way.hiplc

Thanks for the input I found something if you look at frames 1 to 10, the point number 89 is not moving , and moves after frame 11. then point 0 stops between frames 11 to 21 and this cycle continues.

 

 

Share this post


Link to post
Share on other sites

you're right !!! there are 2 points at this position. use a fuse node after your resample1 node.

Edited by yglemarec
  • Like 1

Share this post


Link to post
Share on other sites

Here's one more way:

int primnum;    vector primuv;
xyzdist(0, @P, primnum, primuv);
primuv.x += @Time * chf('speed');
primuv.x %= 1.0;
@P = primuv(0, 'P', primnum, primuv);

moveit_v05.gif.8d84d8f6a29713ffc83a18f7bd13bc4a.gif

moveit_v05.hip

Edited by jkunz07
  • Like 5
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×