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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Change size of widget Javascript

Giuseppe_Fiore
15-Moonstone

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
 
 
 
ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

1 REPLY 1

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.

Announcements

Top Tags