cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Remote pvz file upload

GianVal
15-Moonstone

Remote pvz file upload

I want to create an AR experience starting from a remote pvz resource and not directly uploading the content.

Is it possible? how to?

many thanks

ACCEPTED SOLUTION

Accepted Solutions
pandersson
14-Alexandrite
(To:GianVal)

You can set model source in JS

$scope.view.wdg['model-4']['src']=<url>;

 

I have done it with pvz-files stored in the Thingworx server.

 

Per

View solution in original post

5 REPLIES 5
pandersson
14-Alexandrite
(To:GianVal)

You can set model source in JS

$scope.view.wdg['model-4']['src']=<url>;

 

I have done it with pvz-files stored in the Thingworx server.

 

Per

GianVal
15-Moonstone
(To:pandersson)

i'm getting errors embedding the URL. how to write it properly? can you provide me an example?

pandersson
14-Alexandrite
(To:GianVal)

I entered the url as "https://<hostname>:port/Thingworx/<filerepos>/.....?appKey=jkhfsakjahfkj"

When I used Thingworx as filevault.

I tried to stream directly from Windchill but then I got issues on firewalls and other security rules. My phone was not connected to the network where the Windchill server was. 

Per

pandersson
14-Alexandrite
(To:GianVal)

You have a CORS issues:

Access to XMLHttpRequest at 'https://github.com/PTCInc/StudioExamples/raw/master/3D-Guided%20Service%20Instructions/3D-Guided%20Service%20Instructions%20300/quadcopter301.pvz' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://render.githubusercontent.com' that is not equal to the supplied origin.

Use Developer tools in preview to see this message.

 

this is why I used repositories in the connected Thingworx as file storage.

I extracted the pvz file from Windchill to Thingworx as part of an ordering-process of the experience. I also didn't want the experience to have direct contact with the Windchill server.

 

Announcements

Top Tags