ufoProcessSetParamLimits

void ufoProcessSetParamLimits(
   ufoProcess process_instance,
   int param_index,
   ufoChannelIndex channel_index,
   double minimum,
   double maximum,
   ufoLimits Clamp clamp_flags);

Refer to the following table for command descriptions:

Command

Description

param_index

index (0..number_parameters-1) of parameter

channel_index

index of channel to which limits will be applied (usually 0)

minimum

lower limit

maximum

upper limit

clamp_flags

sets clamping on lower or upper limits

ufoChannelIndex

see ufoTypes.h for complete set of definitions for channel indices

ufoLimitsClamp

 

ufoLimitsClampNone

no clamping

ufoLimitsClampMin

clamp lower limit only

ufoLimitsClampMax

clamp upper limit only

ufoLimitsClampBoth

clamp both limits

ufoProcessSetParamLimits sets limits and clamping for a parameter. This function should be called for parameters of types ufoIntegerParam, ufoFloatParam, ufoAngleParam, ufoRectangleParam, ufoPos3dParam, ufoScale3dParam, ufoPos2dParam, and ufoScale2dParam, where limits must be defined for user interface purposes. clamp_flags can be set to optionally clamp or not clamp values when they are inquired.

ufoProcessSetParamLimits maybe called within ufoProcessDefine after ufoProcessParamDefine.



Autodesk Softimage v7.5