How to dynamically get the position of a part (without using modelitem)
My purpose is to move the position of the model.
I want to move freely.
Because it is difficult for mobile terminals, assign that function to the button. .
Next, test-code works in the preview.
$scope.incPosX = function()
{
var x;
var y;
var z;
try{
x = parseFloat(tml3dRenderer.GetObject(l_currentSelection).GetWidget().GetLocation().position.x) + 0.005;
y = parseFloat(tml3dRenderer.GetObject(l_currentSelection).GetWidget().GetLocation().position.y);
z = parseFloat(tml3dRenderer.GetObject(l_currentSelection).GetWidget().GetLocation().position.z);
}catch (ex) {
$scope.app.params['x']= "error1" + ex;
console.warn("Exception 1 in tml3dRenderer()=>"+ex);
}
try{
tml3dRenderer.setTranslation(l_currentSelection,x,y,z);
}catch (ex) {
$scope.app.params['y']="error2" + ex;
console.warn("Exception 2 in tml3dRenderer)=>"+ex);
}
}
Exception error in tml3dRenderer.GetObject, it do not work.
Could you tell me how to solve it?
Thanks,
Tsubone




