Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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