Skip to main content
15-Moonstone
March 12, 2018
Solved

Change size of widget Javascript

 I wanted to know if there was a way to change the Height or Width of a 3d widget (eg Image3D) BY JAVASCRIPT.
I TRIED TO USE THE SYNTAX :
 
$ scope.size = function () {
 
$ scope.view.wdg ['3DImage-1']. height = 2;
};
 
 BUT NOT WORKING:
 
thnx 
 
Giuseppe
 
 
 
ytellaAnswer
17-Peridot
April 5, 2018

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

1 reply

ytella17-PeridotAnswer
17-Peridot
April 5, 2018

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

Translate