Blender How-ToQuick answers, tested in Blender 5.3.0 and 5.2.2 LTSAI add-on
Blender how-to

How to Get One Vector Component by Index in Blender 5.3 (Get Vector Component Node)

In Blender 5.3, add the Get Vector Component node (press Shift + A, then Utilities › Vector › Get Vector Component in Geometry Nodes). Plug a vector into it and set Index: 0 gives X, 1 gives Y and 2 gives Z. Because the axis is a number, you can switch it from a value or a modifier input instead of rewiring a Separate XYZ node.

Mode
Geometry Nodes, Shader and Compositor editors
Menu
Utilities › Vector › Get Vector Component
Shortcut
Shift + A
AFTERAfter: Get Vector Component with Index 0 reads X, so the grid rises from one side to the other.
After: Get Vector Component with Index 0 reads X, so the grid rises from one side to the other.

Index picks the axis

On a flat 4 m grid, Index 0 read X and lifted the grid into a ramp from -2 m to +2 m along X.

Change the number, not the wires

Index 1 made the ramp follow Y instead; Index 2 read Z, which was 0 on the flat grid.

New in 5.3

Blender 5.2 LTS has no Get Vector Component node; there you use Separate XYZ and pick an output.

Before and after

BEFOREBefore: a flat grid with a Set Position node that does not move it yet.
Before: a flat grid with a Set Position node that does not move it yet.
AFTERAfter: Get Vector Component with Index 0 reads X, so the grid rises from one side to the other.
After: Get Vector Component with Index 0 reads X, so the grid rises from one side to the other.
A neon alley at night after the rain, built in Blender with the AI Scene Builder add-on
This alley was built inside Blender from typed requests

AI Scene Builder is a Blender add-on. You type what you want, and it builds it in your scene: buildings, neon signs, wet pavement, fog and lights. Nothing in this picture was modeled by hand.

Try it free: 15 credits, no card

On a phone now? The add-on runs in Blender on a computer. Send yourself the link and open it there.

Step by step (Blender 5.3)

  1. Open the Geometry Nodes editor on your object and press Shift + A.
  2. Choose Utilities › Vector › Get Vector Component and place it.Blender 5.2 LTS: In 5.2 LTS use Utilities › Vector › Separate XYZ instead.
  3. Connect a vector to its Vector input, for example the Position node.
  4. Set Index to 0 for X, 1 for Y or 2 for Z.Blender 5.2 LTS: In 5.2 LTS connect the X, Y or Z output of Separate XYZ.
  5. Use the output value anywhere, for example in the Z of a Combine XYZ that feeds the Offset of Set Position.

Other ways to do it

  • In the Shader Editor and the Compositor, press Shift + A: the node is in the Vector menu.
  • Press Shift + A and type Get Vector Component in the menu search.

Blender 5.2 LTS vs Blender 5.3

WhatBlender 5.2 LTSBlender 5.3
Get Vector Component nodeNot in Blender 5.2 LTS.In Utilities › Vector in Geometry Nodes, and in Vector in the Shader Editor and Compositor.
Choosing the axisSeparate XYZ gives X, Y and Z as three outputs; you choose by wiring one of them.Get Vector Component takes the axis as an Index number, which can itself come from another node.

Common snags

Index starts at 0

X is Index 0, not 1. Index 1 is Y and Index 2 is Z.

Index 3 gives 0

A vector has three parts. With Index 3 the node output was 0 everywhere on the test grid.

Flat objects have no Z

Reading Z (Index 2) from a flat plane gives 0 on every point, so nothing moves. Pick X or Y for flat shapes.

An AI add-on for Blender

AI Scene Builder is a Blender add-on that builds and edits your scene from one typed request, such as “a small wooden table with two chairs”. Each request can be undone in one click.

A lighthouse island at sunsetA lighthouse island at sunset built with the add-on from 10 typed requests. See every request →
Try it free: 15 credits, no cardBlender 4.2 or newer. Plans from $19 a month.

Questions

How do I get the X, Y or Z of a vector by number in Blender?

In Blender 5.3, use the Get Vector Component node and set Index: 0 for X, 1 for Y, 2 for Z. In Geometry Nodes, press Shift + A and open Utilities › Vector.

What is the difference between Get Vector Component and Separate XYZ?

Separate XYZ gives all three values as separate outputs. Get Vector Component gives one value, and the axis is chosen by its Index number, so another node or modifier input can change it.

Is Get Vector Component in Blender 5.2 LTS?

No. The node is new in Blender 5.3. In 5.2 LTS use Separate XYZ.

What the pictures show

  • Blender 5.3: before, a flat 4 m grid with 169 vertices had Z = 0 on every vertex.
  • Blender 5.3: Position into Get Vector Component with Index 0, then into the Z of Combine XYZ and Set Position Offset, raised the grid into a ramp from -2 m to +2 m along X.
  • Blender 5.3: Index 1 made the ramp follow Y, Index 2 and Index 3 gave 0, and setting Index back to 0 restored the X ramp.
  • Blender 5.3: the node is in Utilities > Vector in Geometry Nodes and in the Vector menu of the Shader Editor and Compositor.
  • Blender 5.2 LTS: the Get Vector Component node does not exist.