Local vs. Remote Assets and ThingWorx
You can choose to use either local or remote services for data input in your experience.
Local Services
Local services are assets stored in the Resources folder within the Vuforia Studio environment. These can include predefined datasets, scripts, 3D models, and other static content. Use the local services API for quick, offline interactions with these assets. Local resources use relative URLs.
The following is an example of JavaScript you can use to load a local model asset:
$scope.app.params.modelSelect = [
{
display: "modelName",
value: "app/resources/Uploaded/myModel.pvz"
},
Remote Services and ThingWorx
Remote services include third-party APIs, databases, servers, and other external data sources. ThingWorx is a key platform for accessing remote services in Vuforia Studio. Use remote services to stream real-time data, interact with IoT devices, and deliver contextual information to users. Remote resources, such as those from ThingWorx, require absolute URLs.
For example, you can use the twx object to call the FactoryTaskHelper Thing after the markTaskComplete event is triggered:
twx.app.fn.triggerDataService('FactoryTaskHelper', 'markTaskComplete', {taskID: taskid } );