Difference between revisions of "Addons"
Chris Monson (Talk | contribs) (→XML Structure) |
Chris Monson (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | =Introduction= | ||
+ | The Lightforge API allows you to create new tools, new input and output methods, automate complex operations, and much more. | ||
+ | |||
+ | Lightforge addons are written in IronPython. IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. It allows you to use both .Net and Python libraries and allows very tight integration between Lightforge and addons. For more information on IronPython you can visit [http://www.ironpython.net www.ironpython.net] | ||
+ | |||
+ | |||
=Structure= | =Structure= | ||
The file structure of a Lightforge addon is very simple. It consists of a folder with at least one required script file named base.py, and optionally a xml file named addonInfo.xml. | The file structure of a Lightforge addon is very simple. It consists of a folder with at least one required script file named base.py, and optionally a xml file named addonInfo.xml. |
Revision as of 16:55, 9 May 2013
Contents |
Introduction
The Lightforge API allows you to create new tools, new input and output methods, automate complex operations, and much more.
Lightforge addons are written in IronPython. IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. It allows you to use both .Net and Python libraries and allows very tight integration between Lightforge and addons. For more information on IronPython you can visit www.ironpython.net
Structure
The file structure of a Lightforge addon is very simple. It consists of a folder with at least one required script file named base.py, and optionally a xml file named addonInfo.xml.
base.py
This is the entry point for your addon. It's the script file that Lightforge interacts with directly.
addonInfo.xml
This xml file gives Lightforge additional information about your addon. This info will appear in the Addon Settings panel.
The addonInfo.xml file can contain the following information:
Author
The author of the addon.
Version
The current version number.
Website
A website associated with this addon.
Support
An email address or website for providing addon support.
XML Structure
<addonInfo> <author>Visual Sorcery</author> <version>1.0.0</version> <website>http://www.visualsorcery.com/</website> <support>support@visualsorcery.com</support> </addonInfo>
Classes
API
This class contains all access for working with Lightforge. API
Addon
This class gives you access to information about your addon. Addon