|
From: <fab...@fr...> - 2011-01-03 14:22:10
|
Hi, In the openfx 1.2 documentation, there is a parametric parameter example which uses the param instance to set the default values. http://openfx.sourceforge.net/Documentation/1.0/Reference/ch09s10.html // set a default curve, this example sets an invert OfxParamHandle descriptor; gParamHost->paramGetHandle(paramSet, "lookupTable", &descriptor, NULL); // ... and sets values using this instance (parametricParamAddControlPoint) But in the documentation of the "paramGetHandle" function, it's written: "You cannot call this in a plugin's describe function, as it needs an instance to work on." I'm not sure which part of the documentation is wrong. As it's clearly written about parametric parameter: "The major complication with these parameters is how to allow a plug-in to set values, and defaults. The default default value of a parametric curve is to be an identity lookup. If a plugin wishes to set a different default value for a curve, it can use the suite to set key/value pairs on the m descriptor of the param. When a new instance is made, it will have these curve values as a default." I suppose it's only a problem about "paramGetHandle" documentation. Regards, Fabien Castan |