Page MenuHome

Use implicit conversion when writing to built-in attributes
Closed, ResolvedPublicTO DO

Description

Normally the type of a node's output attribute will change based on the operation.
For example, the attribute color ramp node will always upgrade the type of the output to "Color".
However, the type of built-in attributes cannot change, so the writing fails.

There are two options to solve this:

  1. Change every node that writes an attribute to support writing with all types
  2. Use implicit conversion when writing to a built-in attribute

The second option should be implemented for this task, which will likely involve changing OutputAttributePtr.
The first option can be implemented for some nodes later if the implicit conversion ends up being a performance bottleneck.

Event Timeline

Hans Goudey (HooglyBoogly) renamed this task from Use implicit conversionw when writing to built-in attributes to Use implicit conversion when writing to built-in attributes.Mar 16 2021, 4:34 PM
Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.
Hans Goudey (HooglyBoogly) created this task.

D10745: Geometry Nodes: Use implicit conversion when writing to built-in attributes

Uses same method as Convert Node but slotted into the save() function.

Dalai Felinto (dfelinto) closed this task as Resolved.Apr 26 2021, 12:19 PM