Skip to main content
1-Visitor
December 20, 2019
Solved

how to copy entire view from one project to another new project in vuforia studio?

how to copy entire view from one project to another new project in vuforia studio?

21-Topaz I
December 20, 2019

so far I know currently there is no supported functionality to do this but you can try the following.

- let say you have defined a project with 2 views : Home and SECOND_VIEW 

- let say you want to copy the SECOND_VIEW to other project.

Steps:

1.) copy the SECOND_VIEW.js and SECOND_VIEW.json form the 

<your USER directory >\VuforiaStudio\Projects\<SOURCE project>>\src\phone\components to ...

<your USER directory >\VuforiaStudio\Projects\<Target project>>\src\phone\components to ...

2,) I think this above is all but to be sure, you can  additionallly   eddit in the  directory

<your USER directory >\VuforiaStudio\Projects\<Target project>>\ appConfig.json

so here you need to edit  appConfig.json and add the second view:

"targets": {
 "phone": {
 "components": [
 {
 "name": "Home",
 "fileName": "Home",
 "showInMainMenu": true,
 "viewType": "ar",
 "title": "Home"
 },
 {
 "name": "SECOND_VIEW",
 "fileName": "SECOND_VIEW",
 "showInMainMenu": true,
 "viewType": "mobile-2D",
 "title": "SECOND_VIEW"
 }
 ],

 

 then go and open the Target project in Studio UI. It should update the project.

A related issue is reported in the post duplicated a view

3 replies

21-Topaz I
December 20, 2019

so far I know currently there is no supported functionality to do this but you can try the following.

- let say you have defined a project with 2 views : Home and SECOND_VIEW 

- let say you want to copy the SECOND_VIEW to other project.

Steps:

1.) copy the SECOND_VIEW.js and SECOND_VIEW.json form the 

<your USER directory >\VuforiaStudio\Projects\<SOURCE project>>\src\phone\components to ...

<your USER directory >\VuforiaStudio\Projects\<Target project>>\src\phone\components to ...

2,) I think this above is all but to be sure, you can  additionallly   eddit in the  directory

<your USER directory >\VuforiaStudio\Projects\<Target project>>\ appConfig.json

so here you need to edit  appConfig.json and add the second view:

"targets": {
 "phone": {
 "components": [
 {
 "name": "Home",
 "fileName": "Home",
 "showInMainMenu": true,
 "viewType": "ar",
 "title": "Home"
 },
 {
 "name": "SECOND_VIEW",
 "fileName": "SECOND_VIEW",
 "showInMainMenu": true,
 "viewType": "mobile-2D",
 "title": "SECOND_VIEW"
 }
 ],

 

 then go and open the Target project in Studio UI. It should update the project.

A related issue is reported in the post duplicated a view

Translate
InfinityX1-VisitorAuthor
1-Visitor
December 21, 2019

thanks for reply. this solution helps a lot and it saves the time during creating experience. I tried this solution personally and its working fine.

only one thing i want to add is we need to copy paste the resources from original project to new project

Translate