Name

OfxParameterSuiteV1::paramSetValue — Sets the current value of a parameter

Synopsis

#include "ofxParam.h" 
OfxStatus(*paramSetValue)(OfxParamHandle paramHandle,
 ...);
 

Arguments

  • paramHandle - parameter handle to set value in
  • ... - one or more variables of the relevant type to hold the parameter's value

Description

This sets the current value of a parameter. The varargs ... argument needs to be values of the relevant type for this parameter. Note that params with multiple values (eg Colour) take multiple args here. For example...

ofxHost->paramSetValue(instance, "myDoubleParam", double(10));
ofxHost->paramSetValue(instance, "myColourParam", double(pix.r), double(pix.g), double(pix.b));

\note paramSetValue should only be called from within a kOfxActionInstanceChanged or interact action.

Returns