Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello
I have almost 10 steps in my animation i want to display each component number in 3d image at each every steps and after performing each steps image should be hide and unhide automatically.
Let me know with solution is it possible or not?
Thank you
Solved! Go to Solution.
Hello,
To have more informations about steps on a Model, we have access to Steps and Current Step variables.
we can access it in Javascript like that :
$scope.setWidgetProp('model-1', 'currentStep', 4);
Where 'model-1' is the Friendly Name of the Model
4 is the step to play
This part of javascript code, play the step 2 of Sequence selected in Sequence list for the Model named model-1 in the Home View.
A delay of 0.5 secondes is applied to be sure that these actions have been done.
$timeout(function () { $scope.view.wdg['model-1']['currentStep']=2; $scope.$root.$broadcast('app.view["Home"].wdg["model-1"].svc.play'); }, 500);
Best regards,
Samuel
Hello,
The only solution that I see is to use a custom Javascript code.
To display a Widget use this Function :
$scope.setWidgetProp( widget_name, "visible", true );
Change widget_name by the Friendly Name of the 3D Image Widget.
To hide it, replace true by false
Best regards,
Samuel
hello ,
I have gone through solution but i need js for steps not for different sequence let me know how we can do the same.
Thank you
Hello,
To have more informations about steps on a Model, we have access to Steps and Current Step variables.
we can access it in Javascript like that :
$scope.setWidgetProp('model-1', 'currentStep', 4);
Where 'model-1' is the Friendly Name of the Model
4 is the step to play
This part of javascript code, play the step 2 of Sequence selected in Sequence list for the Model named model-1 in the Home View.
A delay of 0.5 secondes is applied to be sure that these actions have been done.
$timeout(function () { $scope.view.wdg['model-1']['currentStep']=2; $scope.$root.$broadcast('app.view["Home"].wdg["model-1"].svc.play'); }, 500);
Best regards,
Samuel