Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
en:chapter1 [2018/10/28 11:14]
hlinke [Hello World]
en:chapter1 [2019/07/28 10:24] (aktuell)
hlinke [Hello World]
Zeile 21: Zeile 21:
 VEGASPython is also based on Python 2.x. VEGASPython is also based on Python 2.x.
  
-Several different ​Python ​implementations are available CPython, JPython etcThen orginal version ​is called CPython as it is written in the programming language "​C"​.+PythonNet: ​Python ​for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers. It allows Python code to interact with the CLR, and may also be used to embed Python into a .NET application.
  
-VEGASPython is based on a Pythonimplementation called IronPython. IronPython is an open source implementation of Python ​for .NET. The development had been started by Microsoft but is now given to an open community that is still active and provides regularly new updated versions of IRONPython.+Several different ​Python ​implementations are available CPython, JPython etc. The orginal version ​is called CPython as it is written in the programming language "​C"​.
  
-The current version (in 2018) is 2.7.9. At the moment the comunity is working ​on a new version that supports Python 3.x scripts.+VEGASPython ​is based on a PythonNetPythonNet is an extension of CPython and therefore compatible with all Cpython extension modules.
  
-If you want to know more about IRONPython you can get more information on the official website [[http://​ironpython.net/​|ironpython.net/​]].+An older version of VEGASPythion was based on IronPython. IronPython is an open source implementation of Python for .NET. The development had been started by Microsoft but is now given to an open community that is still active and provides regularly new updated versions of IRONPython. 
 +If you want to know more about IRONPython you can get more information on the official website [[http://​ironpython.net/​|ironpython.net/​]].Very good and detailed information about IRONPython can be found in the book "​IronPython in Action"​ by Michael J. Foord and Christian Muirhead. Here is the link to the homepage: [[http://​www.ironpythoninaction.com/​|www.ironpythoninaction.com/​]] 
 +The main problem of IRONPython is the incompatibility with several standard Python moduels like openCV and NumPy. Especially openCV is interesting for Video editing. 
 + 
 +Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers. It allows Python code to interact with the CLR, and may also be used to embed Python into a .NET application.
  
-Very good and detailed information about IRONPython can be found in the book "​IronPython in Action"​ by Michael J. Foord and Christian Muirhead. Here is the link to the homepage: [[http://​www.ironpythoninaction.com/​|www.ironpythoninaction.com/​]] 
  
 ==== Hello World ==== ==== Hello World ====
Zeile 46: Zeile 49:
 You open the window in VEGAS via "View - Extensions - VEGASPython Interactive Window"​ You open the window in VEGAS via "View - Extensions - VEGASPython Interactive Window"​
  
-{{:​en:​vegaspython02a.jpg?​direct&400|}}+{{:​en:​vegaspython02a.jpg?​direct|}}
  
 This opens the interactive VEGASPython Window: This opens the interactive VEGASPython Window:
  
-{{:​en:​vegaspython03.jpg?​direct&400|}}+{{:​en:​vegaspython03.jpg?​direct|}}
  
 The interactive VEGASPython Window consists of two textboxes. The interactive VEGASPython Window consists of two textboxes.
Zeile 67: Zeile 70:
 Enter: ​ Enter: ​
 <code python> <code python>
-print"​Hello World"+print ("Hello World")
 </​code>​ </​code>​
  
Zeile 80: Zeile 83:
 ==== Introduction to the Python Language ==== ==== Introduction to the Python Language ====
 It is not the intention of this tutorial to provide a complete Python tutorial. I will only show you the items you need to know to be able to create or modify VEGASPython scripts. It is not the intention of this tutorial to provide a complete Python tutorial. I will only show you the items you need to know to be able to create or modify VEGASPython scripts.
 +VEGASPython is based on Python 3.x. Therefore the Python 3 syntax has to be used.
  
 === Functions === === Functions ===
Zeile 116: Zeile 120:
 <code Python> <code Python>
 numberVariable = 5 numberVariable = 5
-print numberVariable+print (numberVariable)
 floatVariable = 0.5 floatVariable = 0.5
-print floatVariable+print (floatVariable)
 stringVariable = "​Number 5" stringVariable = "​Number 5"
-print stringVariable+print (stringVariable)
 </​code>​ </​code>​
  
Zeile 161: Zeile 165:
  
 <code python> <code python>
-print pyVEGAS.Version+print (pyVEGAS.Version)
 </​code>​ </​code>​
  

Andere Sprachen
QR-Code
QR-Code en:chapter1 (erstellt für aktuelle Seite)