logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
NicholasBates  
#1 Posted : Thursday, April 7, 2022 4:11:42 PM(UTC)
NicholasBates

Rank: Newbie

Groups: Registered
Joined: 4/7/2022(UTC)
Posts: 5
Australia
Location: Woodwark

I cant see where to go from here?

Hey man,

Cant get the code to work, can i get your assistance?


Starting Script "Timestamp"
Script 'Timestamp' Error Line 8: Object reference not set to an instance of an object.
Stopping Script "Timestamp"




Originally Posted by: elgarf Go to Quoted Post
You can use script if you have 4K or Pro version.

Code:
'Text file for time marks
dim FILENAME = "D:\out.txt"

'Get recording duration
dim xml = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)
dim Duration = integer.parse((x.SelectSingleNode("//recording/@duration").Value))

dim Second = math.floor(Duration mod 60)
dim Minute = math.floor((Duration / 60) mod 60)
dim Hour = math.floor((Duration / (60 * 60)) mod 60)

'Write recording duration to file
System.IO.File.AppendAllText(filename, string.format("{0:00}:{1:00}:{2:00}"&Environment.NewLine, Hour, Minute, Second))
doggy  
#2 Posted : Thursday, April 7, 2022 4:27:59 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
why double post ? (answer in the other one)
NicholasBates  
#3 Posted : Thursday, April 7, 2022 4:29:59 PM(UTC)
NicholasBates

Rank: Newbie

Groups: Registered
Joined: 4/7/2022(UTC)
Posts: 5
Australia
Location: Woodwark

More likely to get a response sooner....
doggy  
#4 Posted : Thursday, April 7, 2022 4:59:21 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Originally Posted by: NicholasBates Go to Quoted Post
More likely to get a response sooner....


Right , wrong section ( not a feature request) and making it harder for others having a similar issue to search and find an possible answer and by #####
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.