Other Content

Table Of Contents
Writing Lua Scripts
The Script Editor allows you to create and deliver dynamically linked
simulations, powerful and flexible utilities, and other educational content for
exploring math and science concepts. When you open a document containing
a script, the script runs automatically as programmed. To see the running script
application, the page containing the script application must be active.
The Script Editor is directed toward teachers and other authors who are
comfortable working in a Lua scripting environment. Lua is a powerful, fast,
lightweight scripting language that is fully supported in TI-Nspire and
PublishView documents. Documents containing script applications can be
opened on TI-Nspire handhelds and in the TI-Nspire Document Player. The
script application runs on a handheld or in Document Player, but you cannot
view or edit the script.
Note these resources for using the Script Editor and creating scripts:
Press F1 to access the TI-Nspire help, which includes the Script Editor
help.
Press F2 for additional TI-Nspire™ resources such as scripting samples
and a link to the TI-Nspire Scripting API library. (This information is also
available at education.ti.com/nspire/scripting.)
Go to lua.org for more information about Lua.
Overview of the Script Editor
With the Script Editor, you can insert, edit, save, run, and debug script
applications inTI-Nspire (.tns files) and Publishview (.tnsp files) documents.
Script applications function within documents, problems, and pages the
same way that other TI-Nspire applications do.
When you create a new document or open an existing document, you can
insert or edit a script application within a page or within a work area of a
split page.
In a split page layout, you can add a script application to each work area of
a page. A page can be split into a maximum of four quadrants.
Images can be added to script applications. See the
Inserting Images
section.
Writing Lua Scripts 521