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
Ario  
#1 Posted : Monday, March 9, 2020 8:47:31 AM(UTC)
Ario

Rank: Advanced Member

Groups: Registered
Joined: 2/2/2015(UTC)
Posts: 166
Location: NL

Thanks: 164 times
Was thanked: 19 time(s) in 16 post(s)
The script below creates an event, copies it into the same bank, and sets angles on/off and names them.

It works about 4 times and the 5th time, I get:
"Script '-5_Guest' Error Line 15: The process cannot access the file 'E:\vMix_IRP\replay.xml' because it is being used by another process."
Line 15 is: Function=ReplayCopyLastEvent&Value=1

Kind thanks for any advice.

Function=ReplaySelectEvents2
Sleep 10
Function=ReplayACamera1
Sleep 10
Function=ReplayBCamera1
Sleep 10
Function=ReplayMarkInOutLive&Value=5
Sleep 10
Function=ReplayToggleLastEventCamera2
Sleep 10
Function=ReplayToggleLastEventCamera1
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=2,Score_Guest_1eh_SlamR
Sleep 20
Function=ReplayCopyLastEvent&Value=1
Sleep 20
Function=ReplayToggleLastEventCamera1
Sleep 10
Function=ReplayToggleLastEventCamera2
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=1,Score_Guest_1eh_Main
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=2,...

(maybe it works better to first copy the event into a different bank, and only then copy it back to the bank it came from?)
dmwkr  
#2 Posted : Monday, March 9, 2020 9:13:34 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 555

Thanks: 62 times
Was thanked: 130 time(s) in 118 post(s)
I'm not an expert, so just a guess: Does increasing the sleep times before line 15 help?
thanks 1 user thanked dmwkr for this useful post.
Ario on 3/10/2020(UTC)
Ario  
#3 Posted : Tuesday, March 10, 2020 1:10:16 AM(UTC)
Ario

Rank: Advanced Member

Groups: Registered
Joined: 2/2/2015(UTC)
Posts: 166
Location: NL

Thanks: 164 times
Was thanked: 19 time(s) in 16 post(s)
I had it at 20 which did not help.
But thanks for the suggestion, I will try it at e.g. 100 and see what happens.

Btw the .xml file is on a fast NVMe drive that only does IRP recording so if it's a write-latency-issue, that should be manageable.
Ario  
#4 Posted : Tuesday, March 10, 2020 6:40:50 PM(UTC)
Ario

Rank: Advanced Member

Groups: Registered
Joined: 2/2/2015(UTC)
Posts: 166
Location: NL

Thanks: 164 times
Was thanked: 19 time(s) in 16 post(s)
Well, well, increasing the Sleep to 100 seems to help.
The script produces no errors now:

Function=ReplaySelectEvents2
Sleep 10
Function=ReplayACamera1
Sleep 10
Function=ReplayBCamera1
Sleep 10
Function=ReplayMarkInOutLive&Value=5
Sleep 10
Function=ReplayToggleLastEventCamera2
Sleep 10
Function=ReplayToggleLastEventCamera1
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=2,Score_Guest_1eh_SlamR
Sleep 100
Function=ReplayCopyLastEvent&Value=1
Sleep 10
Function=ReplayToggleLastEventCamera1
Sleep 10
Function=ReplayToggleLastEventCamera2
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=1,Score_Guest_1eh_Main
Sleep 10
Function=ReplaySetLastEventTextCamera&Value=2,-
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.