2
$\begingroup$

I am trying to create an animation similar with this image: enter image description here

and this is what I created: enter image description here

using this node: enter image description here

I'd like the colors to remain in same position while the helix spring is rotating.

This is my result, but I am not satisfied, the colors should be similar with first picture and remain in same position while the helix is rotating: enter image description here

$\endgroup$
1
  • 2
    $\begingroup$ Assuming this is a curve object, you can use UV coordinates. $\endgroup$ May 19 at 14:12
3
$\begingroup$

As @Allen Simpson has commented:

If you use a single cyclic Bezier curve, given thickness with its native Bevel, (set in its Data tab > Geometry panel,) it is automatically mapped 0->1 in U along its length.

So a node arrangement like this can set the color-ramp's range of colors along its length:

enter image description here

The Add and Wrap nodes are optional: changing the 'Add' value shifts the whole range along the curve.

enter image description here

$\endgroup$
8
  • $\begingroup$ ok, Robin, your model looks a liiiiiiiiiiiiiiiitle bit better than mine...i have to admit that! :D $\endgroup$
    – Chris
    May 20 at 8:43
  • 1
    $\begingroup$ @Chris.. it's a fudge. I have to confess I haven't found the way to make the connections between spirals at an exact tangent. Challenge for you :D. $\endgroup$ May 20 at 9:11
  • 1
    $\begingroup$ @Chris I'm learning every day, too. My main reason for being here. External spiral: Curve > Spheric. Internal spiral: Single vert, Screw modifier, so adjustable. Eyeballed, converted to curve, joined, smoothed. Yuk. I want a nice clean mathematical way :D $\endgroup$ May 20 at 9:26
  • 1
    $\begingroup$ so you cleverly rotated your object to hide your ugly connection? ;) :D Damn...you are so clever!!! ok...well...i should not complain about ugly ... ;) $\endgroup$
    – Chris
    May 20 at 10:34
  • 2
    $\begingroup$ @Chris Yup! I used to work in the film industry. Stop-motion animation on to 35mm, Important lesson ?... It's all 2D in the end. Only the pixels matter. Whatever it takes. :D $\endgroup$ May 20 at 11:14
2
$\begingroup$

if your spiral is in the origin you can use this node setup:

enter image description here

Play with the threshold to get your desired result.

and you get this: (seen from above)

enter image description here

what the setup does is: it calculates the length (xx + yy) and checks whether it is inside a given range (threshold) and if it is, it takes the first colorramp, else the second.

sideview:

enter image description here

sorry for my bad modelling. Modelling is not my strength :(

if you don't get this to work, please provide your blend file, then i can adapt it especially to your needs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.