Advanced Scene Switcher

Advanced Scene Switcher 1.29.3

JPD

New Member
Hello again.
Unfortunately, I'm still stuck with the following problem:
The stored values in my variable 'ACW___Dummy_Speicher02' are:
0
12
0
14
What conditions/actions do I have to use to execute the following?
The value (0) of the first line should be written to the variable 'ACW_Pre_Cam11'.
The value (12) of the second line should be written to the variable 'ACW_Pre_Cam12'.
The value (0) of the third line should be written to the variable 'ACW_Pre_Cam13'.
And the value (14) of the fourth line should be written to the variable 'ACW_Pre_Cam14'.

Unfortunately, Destroy666's great help isn't helping me, as I don't understand how to read the entire value from a variable and write only a specific part to another variable.
Link


I got a little further with the example from the wiki.
Link
I've adapted what's written there to my case.
Instead of using a variable, I'm working with a source.
Understood, and it's not a problem.​
I don't care where the values are stored.​
The OBS source is fine.​
A variable would be great. Then you'd have everything in one place.​
But an external txt file would also be perfectly fine.​
The further actions shorten the content of the source.
I don't quite understand the RegEx. But it works.​
In the end, the value of my variable 'ACW___Dummy_Speicher02' looks like this:
0\n12\n0\n14
This is where my understanding ends.
How do I write the individual parts (0 & 12 & 0 & 14) of the value into the variable 'ACW_Pre_Cam11'...?

If someone here can explain this in German, that would help me a bit. Otherwise, the translation program is running hot!
 

Warmuptill

Active Member
What conditions/actions do I have to use to execute the following?
The value (0) of the first line should be written to the variable 'ACW_Pre_Cam11'.
The value (12) of the second line should be written to the variable 'ACW_Pre_Cam12'.
The value (0) of the third line should be written to the variable 'ACW_Pre_Cam13'.
And the value (14) of the fourth line should be written to the variable 'ACW_Pre_Cam14'.
You will have to perform the following actions.
  • First assign the value of ACW___Dummy_Speicher02 to each of your ACW_Pre_CamX variables like so:
    1745618479535.png
  • Next up for each of those variables extract the corresponding line using regular expressions like so:
    1745618525477.png

    The following settings have to be used for the regluar expression:
    1745618614113.png

Here it is in action:
Example.gif


If you want to import the example macro you can use this code:

Code:
AAArPHic7Zpbb9s2FID/ikD0YcsiT5KFNvXLkLouZiBNvTjNHtYsoKUjiYtEChTlOQvy33eomym7CbYEGGZUBQpIh+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KR0zBEJfxNxWz8ExxyWsBlm5OkPBTZeZmtQO6NdX85TNUZjo0Rz9lRjfFRJFWgfydjXe56LP4oBP+lBHmnF3VUiAxGHBB64ah2VGvsPn/Ps1my/zfFvIFiA8UGig0UO2iKjQeKDRQbKDZQ7KAp5g8UGyg2UGyg2EFT7CXvxf4trE7+S1j9Pjp69QSq3ANFlT+gakDVt4mql7z8OmRUHepfVQOqBlR9o6h6yRuuQ0bVeEDVgKoBVYeEqpe8xjpkVPkDqgZUDajqlewae9Z9aNZ84FU1um1fJdNqa0PQfdL59XfausF03TitYocQ0TJVHUU0IvnXX009z/L5McfPtvT/gWX3vRy2rISmwF39iTvy3o7GtuvZ8cr3V37wZkwe/gYobIfg

I hope that helped and I understood the request correctly! :)
 

Tallicia

Member
How can I setup OCR only to return a character subset such as the 12 elements in the array " .:0123456789" ?

Docs from above link show it is functionally there by setting the whitelist

1745648302907.png
 

JPD

