Solved
How to change resource of 3D image with JS code?
I would like to change resource of 3D image with JS code to avoid inserting all pictures. Can anyone help me?
Thanks
Janos
I would like to change resource of 3D image with JS code to avoid inserting all pictures. Can anyone help me?
Thanks
Janos
Just set the "src" property of the 3D image widget to the graphic you want. You'll need to include the relative path, usually "app/resources/Uploaded/{image filename}". Here's an example:
$scope.changePic = function() {
//use this form for the stock images
//$scope.setWidgetProp("3DImage-1","src","app/resources/Default/vu_seq_pause.svg");
// use this form for your own uploaded images
$scope.setWidgetProp("3DImage-1","src","app/resources/Uploaded/myimage.png");
}Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.