---
title: "init(source:name:weight:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/blendtreesourcenode/init(source:name:weight:)"
---

# init(source:name:weight:)

Creates a node that defines an animation within a tree of other blend nodes.

## Declaration

```swift
init(source: any AnimationDefinition, name: String = "", weight: BlendWeight = .value(1.0))
```

## Parameters

- `source`: The blend node’s animation.
- `name`: A textual name for the blend node.
- `weight`: A normalized percentage that designates how much effect this node has compared to peer nodes.
