question on mograph splinewrap deformer

On 07/11/2013 at 02:31, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   r14 
Language(s) :     C++  ;

Hi there,

i am currently facing a real strange behaviour. i am creating a mograph splinewrap deformer inside my plugin. generally everything looks fine but the deformation is behaving different (bottom in image). as soon as i make the plugin object editable and toggle the deformer off and on it looks like it should (top in image)

i am hoping that there is a solution. maybe it is that there is something wrong with my initialisation (maybe someone has the code for initializing all parameters of that deformer as the default)? i am not setting all parameters but the following:

      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_SPLINE),GeData(deformerSpline), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_RAIL_SPLINE),GeData(deformerRailSpline), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_STRENGTH),GeData(1), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_FROM),GeData(0), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_TO),GeData(1), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_RAIL_TARGET),GeData(true), DESCFLAGS_SET_0);  
      splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_SIZESTRN),GeData(1), DESCFLAGS_SET_0);  

any help fixing this behaviour is really appreciated.