# 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 on other sites

you will want to use a solver sop.

##### Share on other sites

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

##### Share on other sites

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 on other sites

maybe not what you want, but carve also move points on a curve.

hehe, dance))

moveit_v02.hip

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

• 1

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

• 1

##### 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
• 1

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

++

Edited by yglemarec
• 2

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

++

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 on other sites

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

Edited by yglemarec
• 1

More fun

moveit_v04.hip

• 3
• 1

##### 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);```

Edited by jkunz07
• 5
• 1

## Create an account

Register a new account