admin4172

VTW Color Dialog Picker

Script Sub BtnColorsClick(Sender) If ColorDialog1.Execute then temp = ColorDialog1.Color red = temp Mod &H100 temp = temp \ &H100 green = temp Mod &H100 temp = temp \ &H100 blue = temp Mod &H100 rvb.Text = red & ” ” & green & ” ” & blue rvb01.Text = red/255 & ” ” & green/255 […]

VTW Color Dialog Picker Read More »

Vizrt Set x and y coordinates to .txt file

dim x, y as Integer sub OnInitParameters() RegisterPushButton(“action”, “Get Childs position x y”, 1) end sub sub OnExecAction(buttonId As Integer) dim n As Integer dim StreamText as String dim TextPath as String = “<full path of .txt file>” for n = 1 To this.ChildContainerCount dim c as Container = this.GetChildContainerByIndex(n-1) c.GetScreenPositionOrtho(x, y) StreamText &= x

Vizrt Set x and y coordinates to .txt file Read More »

Vizrt Get x and y coordinates from .txt file

Dim NewCont As Container = this.PreviousContainer Dim filePath = “<full path of .txt file>” Dim text As String Dim i, xpos, ypos As Integer this.DeleteChildren() if System.LoadTextFile(filePath, text) then Dim lines As Array[String] Dim coord As Array[String] text.trim() text.split(Chr(10), lines) Dim cont As Container for i=lines.LBound to lines.UBound lines[i].Split(“;”, coord) ‘println CDbl(coord[0]) ‘println CDbl(coord[1]) xpos

Vizrt Get x and y coordinates from .txt file Read More »

PSD Get Coordinates From Layers And Create .txt File

Export Layer Coordinates – Adobe Photoshop Script Export x and y coordinates to semicolon seperated .txt file //Adobe Photoshop 2022 var doc = app.activeDocument; var curLayer; var coordArray = []; var txtFile=””; var outName = “PSD_Coordinates”; goThroughLayers (doc); //Looping Array Elements for (i = 0; i < coordArray.length; i++) { txtFile += coordArray[i][0] + “;”

PSD Get Coordinates From Layers And Create .txt File Read More »

VTW Get Image Infos From GH

Here is an example of vbscript code to fetch image information from a folder on the Graphic Hub. In Viz Engine Console : send IMAGE COMMAND_INFO or web page : C:\Program Files\vizrt\Viz3\Documentation\CommandInterface\index.html ‘Dim host : host = MainMachine ‘can be an IP address Dim host : host = “<replace with frame server IP address>” ‘frame

VTW Get Image Infos From GH Read More »

VTW Currency Converter

Here is a sample code for an asynchronous request in vbscript with Viz Template Wizard. In this example we use the API of https://twelvedata.com You need to register on their website in order to get a free api key. To process the JSON response we use the parsing method of an html page in the

VTW Currency Converter Read More »

Shopping Cart