Class: DuAELayerSelector

DuAELayerSelector

For use with DuScriptUI.
A drop down selector.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.layerSelector to create a Selector.
The Selector inherits the Group object from ScriptUI and has all of its properties and methods.

new DuAELayerSelector()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15781
Properties:
Name Type Argument Default Description
index int <optional>
0 The current layer index, 0 if None
comp CompItem | null <optional>
null The composition linked to the selector.
If set to null, the seletor will use the current active composition.
selectedOnly boolean <optional>
false True to list only selected layers in the composition
onChange Selector~onChange The function to execute when the index changes.
You can set your own function here, which must take no argument.
The method is called after the index has changed.

Methods

staticDuAELayerSelector.refresh()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15813
Force the refresh of the layer list

staticDuAELayerSelector.setCurrentIndex(index)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15805
Changes the selection and the current layer index of the selector
Name Type Description
index int The new layer index

Type Definitions

onChange()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15798
The function to execute when the index changes.
The method is called after the index has changed.