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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to change image source with a default one (empty)?

FF_9957347
3-Visitor

How to change image source with a default one (empty)?

Hello,

I need help about the code below.

When I go to the next step I want to change the custom image from one to a default one (empty). 

 

$scope.step6 = function(){
$scope.app.params.descrizioneAnimazione1 = "app/resources/Uploaded/Descrizioni/Immagine4-2.png";
$scope.app.params.descrizioneAnimazione2 = "app/resources/Uploaded/Descrizioni/Immagine5-2.png";


$scope.step7 = function(){
$scope.app.params.descrizioneAnimazione1 = '';
$scope.app.params.descrizioneAnimazione2 = '';

At the moment when I change the step the images remains the same as the previous step and I would like that if the step has no image as a source, I don't want to see any images.

 

 Thanks in advanced!

 

Filippo

3 REPLIES 3

How about uncheck the Visible property of  3D Image Widget?

Thank you for the suggestion, but I want just to reset the default image (empty image).

If there is a possibility to do this.

As I tried.

If you assign blank to the src of a 3DImage like below

$scope.setWidgetProp("3DImage","src", "")

Nothing would happen.

 

However, if a blank PNG is assigned.  The 3DImage would appear invisible.

$scope.setWidgetProp("3DImage","src", "app/resources/Uploaded/blank.png")

 

 

Top Tags