View Full Version : VT script syntax
bostjan
11-22-2004, 10:37 AM
Hi. Can anyone tell me exact syntax for OPEN command. I tried almost everything but still no success. I am trying to open VT edit project file in VT edit with script.
Aussie
11-23-2004, 05:44 PM
Some notes...
- Open() will load a project, not a video file,
- Remember "\\" double slashes
- Without a file extension, Open() will add .VTP automatically.
- It will create a project file in that location, if it cannot find your file
- Open with .avi extension, will only load if you previously saved project as .avi
- To ADD files to existing project, use AddFiles()
Hope these help, Aussie
AddMenuItem("%Test Zone", code( 0 )) // Header
AddMenuItem("Open pathfile1", code( Open("E:\\Backup\\Video\\Test_1") )
AddMenuItem("Open pathfile2", code( Open("E:\\Backup\\Video\\Test_2.VTP") )
AddMenuItem("Open pathfile3", code( Open("E:\\Backup\\Video\\Test_3.VT-Edit Project") )
AddMenuItem("Open pathfile4", code( Open("E:\\Backup\\Video\\Test_4.avi") )
AddMenuItem("Add file", code( AddFiles("E:Image_1.avi") )
AddMenuItem("Add file2", code( AddFiles("E:Image_1.avi", "E:Image.avi") )
PIZAZZ
11-23-2004, 09:35 PM
Some notes...
- Open() will load a project, not a video file,
- Remember "\\" double slashes
- Without a file extension, Open() will add .VTP automatically.
- It will create a project file in that location, if it cannot find your file
- Open with .avi extension, will only load if you previously saved project as .avi
- To ADD files to existing project, use AddFiles()
Hope these help, Aussie
AddMenuItem("%Test Zone", code( 0 )) // Header
AddMenuItem("Open pathfile1", code( Open("E:\\Backup\\Video\\Test_1") )
AddMenuItem("Open pathfile2", code( Open("E:\\Backup\\Video\\Test_2.VTP") )
AddMenuItem("Open pathfile3", code( Open("E:\\Backup\\Video\\Test_3.VT-Edit Project") )
AddMenuItem("Open pathfile4", code( Open("E:\\Backup\\Video\\Test_4.avi") )
AddMenuItem("Add file", code( AddFiles("E:Image_1.avi") )
AddMenuItem("Add file2", code( AddFiles("E:Image_1.avi", "E:Image.avi") )
Thanks for ducking in for a moment Aussie!!! Nice to see you around these parts.
Now get back to that independent DDR script.... :)
bostjan
11-25-2004, 05:57 AM
Thanks Aussie for help.
Since you know much regarding Toaster Scrip I would appreciate additional help.
Is there a TS command to save PNG picture/file from VT3 CG?
Bostjan
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.