| 1234567891011121314151617181920212223242526272829303132333435363738 |
- return {
- summary = 'Get the children of a node.',
- description = [[
- Given a parent node, this function returns a table with the indices of its children.
- ]],
- arguments = {
- index = {
- type = 'number',
- description = 'The index of the parent node.'
- },
- name = {
- type = 'string',
- description = 'The name of the parent node.'
- }
- },
- returns = {
- children = {
- type = 'table',
- description = 'A table containing a node index for each child of the node.'
- }
- },
- variants = {
- {
- arguments = { 'index' },
- returns = { 'children' }
- },
- {
- arguments = { 'name' },
- returns = { 'children' }
- }
- },
- notes = 'If the node does not have any children, this function returns an empty table.',
- related = {
- 'ModelData:getNodeParent',
- 'ModelData:getRootNode',
- 'Model:getNodeChildren'
- }
- }
|