Val Function
Overview
The val function is used to make data from one script or from the hard drive available to other scripts
or tools in your workspace.
Importing
The val function is available for both python and Javascript scripts. The following shows importing the
val function in python.
from davinci.python import val
val.set('data', [{"name":"record1"},{"name":"record2"}])
The corresponding Javascript is given here.
const { val } = require('./davinci/javascript.js');
Setting and Retrieving Data
The val utility provides a method for placing data into the workspace, and a method for retrieving data.
from davinci.python import val
val.set('data', [{"name":"record1"},{"name":"record2"}])
data = val('data')
Automatic Updates