Copies an attribute from one geometry to another.


## Description

This copies an attribute from the right input geometry to the left input geometry.
Note that you can copy attributes that have different sizes. For instance:

- to copy only the y component of the position to a float attribute, set it as such:
	- srcOffset = 1
	- destOffset = 0
- to copy the y component to the z component of another attribute:
	- srcOffset = 1
	- destOffset = 2
- if you copy from a float to a float:
	- srcOffset = 0
	- destOffset = 0


## Parameters

<table>
<thead>
	<tr>
		<th>Name</th>
		<th>Type</th>
		<th>Description</th>
	</tr>
</thead>
<tr>
	<td>class</td>
	<td><div class='bg-orange-800 px-2 py-px text-white rounded-sm'>integer</div></td>
	<td>the attribute class (geometry or object)</td>
</tr>
<tr>
	<td>name</td>
	<td><div class='bg-purple-800 px-2 py-px text-white rounded-sm'>string</div></td>
	<td>name of the attribute to copy</td>
</tr>
<tr>
	<td>tnewName</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle if you want to copy to another name</td>
</tr>
<tr>
	<td>newName</td>
	<td><div class='bg-purple-800 px-2 py-px text-white rounded-sm'>string</div></td>
	<td>the new name of the attribute</td>
</tr>
<tr>
	<td>srcOffset</td>
	<td><div class='bg-orange-800 px-2 py-px text-white rounded-sm'>integer</div></td>
	<td>this defines which component the copy starts from. If you want to copy the whole attribute, leave it at 0. If you want to copy only the y component, set it to 1. If you want to copy the z component, set it to 2. Note that this only makes sense if you copy from an attribute that has enough components to copy from. So setting it to 2 (for z) to copy from a vector2 attribute will raise an error.</td>
</tr>
<tr>
	<td>destOffset</td>
	<td><div class='bg-orange-800 px-2 py-px text-white rounded-sm'>integer</div></td>
	<td>this defines which component the attribute is copied to</td>
</tr>
</table>