Comments

PeterWright wrote on 11/16/2008, 1:24 AM
Yes - hear hear!
Grazie wrote on 11/16/2008, 1:31 AM
Thanks for the supporting vote Peter!

PLUS, and like save on exit with SF and IzoRX for Audio, the Graphic is supplied BACK as TAKE 2!!!

Now, wouldn't THAT be an absolute hoot?!??

Grazie
Rosebud wrote on 11/16/2008, 2:15 AM
Could be done via a script.
Interrested ?
Rosebud wrote on 11/16/2008, 2:32 AM
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;

return null;
}

}
Grazie wrote on 11/16/2008, 3:52 AM
WHAT?!?@!?

OK!! -

Copy and saved as CS and ran script (I didn't include the text:"Code Block"?):

1] Put PNG on T/L

2] Select PNG on T/L

3] Ran Script

4] Paint Shop Pro fires up! - AMAZING!

5] :(

. .and in PsP "Cannot open file"

But I CAN open same PNG file in PsP externally to Vegas . . .

oh dear . . nearly there huh?

very exciting . .

Grazie

rs170a wrote on 11/16/2008, 4:55 AM
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 :-)

Mike
Grazie wrote on 11/16/2008, 5:04 AM
Well bully for you - old bean!

See Mike? I come up with the "idea", and others benefit - hey ho . . . my Life's Story . ..

Grazie
rs170a wrote on 11/16/2008, 5:20 AM
I come up with the "idea", and others benefit

And that's why we love you SO much Grazie :-)

I never assume anything so, at the risk of asking a dumb question, you did change the script to your PsP location, right?

Mike
Grazie wrote on 11/16/2008, 5:35 AM
Yeah . . I know . .

Mike, read my point 4] above? - This is what is so tantalizingly "near".

Mike, did you, or does one NEED to include the words "Code Block" too?

Something is being added to the PNG that makes PsP think it can't open it?

So it returns it to Vegas as, what, another TAKE?

Grazie
rs170a wrote on 11/16/2008, 5:53 AM
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.

Mike
Grazie wrote on 11/16/2008, 6:15 AM
Yup. Me too.

Thanks for confirming the process though. Good to know it does and should work.

Grazie
MarkWWW wrote on 11/16/2008, 7:01 AM
Yes, I get the same behaviour trying to use PSP8.

Perhaps there's something unusual about PSP that makes it not like to have files passed to it in this way?

Mark

Grazie wrote on 11/16/2008, 7:04 AM
Thanks Mark.

But I can use Vegas Explorer > Right Click > Explore Folder > locate a PNG and right click OPEN with PsP - ?

Grazie
MarkWWW wrote on 11/16/2008, 7:14 AM
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.

Mark
Grazie wrote on 11/16/2008, 7:23 AM
Agreed!

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.

Interesting . . .

Grazie

Rosebud wrote on 11/16/2008, 9:49 AM
Grazie,
Can you paste here your modified line : Process.Start(@"your path…

If you try this:
Process.Start(@"C:”your application path”, @”your file path”).
what result ?
Grazie wrote on 11/16/2008, 9:55 AM
on the case . . .
Grazie wrote on 11/16/2008, 10:00 AM
This is what I have before I change things:


Process.Start(@"C:\Program Files\Jasc Software Inc\Paint Shop Pro 8\Paint Shop Pro.exe", evnt.ActiveTake.MediaPath);




Grazie

Rosebud wrote on 11/16/2008, 10:13 AM
Does your file path contain space ?
If yes, what result with a path without space ?
Grazie wrote on 11/16/2008, 11:43 AM
Does your file path contain space ? - YES

If yes, what result with a path without space ?

Yes, and I have sent the extensive error report in an email to you.

Grazie
Rosebud wrote on 11/16/2008, 12:05 PM
I don't received any email from you.
I sent you a new script to test..

Gilles
Rosebud wrote on 11/16/2008, 12:12 PM
THe new code to test is:


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\Jasc Software Inc\Paint Shop Pro 8\Paint Shop Pro.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;

return null;
}

}
Grazie wrote on 11/16/2008, 12:30 PM
WOW!

1] Click on Event & apply Script

2] PsP opens with Media

3] Apply a background in PsP

4] Save and exit PsP

5] New Media doesn't appear as new Take, have to ADD as Take - is that correct?

You are a bleedin' genius Gilles!

Grazie

Rosebud wrote on 11/16/2008, 12:32 PM
"5] New Media doesn't appear as new Take, have to ADD as Take - is that correct?"

At this time... yes ;)