0
$\begingroup$

I have the following where enter image description here

this point i wanted it to follow the curve string position

enter image description here

This is the setup I have for it, the sample curve node is throwing an error saying Instance of input geometry are ignored which im guessing is causing an error, does anyone know wht I can do for this?

$\endgroup$
3
  • $\begingroup$ try realize instances before sample curve $\endgroup$
    – Chris
    Mar 14 at 5:32
  • $\begingroup$ Making a point follow the curve is a quite simple setup, what's more problematic maybe is getting it moving in a way you want it... for example, start at the bottom left and move to the top right. $\endgroup$ Mar 14 at 7:50
  • $\begingroup$ What I did not incorporate in my answer was converting the curve to a mesh with a profile curve to give it thickness and then back to a curve... because I do not know if you want the point to move along the outside of the thickened curve? That will be a quite messy movement I guess with a high resolution profile curve. $\endgroup$ Mar 14 at 8:34

1 Answer 1

3
$\begingroup$

Getting a point to move along a curve is quite easy. First of all it is important that you use Realize Instances as @Chris mentioned in the comments, because from the String to Curves node's output you only get instances from which you cannot sample any position.

After realizing, you can use a Sample Curve node to get the Position anywhere on the curve(s), just by setting the Factor from 0 (start of the curve) to 1 (end of the curve). The important thing here is to check the option All Curves, since the text is composed of multiple curves/splines. With this option enabled, the factor 0 to 1 goes from the start of the first spline to the end of the last spline. Otherwise 0 to 1 would only be start and end of the spline with a given index.

With a Points node plugged into a Set Position node you can now use the Position output of the Sample Curve node to place the point at a certain position on the curve, given by the Factor. Animating the Factor moves the point along the curve.

nodetree for point on curve

The only problem however is the way the point moves along the curves. Fortunately it moves along the characters from the first to the last, but within each letter the direction seems a bit weird (at least in my opinion), as you can see in the animation below. I'll leave this answer to be improved by anybody who has a good idea how to change the spline's direction, so that it maybe starts at the top left or bottom left of the H instead of the right side going to the left. On the other characters it start left, maybe it is dependent on the font so I will not bother a lot about it now, the general movement along curves is there.

point moving along curves

Oh yeah, maybe it is the the font. With a regular Arial font the movement looks less weird i.e. it starts at the bottom left of a character.

different font

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .