[SCRIPT] Open In Graphic Editor

Rosebud wrote on 11/20/2008, 4:17 AM
HERE, the improved version of my script "Open In Graphic Editor".


How to use:

First of all, run "Open In Graphic Editor Script Setting" to set your graphic editor path and the editing mode ("Open source file" OR "Open a copy & add as take").
Note: You will not be able to edit your media until Graphic Edit Path is set. You have to run this script only one time or when you want to change your graphic editor.

Select an Event containing a graphic file and run script.
Valid graphics are: *.gif *.jpg *.bmp *.dib *.jpe *.jpeg *.psd *.png *.tif *.tiff *.tga *.targa

Thx to Grazie for his tests.

Comments

TheHappyFriar wrote on 11/20/2008, 5:22 AM
that works awesome! Thanks!
Grazie wrote on 11/20/2008, 5:55 AM
Excellent script, most excellent. Love the Icon!!

Well done Gilles! Well done.

Many thanks

Grazie
Yarin VooDoo wrote on 11/20/2008, 7:54 AM
Ciao,

Thanx! Very useful! ;)

Ciao
[r]Evolution wrote on 11/20/2008, 11:37 AM
Downloaded, Installed, Using, & Loving it.

Cool Script... Very Useful...
Wish it was a Right-Click option.
Marco. wrote on 11/20/2008, 11:42 AM
Thanks a lot for that script, Gilles! It provides a workflow that was really missing in Vegas and I can and will use it so often. Very well done!

Marco
LReavis wrote on 11/21/2008, 12:02 PM
what am I doing wrong? I put all the files in the C:\Program Files\Sony\Vegas Pro 8.0\Script Menu folder. I then selected a graphic and clicked "Rescan Script Menu Folder" in Tools>Scripting. Then, when I click "Open In Graphic Editor Setting," I get this error prompt:

"An error occurred during execution of the script C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\Open In Graphic Editor Setting.dll. The located assembly's manifest definition does not match the assembly reference." (The "Details" button produces a long set of statements.)

I tried moving the 4 files to the Video Plug-Ins folder, with same result. Putting the files in the Sony\Filters folder didn't work. ??? Suggestions?
Grazie wrote on 11/21/2008, 12:19 PM
1] Put the files back in the Script Menu folder

2] Rescan

3] Run the setup script first. You only need to do this ONCE

4] Then try again

Grazie

LReavis wrote on 11/21/2008, 12:33 PM
Wow! what a prompt response - thanks!

I opened Vegas again with all the files in the Scripts Menu folder, then clicked on the "setting" script, with the same error prompt. I'm now writing this from my Vegas editing computer, so can post the entire message that pops up when the "Details" button is clicked (any ideas suggested by the following? I'd really use this script a lot):

System.IO.FileLoadException: Could not load file or assembly 'Sony.Vegas, Version=8.0.0.217, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Sony.Vegas, Version=8.0.0.217, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' ---> System.IO.FileLoadException: Could not load file or assembly 'Sony.Vegas, Version=8.0.0.260, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Sony.Vegas, Version=8.0.0.260, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc'


at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature()
at System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
at System.RuntimeType.FilterApplyMethodBaseInfo(MethodBase methodBase, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
at System.RuntimeType.GetMethodCandidates(String name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, Boolean allowPrefixLookup)
at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
at Sony.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
at Sony.Vegas.ScriptHost.PrecompiledScriptManager.Run()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
Grazie wrote on 11/21/2008, 12:35 PM
Nasty!

However, you say: "I opened Vegas again with all the files in the Scripts Menu folder, then clicked on the "setting" script, , , " Eh? Did you "rescan" B4 you did the rest?

Grazie
LReavis wrote on 11/21/2008, 12:40 PM
Thanks, Grazie, for your kind suggestions. I just tried another rescan, but the result was the same. Yesterday I also tried rebooting, etc., spending a couple of hour tinkering, but nothing works. 'Tis a pity, for this would be one very useful script. I think I'll try to download again and see if that helps.
LReavis wrote on 11/21/2008, 12:56 PM
I downloaded and still no luck. Sooo tantalizing . . .
Rosebud wrote on 11/21/2008, 12:58 PM
Check your VP8 version.
This script is for VP8.0 b or c.
LReavis wrote on 11/21/2008, 1:39 PM
my "About Vegas Pro" reports Version 8.0b (build 217)
Rosebud wrote on 11/21/2008, 3:57 PM
Ok, since there is no change in the script API between 8.0b and 8.0c, I was thinking this script should work with those two versions. Apparently no…
So try upgrade to 8.0c.
Harold Brown wrote on 11/21/2008, 4:06 PM
Works perfect here on 8.0c. Thx!
I don't need CS4 now :)
LReavis wrote on 11/21/2008, 4:41 PM
I tried 8c, but had problems with audio/video sync. I haven't figured out how to install 8c without overwriting 8b, but I'll take another look. Thanks so much for this valuable script - I'm sure I'll be using it eventually.
Grazie wrote on 11/21/2008, 10:33 PM
Arggh! Just read your post, LR, when you DO get to 8c this is one remarkable script. Flitting back and forth from my PsP GP, getting TAKE2 and TAKE3 and . . . so on is a joy to behold!

Grazie