Hi everyone. I have a couple of questions about Xpath function in UTC buttons
I want to bring a path I have stored in a title using the xpath function, but it seems that the xpath function doesnt work on filename fields.
The button constructor looks like this:
Command: SetImage
Input & Index
Filename: xpath('vmix/inputs/input[@key="2ba80f44-aa31-43db-b4e9-ba74c639464c"]/text[@index="0"]') <--The path to the image.
In the log tab doesnt show the string in that xpath, just shows the function.
It work with state access functions "
_(input[..." but not with xpath. I dont know if isnt implemented or its a bug.
The second question also have to do with using functions to access filenames:
Anyone know if is it possible to concatenate State Access Functions (or xpaths) in one line?
For example:
I have a title with different text fields.
First one its a hidden text with a path "C:\Media\Logos\"
Second one its the name of a team "LAKERS"
It would be cool that if i write something like
Code:EDIT / THIS CODE WAS WRONG
the utc concatenate the 3 string "C:\Media\Logos\LAKERS.png"
I just dont know if its possible and in that case how is the correct syntax.
I hope someone have some info about any of these topics. Thanks!
EDIT: After some testing I give up and ended using a workaround. Today I was trying to fix something else and I came across the solution.
To concatenate strings or anything you use the "+" symbol
if you want to add a custom string, use ('your text')
for example
Code:_('Inputs[2ba80f44-aa31-43db-b4e9-ba74c639464c].Elements[0].Text') + _('Inputs[2ba80f44-aa31-43db-b4e9-ba74c639464c].Elements[1].Text') + ('.png')
This way you get the result: "C:\Media\Logos\LAKERS.png" and you can use it to feed a SetImage button in UTC.