New Member
You will have to perform the following actions.
  • First assign the value of ACW___Dummy_Speicher02 to each of your ACW_Pre_CamX variables like so:View attachment 113080
  • Next up for each of those variables extract the corresponding line using regular expressions like so:
    View attachment 113081
    The following settings have to be used for the regluar expression:
    View attachment 113082

Here it is in action:
View attachment 113083

If you want to import the example macro you can use this code:

Code:
AAArPHic7Zpbb9s2FID/ikD0YcsiT5KFNvXLkLouZiBNvTjNHtYsoKUjiYtEChTlOQvy33eomym7CbYEGGZUBQpIh+emc/kcCLonGQ2kKMjkt3vCaQZkQmYbmuUpkGMSS1HmZBLRtIBjktOygCVdwztI6JoJSSZOIzV0JE1TSDtBkEBwOxU8ZIoJXsz5otNQskQFwacJ5TG098Uty2cbCD7xpaJSdY4KJfLToHYSnQv1XvBtWJ1YIqSaMhmUTM3WNC2p1jU1piX6yLpcpjqzOVcgUXub75NK90R7BuPCGXlvd/4dE3WX66MHDMuZqsq0BllU+bgoDUVwuwSlGI8L7UtCzAqM0WWR0OKi5O9KpbRJXRiULXSt96RYJ1UWZ3RllD1hcZLifzWPtsW/lOW2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0TJVHUU0IvnXX009z/L5McfPtvT/gWX3vRy2rISmwF39iTvy3o7GtuvZ8cr3V37wZkwe/gYobIfg

I hope that helped and I understood the request correctly! :)
YES! YES! YES!
That's it!
I now understand this process and the syntax based on the example.
Thank you very much
 

Destroy666

Member
How can I setup OCR only to return a character subset such as the 12 elements in the array " .:0123456789" ?

Docs from above link show it is functionally there by setting the whitelist

View attachment 113088
No such feature is available. I think a good thing to add would be an ability to pass custom Tesseract params/args to cover more than by implementing individual settings like that.
 

JPD

New Member
Hello.
It's a new day!
A new problem.
Variable 1 contains a random value from 11, 12, 13, or 14.
Variable 2 contains multiple rows of values:
11
0
13
14

Is the following possible?
If the random value of variable 1 is present in the values of variable 2, execute the next action/macro.
If the random value of variable 1 is NOT present in the values of variable 2, execute another action/macro (new random value).
For example:
Variable 1: 12
Variable 2:
11
0
13
14
No match (generate a new random value or execute another macro)

Variable 1: 14
Variable 2:
11
0
13
14
Match, perform action/macro blah blah

Greets from Germany
 

Warmuptill

Active Member
Is the following possible?
If the random value of variable 1 is present in the values of variable 2, execute the next action/macro.
If the random value of variable 1 is NOT present in the values of variable 2, execute another action/macro (new random value).
That should be doable using a condition like this:
1745684695584.png

The regex is configured like this:
1745684713634.png

(I have adapted the name of "Variable 1" to "Random Value" and "Variable 2" to "Value List" to avoid misunderstandings)

New random values can be generated like this:
1745684684539.png


So the complete macro might be:
1745685042874.png


Hope that helps!

How can I setup OCR only to return a character subset such as the 12 elements in the array " .:0123456789" ?

Docs from above link show it is functionally there by setting the whitelist

View attachment 113088
As mentioned already by @Destroy666 this is currently not supported, but I will try to look into it and add that as an option.
 

JPD

New Member
<
That should be doable using a condition like this:
View attachment 113092
The regex is configured like this:
View attachment 113093
(I have adapted the name of "Variable 1" to "Random Value" and "Variable 2" to "Value List" to avoid misunderstandings)

New random values can be generated like this:
View attachment 113091

So the complete macro might be:
View attachment 113096

Hope that helps!


As mentioned already by @Destroy666 this is currently not supported, but I will try to look into it and add that as an option.
The result looks so simple.
But if you don't understand what all the characters do, you won't get very far.
Thank you so much again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
Top