Count(handle)
Description
Section titled âDescriptionâThe Count function returns an integer number indicating the number of child objects.
Arguments
Section titled âArgumentsâ-
Handle:
The function takes a handle of the type âlight_userdataâ as an argument.
It can be omitted when using the colon notation on an object.The Colon Notation is a way to omit the handle as the first argument when using the Object functions.
This is the general syntax with the colon notation: object:function()
This is the general syntax with standard handle notation: object.function(object)
Learn more in the Lua Functions - Object API topic.
- Integer:
The function returns an integer indicating the number of children of the object.
Examples
Section titled âExamplesâThis example prints the selected sequenceâs number of children (cues).
| Copy CodeLua |
| ``` |
| return function() |
local numberChildren = SelectedSequence():Count()Printf("The selected Sequence has " .. numberChildren .. " cues.")end