I think Curves is one of those properties where propertyValueType is PropertyValueType.CUSTOM_VALUE, which means scripting doesn’t have any access to the data. Maybe you could have the script apply a preset?
I’ve wondered if it’s possible to embed a preset in a script the way you can a graphic element, but I’ve never tried it.