bBox_PythonGetVar( name )

Parameters:
   name: Python variable name to return value of

Result:
   date, numeric, or text value from variable

Error:
   bBox_LastError (-3)

Script Step:
   none

––––––––––

First appeared in: 

Examples in demo file: 3

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

––––––––––

Return the value of a named Python global variable. Defaults to using string as type, but this can be specified to avoid (for instance) converting a Python numeric value to a string.

Python’s global variables are released when bBox_PythonFinalize is called, so you should extract any global values first. If passed the name of a non-existent Python variable an empty string is returned.

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