Documentation / Node reference / geo nodes
geo/AttributeCast
Converts an attribute to another type.
Attributes
FLOAT and U32 convert to each other, and each float vector to the integer vector of its width. FLOAT, VECTOR2 and VECTOR3 also convert to their float64 types. Floats round to the nearest whole number. On the stage, only FLOAT and U32 convert. Edges are a CAD body's, and a lone curve is one edge.
Parameters
| Name | Type | What it does |
|---|---|---|
| entity | UInt8 POINT · EDGE · PRIMITIVE · OBJECT · STAGE | What carries the attribute. |
| name | AttributeName | Attribute to cast. |
| toGeoType | UInt8 FLOAT · INDEX · U32 · VECTOR2 · VECTOR3 · VECTOR4 · VECTOR2_64 · VECTOR3_64 · FLOAT64 · VECTOR2_U32 · VECTOR3_U32 · VECTOR4_U32 | Type to cast to. |
| toObjectType | UInt8 BASE_NODE_HANDLE · BOOL · COLOR · COLOR4 · FLOAT · FLOAT64 · MATERIAL_HANDLE · NETWORK_PANEL_SCENE_OBJECT_CONFIG · S8 · S32 · STRING · U8 · U32 · VECTOR2 · VECTOR2_64 · VECTOR2UINT · VECTOR3 · VECTOR3_64 · VECTOR3UINT · VECTOR4 | Type to cast to. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.