Dies ist eine alte Version des Dokuments!


Python Scripting for VEGAS Pro

Introduction

VEGAS Pro allows the control of the application via scripting. Scripting provides access to the internal data structures in VEGAS projects that allows you to automate things that you might normally do via the GUI. VEGAS uses the .NET framework to provide its scripting interface. VEGAS can execute C#, JScript, and Visual Basic script files directly.

Although JScript, Visual Basic, and C# can be easy to learn, it certainly helps to have programming experience before you try to write a VEGAS script.

PYTHON is an easy to learn powerful programming language that is more an dmore used for scripting of applications. In the 3D and video editing area some application use already PYTHON for scripting.

Goal of this VEGAS extension is to provide an easy access to VEGAS scripting using PYTHON.

The extension provides two options:

  • an interactive dockable VEGASPython Window
  • executing Scripts located in a specific folder and integrate them into the VEGAS User Interface like other C# Scripts

Download and Installation

Usage

VEGASPython Scripts

To allow an easier access to Python Scripts VEGASPython scans the subfolder „VEGASPython“. This subfolder must be in the same directory as the VEGASPython.dll.

The scripts in this folder are accessible via „Tools - Extensions“ from the VEGAS Menu.

When selecting the Menu-Item in this menu that selected Python Script will be executed immediatly. All output of the script is readirected to the „Output textbox of the Interactive VEGASPython Window“. If the window is not open it opens automatically when the script starts.

New Features in Version 2.0 for Scripts

Restrictions

VEGASPytghon is based on IRONPython. http://ironpython.net/.

VEGAS scriting is based on .NET. IRONPython allows the use of .NET assemblies with Python. Unfortunately this binding to .NET creates some restrictions.

Several Python libraries that are base on C or C++ code cannot be used. More details can be found in the IRONPython documentation http://ironpython.net/documentation/dotnet/

Examples

see the folder VEGASPython. The folder contains several VEGASPython Scripts that show how to deal with the VEGAS objects, events and tracks.

Documentation

VEGAS Scripting FAQ: direct link vegas_scripting_faq.zip

The FAQ describes the usage of VEGAS scriting for C#. The examples can be easily transfered to VEGASPython. An updated FAQ for VEGASPython will follow soon.

VEGAS Scripting API: direct link vegas_scripting_api.zip

The API describes the C# definition of all VEGAS structures and items that can be accessed. All these items can be accessed in the same way in VEGASPython.

Sony VEGAS SDK: direct link to Sony VEGAS Pro SDK

VEGAS Pro Tools for developers: VEGAS Tools for Developers

PYTHON documentation: PYTHON 2.7 documentation

PYTHON Tutorials: PYTHON 2.7 tutorial

IRONPython Website: ironpython.net


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