Instance Method

addPercentSliderWithName:parmId:defaultValue:parameterMin:parameterMax:sliderMin:sliderMax:delta:parmFlags:

Creates a floating point slider that represents a percentage parameter and adds it to the plug-in's parameter list.

Required.

Declaration

- (BOOL)addPercentSliderWithName:(NSString *)name parmId:(UInt32)parmId defaultValue:(double)defaultValue parameterMin:(double)min parameterMax:(double)max sliderMin:(double)sliderMin sliderMax:(double)sliderMax delta:(double)sliderDelta parmFlags:(FxParameterFlags)flags;

Parameters

name

Name of the parameter in the user interface.

parmId

Unique identifier for a parameter. Used to retrieve, set, or validate the parameter.

defaultValue

Initial value for the parameter.

min

Minimum value for the parameter.

max

Maximum value for the parameter.

sliderMin

Minimum value for the parameter's slider control.

sliderMax

Maximum value for the parameter's slider control.

sliderDelta

Step value added or removed when the slider is moved.

flags

Flags that encode various state values for the parameter. See FxParameterFlags for the possible values.

Return Value

YES if the application successfully creates a floating point slider parameter; otherwise NO.

Discussion

A parameter value of 1.0 corresponds to a slider value of 100%.

See Also

Adding Parameters

- addPathPickerWithName:parmId:parmFlags:

Creates a parameter for choosing an image mask path.

Required.