Function to set the maximum 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, Available in: Controller The value range of the maximum value is always 0 to 100 %, even if the type of the quick control assignment is set to Relative or Switch Relative.
Description
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 max
argument sets the maximum value of the quick control assignment.Arguments
qc The index of the quick control. number assignment The index of the quick control assignment. number max The maximum value to be set. number Example
-- set the maximum 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
qcMax = 75
else
qcMax = 100
end
layer:setQCAssignmentMax(qc, assignment, qcMax)
See Also: setQCAssignmentParamId, setQCAssignmentScope, setQCAssignmentMin, setQCAssignmentCurve, setQCAssignmentMode, setQCAssignmentBypass, addQCAssignment, removeQCAssignment, getNumQCAssignments, getQCAssignmentParamId, getQCAssignmentScope, getQCAssignmentMin, getQCAssignmentMax, getQCAssignmentCurve, getQCAssignmentMode, getQCAssignmentBypass, Quick Control Assignment Modes
4 Comments
Sabine Pfeifer
was bedeutet denn
depending on the mode im Code-Beispiel? Welchen Mode?
Matthias Klag
Sorry, Ich meinte "type". Hab's geändert.
Sabine Pfeifer
ich hab's in der Info auch noch in Type geändert
Sabine Pfeifer
proofread done