Setting computer timestamps "Time Offset" value with a script

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
graems
Posts: 9
Joined: Sat May 27, 2023 7:33 am

Setting computer timestamps "Time Offset" value with a script

#1

Post by graems »

What is the script command to set the time offset value for computer timestamps of stored frames? I've searched but can't find it.

If not clear, I am talking about the value discussed in this topic:
viewtopic.php?p=49219#p49219

Thanks
Graem
User avatar
admin
Site Admin
Posts: 17606
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Setting computer timestamps "Time Offset" value with a script

#2

Post by admin »

Hi Graem,

you just need to find the appropriate control among the camera controls and set the value - like this...

Code: Select all

SharpCap.SelectedCamera.Controls.FindByName("Apply Time Offset (ms)").Value = -123
cheers,

Robin
graems
Posts: 9
Joined: Sat May 27, 2023 7:33 am

Re: Setting computer timestamps "Time Offset" value with a script

#3

Post by graems »

Thanks Robin - I am just cluing in on how useful that command is...

Graem
Post Reply