# `GSPath setLocked:shadow:withPoint:`

*Instance Method*

Moves an off-curve node by an offset, constrained using a corresponding node in another path.

## Declaration

```swift
func setLocked(_ node: GSNode, shadow shadowNode: GSNode, with aPoint: NSPoint)
```

```objc
- (void) setLocked:(GSNode *) node shadow:(GSNode *) shadowNode withPoint:(NSPoint) aPoint;
```

```python
setLocked_shadow_withPoint_(node: GSNode, shadowNode: GSNode, aPoint: NSPoint)
```

## Parameters

- `shadowNode` — The corresponding node at the same index in the other path.
- `aPoint` — The offset by which to move the node.

## Discussion

The paths must have corresponding node structures.

## See Also

### Editing Nodes

- [`GSPath setSmooth:withCenterPoint:oppositePoint:`](/Core/GlyphsCore/GSPath/setSmooth:withCenterPoint:oppositePoint:) — Aligns a node opposite a point about a center point while preserving its distance from the center point.
- [`GSPath setSmooth:withCenterNode:oppositeNode:`](/Core/GlyphsCore/GSPath/setSmooth:withCenterNode:oppositeNode:) — Aligns a node opposite another node about a center node while preserving its distance from the center node.
- [`GSPath setMirrored:withCenterPoint:oppositePoint:`](/Core/GlyphsCore/GSPath/setMirrored:withCenterPoint:oppositePoint:) — Moves an off-curve node to the reflection of a point about a center point.
- [`GSPath checkConnections`](/Core/GlyphsCore/GSPath/checkConnections) — Normalizes node types and connections based on adjacent nodes.
- [`GSPath checkConnectionForNode:`](/Core/GlyphsCore/GSPath/checkConnectionForNode:) — Sets a node connection based on the alignment of adjacent nodes.
- [`GSPath setLocked:withPoint:`](/Core/GlyphsCore/GSPath/setLocked:withPoint:) — Moves an off-curve node by an offset while preserving its locked direction.

