Here, a basic CS script.
Need to be improved (but I don’t have time now). ;)))
Select an Event before to run this script.
//*******************************************************************
//* Program: Open In Graphic Editor.cs
//* Author: Gilles Pialat
//* Last Updated: November 16, 2008
//* Replace the "Photoshop 7.0" path with your own Graphic editor path
//********************************************************************
using System;
using System.Diagnostics;
using Sony.Vegas;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
TrackEvent evnt = FindFirstSelectedEvent(vegas.Project);
if (evnt != null)
Process.Start(@"C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe", "\""+evnt.ActiveTake.MediaPath+"\"");
}
public TrackEvent FindFirstSelectedEvent(Project project)
{
foreach (Track testedTrack in project.Tracks)
foreach (TrackEvent testedEvent in testedTrack.Events)
if (testedEvent.Selected)
return testedEvent;
Wow!! Thanks Gilles!!
Grazie, it works for me in Photoshop.
I dropped an image (that was in landscape mode) on the Vegas timeline, ran the script which opened it in Photoshop, rotated it, did a few other things and hit Save.
Instant update on the Vegas timeline.
This is a VERY useful script :-)
No Grazie, I didn't include the words "Code Block" when I saved it.
It gets returned to Vegas as the same numbered image, just modified.
Hopefully Gilles or some other script guru will be able to help you figure this out.
Yes, me too - there's nothing wrong with the png file I'm using and PSP can open it quite OK when it is dragged and dropped, opened via right-click, etc.
So since PSP can actually open the file if it is presented to it in a way that it likes, I'm speculating that the script is presenting the file to PSP in a way that it doesn't like, but that PhotoShop (for example) is quite happy with.
Maybe Gilles tested this WITH PS and finding that it works for JUST going with the adjustment that was needed - ie the path, maybe the path and OPEN PNG has a different way in, and from Vegas that ISN'T a Global command? However, you and I can confirm that the "ordinary" MS "open in" works.