Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt
Panel

setName(name)

Description

Function to change the name of an element in the

program tree

Program Tree.

Available in: Controller.

Arguments

nameThe new name for the element.string

Example

Code Block
-- print current name of the script module
print(this.name)
-- set the name of the script module to "My 

...

Element"
this:setName("My Element")
-- print the new name of the script module
print(this.name)