Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt


Panel
setQCAssignmentMin(qc, assignment, min)

Description

Function to set the minimum value of the specified quick control assignment. The quick control assignment is determined by the Layer object, the index of the quick control and the index of the assignment itself. For example, this.parent defines the parent layer of the script module as the layer that contains the quick control. The qc argument is the index of the quick control and the assignment argument is the index of the assignment. The indices of the quick controls and the assignments both start counting from 1. The  min argument sets the minimum value of the quick control assignment.

Available in: Controller.

Arguments

qcThe index of the quick control.number
assignmentThe index of the quick control assignment.number
minThe minimum value to be set.number


Info

The value range of the minimum value is always 0 to 100 %, even if the

...

mode of the quick control assignment is set to Relative or Switch Relative.

Example

Code Block
-- set the minimum value of the quick control assignment depending on the 

...

mode
layer = this.parent
qc = 1
assignment = 1

...

qcMode = layer:

...

getQCAssignmentMode(qc, assignment)

if (

...

qcMode == 

...

QCAssignmentMode.relative or 

...

qcMode == 

...

QCAssignmentMode.switchRelative) then
    qcMin = 25
else
    qcMin = 0
end
  
layer:setQCAssignmentMin(qc, assignment, qcMin)



Panel

See Also: setQCAssignmentParamId, setQCAssignmentScope, setQCAssignmentMax, setQCAssignmentCurve, setQCAssignmentMode, setQCAssignmentBypass, addQCAssignment, removeQCAssignment, getNumQCAssignments, getQCAssignmentParamId, getQCAssignmentScope, getQCAssignmentMin, getQCAssignmentMax, getQCAssignmentCurve, getQCAssignmentModegetQCAssignmentBypass, Quick Control Assignment Modes 

...