Synchronize "X" Value of Mapping Node with "Y" and "Z" in Shader

I want to create a script in the shader that synchronizes the “X” value of the selected “Mapping” node with its “Y” and “Z” values. I’m not sure how to achieve this.
Could someone please help me?
thank you.

You can plug a single value into a vector node, and it will be applied to all three parts.

image

Alternatively, you can use Combine XYZ.

image

3 Likes