I'm trying to run some very simple code, but keep getting the error: "Error has been thrown by the target of an invocation"
I know I haven't set my variable 'evnt' to the project, but don't know how. Also, does anyone know the calculation for converting a double to a timecode?
Thanks!
Here's the code I'm using (it's VBScript) - I'll spare you the imports section:
Public Module MainModule
Public Sub Main()
Dim evnt As TrackEvent
Dim myStart As Double
Dim myEnd As Double
myStart = 1500
myEnd = 3000
evnt.AdjustStartLength(New Timecode(myStart), New Timecode(myEnd), False)
End Sub
End Module
I know I haven't set my variable 'evnt' to the project, but don't know how. Also, does anyone know the calculation for converting a double to a timecode?
Thanks!
Here's the code I'm using (it's VBScript) - I'll spare you the imports section:
Public Module MainModule
Public Sub Main()
Dim evnt As TrackEvent
Dim myStart As Double
Dim myEnd As Double
myStart = 1500
myEnd = 3000
evnt.AdjustStartLength(New Timecode(myStart), New Timecode(myEnd), False)
End Sub
End Module