Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hello Sir,
Please can anyone tell me how to rotate a model item using js pls provide any coding
Hello,
try this code will rotare the model 15 deg
$scope.view.wdg['model-1']['ry'] += 15;
You can create a function that can be called from a JS box. Call it with "rotateRight();" :
$scope.rotateRight = function() {
$scope.view.wdg['model-1']['ry'] += 15;
};
Or you may use interval to rotate it smothly (1 deg / second):
$interval(function() {
$scope.view.wdg['model-1']['ry'] += 1;
}
,1000);
Good luck
Per