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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

resize 3dimage widget / Javascript

Giuseppe_Fiore
15-Moonstone

resize 3dimage widget / Javascript

Is it possible to change the width and height  of 3DImage with the javascript code?

I tried in every way but in the end it does not change anything.

 

i used this code.

 

$scope.add=function() {

$scope.setWidgetProp("3DImage-1", "width", parseInt($scope.getWidgetProp("3DImage-1", "width")) + 1);

}

 

 

or 

$scope.add=function() {

$scope.view.wdg["3DImage-1"].width += 1
}

 

but not working.

 

 

Thnx

Giuseppe

0 REPLIES 0
Announcements

Top Tags