1
$\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$
  • 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$ – Jachym Michal Feb 9 at 9:29
  • 2
    $\begingroup$ @ᴊᴀᴄʜʏᴍᴍɪᴄʜᴀʟ ...for example .. procedural texturing $\endgroup$ – Robin Betts Feb 9 at 9:36
  • 2
    $\begingroup$ @RobinBetts Oh, thank you :). $\endgroup$ – Jachym Michal Feb 9 at 9:48
3
$\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.

| improve this answer | |
$\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.