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
Nächste Überarbeitung Beide Seiten der Revision
en:vegas_python_download2 [2019/06/02 13:29]
hlinke
en:vegas_python_download2 [2019/06/10 13:44]
hlinke [VEGASPython for Deveopers]
Zeile 1: Zeile 1:
-VEGASPython Test Downloadpage+====== VEGASPython Downloadpage ======
  
-new version including VEGASScenedetect+====== Download ======
  
-{{ :en:vegaspython_install_20190602a.zip |}}+Version0.9
  
-====== Readme.txt ======+Release Date: June 10th, 2019
  
-Version 0.9 - June 2nd , 2019 +New FeaturesVEGASSceneDetect
-AuthorHarold Linke+
  
-This is a Vegas pro Custom Command Extension adding a Python Scripting Interpreter to VEGAS +Downloadfile: {{ :en:vegaspython_0.90.zip |:en:vvegaspython_0.90.zip}}
  
-All files and directories in the zip file must be must be copied to one of these folders :+====== VEGASPYTHON for Users ====== 
 +Please find details for users on the following page: 
 +[[en:vegas_python_users|VEGASPython for Users]]
  
-C:\Documents and Settings\<username>\Documents\Vegas Application Extensions\   + 
-C:\Documents and Settings\<username>\Local Settings\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  +====== VEGASPython for Deveopers ====== 
-C:\Documents and Settings\<username>\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  +Please find details for developers on the following page:  
-C:\Documents and Settings\All Users\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  +[[en:vegas_python_dev|VEGASPython for Developers]] 
-C:\Documents and Settings\<username>\Local Settings\Application Data\Sony\Vegas Pro\Application Extensions\  + 
-C:\Documents and Settings\<username>\Application Data\Sony\Vegas Pro\Application Extensions\  +====== Installation ====== 
-C:\Documents and Settings\All Users\Application Data\Sony\Vegas Pro\Application Extensions\ + 
 +All files and directories in the zip file must be must be copied into one of these folders : 
 + 
 +  * C:\Documents and Settings\<username>\Documents\Vegas Application Extensions\   
 +  C:\Documents and Settings\<username>\Local Settings\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  
 +  C:\Documents and Settings\<username>\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  
 +  C:\Documents and Settings\All Users\Application Data\Sony\Vegas Pro\9.0\Application Extensions\  
 +  C:\Documents and Settings\<username>\Local Settings\Application Data\Sony\Vegas Pro\Application Extensions\  
 +  C:\Documents and Settings\<username>\Application Data\Sony\Vegas Pro\Application Extensions\  
 +  C:\Documents and Settings\All Users\Application Data\Sony\Vegas Pro\Application Extensions\ 
  
 I'm using on a Win10 system :  I'm using on a Win10 system : 
Zeile 26: Zeile 36:
  
 If the 'Application Extensions' folder does not jet exist, it must be allocated with exact this name. If the 'Application Extensions' folder does not jet exist, it must be allocated with exact this name.
 +
 +====== Background ======
  
 VEGASPython is based on PYTHONNet and Python 3.7.  VEGASPython is based on PYTHONNet and Python 3.7. 
 I tested with Python 3.7.3. I tested with Python 3.7.3.
  
 +====== Extensions included ======
  
 VEGASPython extends VEGAS with following functions: VEGASPython extends VEGAS with following functions:
  
 Simple functions to demonstrate the principle: Simple functions to demonstrate the principle:
-- Add2SecondGap +  * - Add2SecondGap 
-- Chopoff_BeginandEndofEvent_PN +  - Chopoff_BeginandEndofEvent_PN 
-- DeleteEmptySpaceBetweenEvents +  - DeleteEmptySpaceBetweenEvents 
-- LimitSelectedEventLengthto4Seconds+  - LimitSelectedEventLengthto4Seconds
  
 New functions only available with VEGASPython New functions only available with VEGASPython
-- VegasSceneDetect +  * - VegasSceneDetect 
-- Import_PinnacleStudio_SceneDetectFile+  - Import_PinnacleStudio_SceneDetectFile
  
 +The commands can be found in VEGAS under the menu point: Extra / Extensions
  
