magnatique
11th June 2009, 19:21
I'm trying to automate some .avs for a job I have to do...
for example, I have a full_scene.avs file with all scripts and color correction.
it is stored as
\\computer\sharename\Job01\scene_01\full\fullscene.avs
now, I need to split that scene for my encode software into 5 scenes...
so I will create
a folder with clip01.avs clip02.avs clip03.avs etc...
each avs, I am simply doing a
c:\clips\scene_01\clip01.avs :
Import( "\\computer\sharename\Job01\scene_01\full\fullscene.avs")
trim(0,2500)
c:\clips\scene_01:
Import( "\\computer\sharename\Job01\scene_01\full\fullscene.avs")
trim(2501,5000)
etc...
But to automate things, I was wondering if there was a way so that I could have my clips avs read the path to their own avs file, store it in a string, and do some string manipulation to extract the folder it's in automatically..
IE so that I could store a variable "scene_01" and pass it... that way I would not have to edit 100 files everytime to manually enter the full path to their master file, but just grab their scene_id
for example, I have a full_scene.avs file with all scripts and color correction.
it is stored as
\\computer\sharename\Job01\scene_01\full\fullscene.avs
now, I need to split that scene for my encode software into 5 scenes...
so I will create
a folder with clip01.avs clip02.avs clip03.avs etc...
each avs, I am simply doing a
c:\clips\scene_01\clip01.avs :
Import( "\\computer\sharename\Job01\scene_01\full\fullscene.avs")
trim(0,2500)
c:\clips\scene_01:
Import( "\\computer\sharename\Job01\scene_01\full\fullscene.avs")
trim(2501,5000)
etc...
But to automate things, I was wondering if there was a way so that I could have my clips avs read the path to their own avs file, store it in a string, and do some string manipulation to extract the folder it's in automatically..
IE so that I could store a variable "scene_01" and pass it... that way I would not have to edit 100 files everytime to manually enter the full path to their master file, but just grab their scene_id