Difference between revisions of "AnyWave:WritePythonScripted"

From WikiMEG
Jump to: navigation, search
(Created page with "prout")
 
Line 1: Line 1:
prout
+
=Introduction=
 +
This section targets people who have a good knowledge and practice of the Python programming language.<br/>
 +
The purpose is to explain how to write a Python script that will be the heart of a plug-in executed by AnyWave.<br/>
 +
We will also explain how to create a text file to describe our plug-in to AnyWave<br/>
 +
 
 +
The AnyWave-Python API (Application Programming Interface) consists in a Python module that is automatically imported in the Python environment by AnyWave.
 +
 
 +
=Where to start?=
 +
The first thing to do is to create the basic structure for a plug-in.<br/>
 +
A Python Scripted plug-in is very simple, it is a folder containing at least two files:
 +
* desc.txt (a text file describing the plug-in)
 +
* __main__.py (the Python code)

Revision as of 14:23, 22 May 2014

Introduction

This section targets people who have a good knowledge and practice of the Python programming language.
The purpose is to explain how to write a Python script that will be the heart of a plug-in executed by AnyWave.
We will also explain how to create a text file to describe our plug-in to AnyWave

The AnyWave-Python API (Application Programming Interface) consists in a Python module that is automatically imported in the Python environment by AnyWave.

Where to start?

The first thing to do is to create the basic structure for a plug-in.
A Python Scripted plug-in is very simple, it is a folder containing at least two files:

  • desc.txt (a text file describing the plug-in)
  • __main__.py (the Python code)