Using the Blender Python API, I am creating a float array custom property for the selected object using the following code:
import bpy
obj = bpy.context.active_object
float_array = "Paint - Custom Color"
obj[float_array] = (1.0, 1.0, 1.0)
obj.id_properties_ensure()
property_manager = obj.id_properties_ui(float_array)
property_manager.update(
default=(1.0, 1.0, 1.0), min=0.0, max=1.0, soft_min=0.0, soft_max=1.0
)
Is there a way to change the default subtype value from 'Plain Data' to 'Linear Color'