coding

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