Name

OfxParametricParameterSuiteV1::parametricParamSetNthControlPoint — Modifies an existing control point on a curve

Synopsis

#include "ofxParametricParam.h" 
OfxStatus(*parametricParamSetNthControlPoint)(OfxParamHandleparam,
  int curveIndex,
  doubletime,
 OfxParamHandle param, int curveIndex, double time,, int nthCtl double key, double value, bool addAnimationKey,
  int nthCtl doublekey,
  doublevalue,
  booladdAnimationKey);
 

Arguments

  • param -
  • curveIndex -
  • time -
  • - addAnimationKey if the param is an animatable, setting this to true will

    force an animation keyframe to be set as well as a curve key, otherwise if false, a key will only be added if the curve is already animating.

  • key -
  • value -
  • addAnimationKey -

Description

This modifies an existing control point. Note that by changing key, the order of the control point may be modified (as you may move it before or after anther point). So be careful when iterating over a curves control points and you change a key.

Returns