Vizrt Renderer Snapshot

Attach this script code on a container with a Text plugin and a ControlText plugin

sub OnInit()
    This.Geometry.RegisterTextChangedCallback()
end sub

sub OnGeometryChanged(geom As Geometry)
    snapMe()
end sub

Sub snapMe()
    If this.geometry.text<>"" Then
        dim snapPath as Array[string]
        this.geometry.text.split(";", snapPath)
        if snapPath[0] = "SNAP" then
            system.sendCommand("RENDERER SNAPSHOT " & snapPath[1])
        end If
    End If
end sub

 

Shopping Cart