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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

InfinityX
15-Moonstone

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?

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

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

I am expecting PTC R&D will work on this to bring this solution on vuforia Canvas instead of following the procedure given in this above link.

because most of the vuforia Indian users are from mechanical background and they don't understand the software limitations.

Announcements

Top Tags