2
$\begingroup$

How do I make this in the node editor? I don't get how to go around y=(-x)

enter image description here

$\endgroup$
3
  • 2
    $\begingroup$ Hello :). If you don't mind me asking, what are such equations in the node editor used for? I have honestly no idea. $\endgroup$ Commented Feb 9, 2020 at 9:29
  • 2
    $\begingroup$ @ᴊᴀᴄʜʏᴍᴍɪᴄʜᴀʟ ...for example .. procedural texturing $\endgroup$
    – Robin Betts
    Commented Feb 9, 2020 at 9:36
  • 2
    $\begingroup$ @RobinBetts Oh, thank you :). $\endgroup$ Commented Feb 9, 2020 at 9:48

1 Answer 1

4
$\begingroup$

enter image description here

Labelled 'Layout > Reroute' nodelets not necessary, but often helpful.

Alternatively, if you have complex expressions to convert, you might consider using @Rich Sedman's Node-Expressions add-on, which could generate a group like this:

enter image description here

It's best to be quite explicit with your bracketing.. In this example, when I didn't bracket the unary minus on x, the negative was applied to the whole expression, rather than binding to the variable. This is expected Python.. but maybe not obvious.

$\endgroup$

You must log in to answer this question.

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