Jump to content
bobbybob

Path deform - loop geo on curve

Recommended Posts

Hi

Is it possible to loop geometry (like a tube) on a closed curve (like a circle)

When I use path deform the start and end of the tube continues in a "straight line", at the "end/start" of the guiding curve. I would like to create a "loop" where the tube continues it's deformation around and around.

loop.hip

geo_loop_example_0001_edit.png.3bb8ba7510fcf6d095d743601a479c4e.pnggeo_loop_example_0002_edit.png.93d2f73947fba4a50e8e2fc432843364.png

Share this post


Link to post
Share on other sites

Hi,

probably it is not possible with the path deformer, but with the new "orientation along curve" node you can create your own basic path deformer with a few lines of VEX. If you want to loop, you can apply %1 on the (curve)u parameter. Here is an example.

loop_path.hipnc

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, Aizatulin said:

Hi,

probably it is not possible with the path deformer, but with the new "orientation along curve" node you can create your own basic path deformer with a few lines of VEX. If you want to loop, you can apply %1 on the (curve)u parameter. Here is an example.

loop_path.hipnc

I havze to do a Vex similar solution but not the same reason. One thing i found counter intuitive to maybe not possible is to be sure the geo will deform on all the curve lenght. So if i give 20 curves with different lenght, i will also adjust to fit.

I can't make it with the path deform, quite a relatively complex node if you dive inside but well with few line sof vex, i get what 50 nodes didn't and faster :)

  • Like 1

Share this post


Link to post
Share on other sites

:)

 

I like the new path defomer (at least there is one), it offers a lot of functionality, but sometimes there are little things, which are missing and it is hard reimplement them into the existing one. On the other side, VEX combined with low level operators is always a good fall back if you need flexibility.

Share this post


Link to post
Share on other sites

I wish SideFX could go all the way with their tools, clearly they had looping in mind when creating the Path Deform SOP, this is from the docs:

Quote

 

Copy Up Control to End | This will set the up vectors at both the start and end of the curve to be as close as possible to the Curve Up Control. This is useful when the curve is meant to be a loop.

 

 

Share this post


Link to post
Share on other sites

The curve you are feeding into the path deform is not closed. If it was closed it would shade as a polygon.
If you remove, the 'ends' and 'fuse' nodes it works as you would expect.
You could also put an 'ends' node after the fuse with the option 'Close Straight' in 'Close U' to close it again.

 

  • Like 1

Share this post


Link to post
Share on other sites

@stheos, thanks, you're right.

The distinction between a closed and open curve here is unclear, since the 'fuse' does connect the curve end to end. I find it at least non-obvious, it's not in the docs and it cause me quite some time problem-searching.

Edited by smuseus
typo

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

×