2
$\begingroup$

I have a setup like this: enter image description here

And i want to scale UV Sphere depending on its position on Z axis for example. With attribute node that was done in 1 operation and now i cannot find solution, using Separate XYZ and Scale Instances in any configuration.

$\endgroup$

1 Answer 1

6
$\begingroup$

Four you example, just use the output of the Noise texture to drive the scale of the Instance on Points Node, since it already drives the Z location. Here's a crude version:

Use the noise texture for scale

Since you want to keep the sphere shape, plug all the noise value into all three sockets of a Combine XYZ and use that to drive scale.

I didn't put any math in the path, but yo can add math nodes to control the range of scales.

$\endgroup$
2
  • 2
    $\begingroup$ You don't need the Combine XYZ nodes if you don't want to combine different values. Plugging a float value into a vector socket automatically enters the float into all fields of the vector. $\endgroup$ Jan 17 at 22:22
  • $\begingroup$ Sure, but note that I mentioned you could add math nodes. I wanted to make it obvious you could control each dimension's scaling separately. $\endgroup$ Jan 18 at 0:29

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.