bBox_PythonSetVar( name; value {; asType} )

Parameters:
   name: Python variable name
   value: container, numeric or string value to store in Python variable
   type: optional value that determines the Python variable's type
      b = Python Bool
      d = Python Date
      f = Python Float
      F = Python bytearray (File data from container, or text)
      i = Python Integer
      m = Python DateTime 
      s = Python String (default) with UTF-16 encoding

Result:
   none

Error:
   none

Script Step:
   none

––––––––––

First appeared in: 

Examples in demo file: 3

Compatibility:   Client, macOS, Server, Ubuntu, WebDirect, WPE

––––––––––

Creates or replaces a python global variable of a given name and value.

You should call this routine after bBox_PythonCompile but before bBox_PythonExecute to set the inputs for that particular run of the script (since you could call bBox_PythonExecute more than once). The Python functions do not support sending data to the Python script via stdout, so this function is the preferred method of supplying the input to scripts.

A future version of this function will require the session reference ID returned by bBox_PythonCompile.