Rank: Newbie
Groups: Registered
Joined: 10/23/2020(UTC) Posts: 8 Location: PA Thanks: 3 times
|
I am trying to use some simple logic in a script (using Dynamic script) that would allow a single X-Key button to both initiate the merge and then remove it. I'm not a scripting expert, but would like some pointers (even if I put this as a script call, that would help). Below are the two current scripts and the third is what I'm trying to do. Any pointers? Thanks
This script sets the 'DynamicInput2' to the camera input selected (Sleep is to allow PTZ movement).
Function=PreviewInput&Input=Cross above altar Sleep 1000 Function=Fade Function=SetDynamicInput2&Value=Cross above altar
This script sets the layer using 'DynamicInput2' for the selected camera and then performs merge of the music (did not seem to work without Sleep before the merge function).
Function=SetLayer&Input=LambofGodMV&value=2,Dynamic2 Function=PreviewInput&Input=LambofGodMV Sleep 100 Function=Merge
The above scripts require the button press to perform the MultiView but then must use a separate Merge button push to remove. Trying to add use of DynamicValue4 to set to 0 upon camera select and then set to 1 when the multiview is selected. Then if multiview button pushed again use Merge only. Must reset value to 0 when MV is removed as there is another MV used a little while later. This does not work as is, but the concept is there.
If DynamicValue4 = 0 then Function=SetLayer&Input=LambofGodMV&value=2,Dynamic2 Function=PreviewInput&Input=LambofGodMV Sleep 100 Function=Merge Function=SetDynamicValue4=1 else Function=Merge Function=SetDynamicValue4=0 end if
Need to add the following to the each Camera Input Selection script: Function=SetDynamicValue4=0
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
Would be interesting to know from where to what you are merging. Maybe you should provide kind of a sketch In This case I can´t really get an idea of the visual outcome, I´ll try... And I do not understand why it might be useful to use the dynamic inputs for this. Why not using some mixes (OK overall there are only three additional available) but might be easier... I have the following in mind (at least this is what I use the merge option for...): [img= ] MV Sketch[/img] create two multi Views on a "blank" input and use a mix instead of an input But I have to emphasize I only have a vague idea of what you are doing... for this you need all three available mixes 1. the merge mix 2. mix to change input 1 in MV 3. mix to change input 2 in MV and then Code:'set the two layouts to merge in the mixing layers of mix 3
api.function("CutDirect", Input:= MV1, mix:=3)
api.function("PreviewInput", Input:= MV2, mix:=3)
'set the inputs in the MV layers
api.function("CutDirect",Input:= XX, mix:=1)
api.function("CutDirect",Input:= XX, mix:=2)
'and then...
api.function("merge", mix:=3)
'plus whatever, sleep etc...
still not sure if this is useful for you..
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/23/2020(UTC) Posts: 8 Location: PA Thanks: 3 times
|
Thank you for the input. Here is what the Layer/Multiview looks like when in output: vMix Capture 03 July 2021 08-04-00 (Small).png (430kb) downloaded 4 time(s).The music portion is selected from another input and the camera is also selected. Once the operator selects the camera (in this view the cross is the placeholder for the camera which is stored in DynamicInput. The when the shortcut for the multiview is pushed, the camera is loaded into the MV and then the preview is merged into the output providing the small view of the camera with the music showing. When the music is done the operator now pushes the merge button, but what I'd like to do is have the same button pushed to merge back to the camera view. There is another music selection later with the same type of view. vMix Capture 03 July 2021 08-03-04 (Small).png (817kb) downloaded 2 time(s). The view is not too complex but as I'm learning more scripting, this one has been a bit of a challenge as it includes IF THEN ELSE type logic. Where a Dynamic value is used to store the current state of the view. Hope this explains it a bit more.
|
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close