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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

If i click a 2D button to change the 3Dimage

Rakesh_kumar_S
11-Garnet

If i click a 2D button to change the 3Dimage

In Vuforia studio mobile, if i click a 2D button change the 3D image then click a same button again then change another image, how can i do this, what can i do for this, i could not find any article related about this. kindly support me

 

Thanks 

Rakesh kumar S

 

 

 

 

 

2 REPLIES 2

He @Rakesh_kumar_S ,

I think you need some javascript jcode and there are a lot of way show to do this . You need an callback function define in the view.js (e.g. Home.js) which will simple set e.g.

$scope.setWidgetProp( "3DImage-1,  'src', "app/resources/Uploaded/button-click1.jpg");
$scope.$applyAsync();

But of course , I believe that you need some program logic to change the setting dynamically so define some global variable or parameter (true/false )  which will be checked and set so that you can set different pictures on subsequent clicks.

I think , there possibly someone have exact this code to share there. Thanks

I what to point to 2 relevant point which do more but there you can see the different techniques:

https://community.ptc.com/t5/Vuforia-Studio/Can-i-use-a-3D-images-to-be-a-button-in-Vuforia-Studio-Mobile/m-p/828950#M11316 ( sample project )

and  https://community.ptc.com/t5/Vuforia-Studio/Displaying-multiple-3D-Images-after-a-particular-interval-in/m-p/836317#M11387(sample project )

Here a simple example which will show files from he upload folder (files with format  "door_type_"<number_1-to-22>".gif") But it could be an array or json etc.

2023-05-17_09-04-52.jpg

attached the simulierend Studio Projekt

Top Tags