4
$\begingroup$

I'm trying to resample a simple curve but with uneven space between the instances. If I'm using the Length or Count option, the distance between the instances is always the same. Is there a way to vary the distance between the instances by a small random factor?

I attached the screenshot of a simple example below. I want the space between the cubes to be different depending on a random factor.

Curve evenly resampled

$\endgroup$
6
  • 1
    $\begingroup$ You want this for something simple like this straight line or all curves in general? $\endgroup$ Oct 19, 2022 at 6:30
  • 5
    $\begingroup$ This answer is related. Just replace the 'Power' cluster with a 'Random' cluster of your own.. $\endgroup$
    – Robin Betts
    Oct 19, 2022 at 9:23
  • 2
    $\begingroup$ Additionally to the linked answer I suggest that instead of plugging the output of the Resample Curve into the Sample Curve node I'd rather use the original curve. This way you make sure that even with a low resample count the instances are distributed on the curve, not slightly displaced. $\endgroup$ Oct 19, 2022 at 10:03
  • 2
    $\begingroup$ @GordonBrinkmann MarkusVB passed on your comment.. You're absolutely right ....thanks! I've corrected the linked answer. :) $\endgroup$
    – Robin Betts
    Oct 19, 2022 at 16:44
  • 2
    $\begingroup$ @RobinBetts You're welcome, I didn't want to edit your answer on my own and actually I thought it to be not so important in your solution, since there you have a curve that's built from those resampled points and you can see the shape. While in this case where you only have objects instanced on points that should be shifted back and forth on the curve, it might not be so obvious why some cubes seem to go astray from the path. Especially if you a smooth bending curve and maybe only want 5 instances placed along it. $\endgroup$ Oct 20, 2022 at 5:47

2 Answers 2

7
$\begingroup$

Thank you for your quick answers! I want it to work on curves on general. I combined and implemented all of your ideas and it works now. I put my solution below if anyone has the same problem. Thanks!

Uneven space between instances

$\endgroup$
1
  • 1
    $\begingroup$ That's mostly as I would have done it as well. The only difference in my setup was I used a Random Value going from a small negative value to a small positive value and added this to the Map Range result. But multiplying is actually smarter than my idea ;) $\endgroup$ Oct 20, 2022 at 5:54
1
$\begingroup$

Thanks, My simple derivate of your examples.

enter image description here

$\endgroup$

You must log in to answer this question.

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