Name

OfxParameterSuiteV1::paramCopy — Copies one parameter to another, including any animation etc...

Synopsis

#include "ofxParam.h" 
OfxStatus (*paramCopy) ( OfxParamHandle paramTo ,
  OfxParamHandle paramFrom ,
  OfxTime dstOffset ,
  const OfxRangeD * frameRange ) ;
 

Arguments

  • paramTo - parameter to set
  • paramFrom - parameter to copy from
  • dstOffset - temporal offset to apply to keys when writing to the paramTo
  • frameRange - if paramFrom has animation, and frameRange is not null, only this range of keys will be copied

Description

This copies the value of paramFrom to paramTo , including any animation it may have. All the previous values in paramTo will be lost.

To choose all animation in paramFrom set frameRange to [0, 0]

V1.3: This function can be called the kOfxActionInstanceChanged action and during image effect analysis render passes. V1.4: This function can be called the kOfxActionInstanceChanged action

\pre

  • Both parameters must be of the same type.

\return