-VEGASSceneDetect creates subclips of e mediaclip from the Mediapool based on scene changes.+====== VEGASSceneDetect ====== 
 +  
 +VEGASSceneDetect creates subclips of mediaclips from the Mediapool based on scene changes.
  
 Usage: Select the clip in the mediapool Usage: Select the clip in the mediapool
Zeile 54: Zeile 70:
 VEGASScenedetect is based on PyScenedetect by Brandon Castellano VEGASScenedetect is based on PyScenedetect by Brandon Castellano
  
-Import_PinnacleStudio_SceneDetectFile:+====== Import_PinnacleStudio_SceneDetectFile ======
 Imports a Pinnacle Studio Scene Detection File that was create by Pinnacle Studio for a clip. Imports a Pinnacle Studio Scene Detection File that was create by Pinnacle Studio for a clip.
 The file must have the same name as the clip and has to be located in the same directory. The only difference is the extension .scn.xml for the scene detection file. The file must have the same name as the clip and has to be located in the same directory. The only difference is the extension .scn.xml for the scene detection file.
 When importing, VEGAS automatically adds the clips and all its scenes as subclips to the media pool. When importing, VEGAS automatically adds the clips and all its scenes as subclips to the media pool.
  
-The commands can be found in VEGAS underthe menu point: Extra / Extensions 
  
 +====== VEGASPython Interactive Window ======
  
 In addition VEGASPython includes an interactive window. In addition VEGASPython includes an interactive window.
Zeile 84: Zeile 100:
 All VEGAS API items are available. All VEGAS API items are available.
  
-Example for a simple script that can be used in the interactive window: +====== Examples ======
-import clr +
-clr.AddReference('ScriptPortal.Vegas'+
-import ScriptPortal.Vegas +
-from ScriptPortal.Vegas import *+
  
-# adapt this value to your needs +----
-maxLength = Timecode.FromString("00:00:04:00"+
-  +
-# Go through the list of Tracks +
-for track in pyVEGAS.Project.Tracks: +
-    for evnt in track.Events: +
-        if (evnt.Selected): +
-            dLength = evnt.Length +
-            if dLength > maxLength: +
-                dLength = maxLength +
-            dStart = evnt.Start +
-            evnt.AdjustStartLength(dStart, dLength, True)+
  
 +Example for a simple script that can be used in the interactive window:
  
-A script that is used as an extension needs to be included in a function FromVegas. See example below. +    import clr 
- +    clr.AddReference('ScriptPortal.Vegas'
-import clr +    import ScriptPortal.Vegas 
-clr.AddReference('ScriptPortal.Vegas'+    from ScriptPortal.Vegas import * 
-import ScriptPortal.Vegas +    # adapt this value to your needs
-from ScriptPortal.Vegas import * +
- +
-def FromVegas(pyVEGAS): +
-   # adapt this value to your needs+
     maxLength = Timecode.FromString("00:00:04:00")     maxLength = Timecode.FromString("00:00:04:00")
-  +    # Go through the list of Tracks
-  # Go through the list of Tracks+
     for track in pyVEGAS.Project.Tracks:     for track in pyVEGAS.Project.Tracks:
         for evnt in track.Events:         for evnt in track.Events:
Zeile 124: Zeile 121:
                 dStart = evnt.Start                 dStart = evnt.Start
                 evnt.AdjustStartLength(dStart, dLength, True)                 evnt.AdjustStartLength(dStart, dLength, True)
 +
 +
 +----
 +
 +A script that is used as an extension needs to be included in a function FromVegas. See example below.
 +
 +    import clr
 +    clr.AddReference('ScriptPortal.Vegas')
 +    import ScriptPortal.Vegas
 +    from ScriptPortal.Vegas import *
 +    def FromVegas(pyVEGAS):
 +        # adapt this value to your needs
 +        maxLength = Timecode.FromString("00:00:04:00")
 +        # Go through the list of Tracks
 +        for track in pyVEGAS.Project.Tracks:
 +            for evnt in track.Events:
 +                if (evnt.Selected):
 +                    dLength = evnt.Length
 +                    if dLength > maxLength:
 +                        dLength = maxLength
 +                    dStart = evnt.Start
 +                    evnt.AdjustStartLength(dStart, dLength, True)
  
  

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