EasyManua.ls Logo

Alcorn Mcbride V16Pro - Set Variable =

Alcorn Mcbride V16Pro
179 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WinScript Live Command Reference Page 71
WinScript
Reference
Event Syntax
Event
Data1
Data2
Data3…. DataN
Format
Name of Variable to
store result
Format String: "hello
%s %d"
Variable Name
Data2's "Format String" is made up of placeholders that indicate where and how the variables in
Data3-DataN should be inserted. The table below shows what % character should be used to
format the string. In general, %s will work for most cases.
Formatted String
Variable Type to
Insert
%
Description
String, Display String
%s
Inserts the text in string format. Hex characters are
converted into ASCII printable characters like "h0D".
Timecode
%s
Inserts time in the format "00:00:02.01"
Timecode
%d
Inserts the number of frames ie: 61
Integer
%d
Inserts number without leading zeros or spaces. To add
leading zeros, use %0nD where "0" indicates to pad
with zeros and "n" is number of zeros to pad. For
example: %03d will insert the number 2 as 002.
Integer
%X
Inserts the number as a hex string. For example, the
number 11 would be inserted as 0B.
Integer
%p
No conversion to ASCII will be made, and the number
will be placed in the string. For example, the number
13 (hex 0D) will be inserted as a Hard Return.
Decimal
%f
Inserts one decimal place OR number of places
specified after "." preceding "f". For number 1.12345,"
%.1f" inserts 1.1. "%.2f" inserts 1.12. "%.4f" inserts
1.1234.
Boolean
%s
"true" or "false" will be printed
Boolean
%d
"1" or "0" will be printed
Date/Time
%s
Inserts in the format: month/day/year hours:minutes
Percent
%s
Inserts string including % character. ie: 100%
Percent
%f
Inserts decimal percentage, shows 25% as .25
Set Variable =
Sets the value of a Variable to a constant value or to the value of another Variable. If they are
different variable types, the will be converted. Decimal values are truncated when set to Integer
types. Timecode variables will convert to number of frames for Integer types.
Event Syntax
Event
Data1
Data2
Set Variable =
Name of Variable
Constant value <or> Name of
another Variable

Table of Contents