Lua 関数の Children は、オブジェクトの子のハンドル・テーブルを作成します。
この例では、選択されているデータプールの最初のシーケンスにあるキューの名前を返します。
local function main()
local mySequence = DataPool().Sequences[1] -- Stores the handle for sequence 1 in a variable.
local cues = mySequence:Children() -- Use the "Children()" funciton to store a table with all the children in a new variable.
for i = 1, #cues do -- For loop that uses the length operator on the cue variable.
Printf("Sequence 1 Child " .. i .. " = " .. cues[i].name) -- Text is printed for each child.
end
end
return main