Function to set the scope for 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.
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 scope is defined by the Element object that you assign to the scope
argument.Arguments
qc The index of the quick control. number assignments The index of the quick control assignment. number scope The Element object to be used as scope. Element Example
-- set the scope to the first zone that was found
layer = this.parent
zones = layer:findZones(true)
zone = zones[1]
qc = 1
assignment = 1
layer:setQCAssignmentScope(qc, assignment, zone)
See Also: setQCAssignmentParamId, setQCAssignmentMin, setQCAssignmentMax, setQCAssignmentCurve, setQCAssignmentMode, setQCAssignmentBypass, addQCAssignment, removeQCAssignment, getNumQCAssignments, getQCAssignmentParamId, getQCAssignmentScope, getQCAssignmentMin, getQCAssignmentMax, getQCAssignmentCurve, getQCAssignmentMode, getQCAssignmentBypass, Quick Control Assignment Modes
1 Comment
Sabine Pfeifer
proofread done