Python

<< Click to Display Table of Contents >>

Navigation:  Nodes > Tasks > Python Templates >

Python

 

Purpose

 

A  Python node with just the basic functions, to be used as the most basic template for creating python nodes.

 

This is just to illustrate the most basic Python node requirements. A more elaborated example is the quicPrototype node (which can easily create input and output connectors)

 

Inputs

 

None

 

Outputs

 

None

 

 

Standard properties

Object Name

Color

 

Python standard properties

Schema name

code

 

 

Node specific properties

 

Code: Provides a template with only the obligatory functions for a Python node: init, isReady and process.

 

def init(self):

#Write your initialization code here. Create connectors, Parameters, etc.

return True

 

def isReady(self):

#Check here if the node is ready to be processed

return True

 

def process(self):

#And finally, Do the thing here!

return True

 

Additional documentation:

 

An introduction to all the Python tools in Mistika Workflows is available in the Python scripting tools section.

 

Information about library extension is available in the Mistika Python Extension Library

 

 

 

Developer reference (API Rest - node/Python/property/[Property ID])

 

Property Label

Property ID

schemaName

schemaName