fnPH = IECoreMaya.FnParameterisedHolder(self.node[0])
curves = cmds.getAttr("%s.parm_curve"%self.node[0])
with fnPH.parameterModificationContext():
curve_parm = fnPH.getParameterised()[0].parameters()["curve"]
print repr(curve_parm.getValue())
v = curve_parm.getValue()
v.append(shape_c[0])
curve_parm.setValue(v)
when I use with fnPH.parameterModificationContext(): maya crashes immediately, if I do not use with fnPH.parameterModificationContext(): the UI does not update and maya crashes when I refresh the Op.