Hi;
How could I create an offset copy of a curve?
something like this image:
Thanks.
Offset copy of a curve, how ..?
2372 4 1- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
- Andrea Sbabo
- Member
- 33 posts
- Joined: July 2017
- Offline
Hi,
one way could be to create a normalized vector pointing to the wanted direction. Duplicate the curve. Then add this vector multiplied by a float (which value is the desired offset) to the position.
The vector can't be unidirectional for all the points of course, but needs to be relative to the tangent of the curve (like the arrows in your second picture). The node called polyframe can help you on this. For example you can rotate a vector N as you prefer by using the generated tangent as axis.
one way could be to create a normalized vector pointing to the wanted direction. Duplicate the curve. Then add this vector multiplied by a float (which value is the desired offset) to the position.
@P = @your_direction_vector * chf("offset");
The vector can't be unidirectional for all the points of course, but needs to be relative to the tangent of the curve (like the arrows in your second picture). The node called polyframe can help you on this. For example you can rotate a vector N as you prefer by using the generated tangent as axis.
FX Artist - Scanline VFX
- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
-
- Quick Links