Skip to main content
3-Newcomer
July 19, 2017
Question

Is it possible to use an external URL HTTP Ressource for the .PVZ Files ?

  • July 19, 2017
  • 2 replies
  • 1978 views

Hello Community,

 

Is it possible to use an external URL HTTP Ressource for the .PVZ Files similar to Image URL links?

I have stored a sample coffeemashine PVZ file here:

http://files.net-online.de/cad/Caffee_Maschine.pvz

 

Is it general possible to use external URL ressources ?

 

According to

https://help.vuforia.io/studio/index.html#page/ThingWorx_Studio_Help_Center/Beginner_DynamicModelLoad.html#wwID0ER2CI

I have tried to integrate a HTTP ressource, but this is not working

------------------------------------------------------------------------

$scope.populateModelList = function() {

  $scope.app.params.modelSelect = [

  {

    display: "Kaffeemaschine",

    value: "http://files.net-online.de/cad/Caffee_Maschine.pvz"

  },

  {

    display: "Local PVZ",

    value: "app/resources/Uploaded/lokal.pvz"

  }

  ];

}

$scope.populateModelList();

 

---------------------------------------------------------

Thanks in advance

 

Cheers

Timo

2 replies

12-Amethyst
July 19, 2017

No,  the dynamic model loading that you're taking about, from the help page you linked to, only works with models that have been loaded as resources in your studio project.  Those models are uploaded to the experience service when you publish the project.  Thingworx View will download the model from the experience service as it's needed.

10-Marble
November 30, 2018

Yes, you can do it this way:

 

$scope.setComponentModel = function() {
var modelParams = {
 modelID: "model-2",
 modelURL: "http://urltoyour.com/file.pvz"
};
tml3dRenderer.setModelURL(modelParams, function(e){console.log(e)}, function(e){console.log(e)});
}

but I have a huge problem with downloading time for such a resource and I can't force it to play it's sequence.