2
$\begingroup$

I have a model that I'm trying to offset on the X axis. The model is separated into two different vector groups. I want the left half of the model to move in the negative direction on the X axis while the right half of the model moves in the positive direction. Ideally I would be able to control all of this with one slider.

enter image description here

Is there a way to invert the value of one of these nodes? I want them to always be offset by the same amount, just in opposite directions.

enter image description here

Is it possible to link these two vector math nodes together somehow so that when a slider is used, one vector is offset by -1 while another is offset by +1?

$\endgroup$
1
  • 1
    $\begingroup$ add node "Scale",and set the value to -1. $\endgroup$
    – NatureK
    Commented Mar 15, 2022 at 14:06

1 Answer 1

3
$\begingroup$

There are many ways to do this. One flexible way that I like is to use an Input node for the slider. Feed it directly to one of the Vector math nodes. Feed it to a Math node set to Multiply and use -1 as the multiplier. In this version I've added a combineXYZ node for flexibility:

Node group described above

This way, the Input slider directly drives both Add nodes but in opposite directions.

$\endgroup$
2
  • $\begingroup$ THANK YOU! This is exactly what I was trying to do. $\endgroup$
    – CosmicVfx
    Commented Mar 15, 2022 at 18:11
  • $\begingroup$ @CosmicVfx You're very welcome. $\endgroup$ Commented Mar 15, 2022 at 18:58

You must log in to answer this question.

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